00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "PDTEntry.h"
00023
00024 #include "DecayEntry.h"
00025
00026 #include "gismo/Interactor.h"
00027 #include "gismo/Units.h"
00028
00029
00030 PDTEntry::PDTEntry(long code,int ispin, int icharge,
00031 float imass,float iwidth)
00032 {
00033 idCode = code;
00034 mass = imass;
00035 width= iwidth;
00036 widthCut=2.*iwidth;
00037 spin = ispin;
00038 charge = icharge;
00039 lifeTime = (width>0.)? Units::hbarc()/width: 1.e30;
00040 sumBR = 0;
00041 decayInfo = NULL;
00042 }
00043
00044
00045 void PDTEntry::printOn(std::ostream& str)const
00046 {
00047 str << mass << width << spin << charge << lifeTime<< '\n';
00048 }
00049
00050 Interactor *
00051 PDTEntry::interaction() const
00052 { return intobject->replacement;
00053 }
00054
00055 PDTEntry::~PDTEntry()
00056 {
00057 DecayEntry *de = decayInfo;
00058 while (de!=NULL)
00059 {
00060 de= de->next;
00061 delete decayInfo;
00062 decayInfo = de;
00063 }
00064 }
00065
00066