BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPDL Class Reference

#include <EvtPDL.hh>

Public Member Functions

 EvtPDL ()
 
 ~EvtPDL ()
 
void read (const char *fname)
 
void readPDT (const std::string fname)
 
 EvtPDL ()
 
 ~EvtPDL ()
 
void read (const char *fname)
 
void readPDT (const std::string fname)
 

Static Public Member Functions

static double getMeanMass (EvtId i)
 
static double getMass (EvtId i)
 
static double getRandMass (EvtId i, EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDaugId, double maxMass, double *dauMasses)
 
static double getMassProb (EvtId i, double mass, double massPar, int nDaug, double *massDau)
 
static double getMaxMass (EvtId i)
 
static double getMinMass (EvtId i)
 
static double getMaxRange (EvtId i)
 
static double getWidth (EvtId i)
 
static double getctau (EvtId i)
 
static int getStdHep (EvtId id)
 
static int getLundKC (EvtId id)
 
static EvtId evtIdFromStdHep (int stdhep)
 
static EvtId chargeConj (EvtId id)
 
static int chg3 (EvtId i)
 
static EvtSpinType::spintype getSpinType (EvtId i)
 
static EvtId getId (const std::string &name)
 
static std::string name (EvtId i)
 
static void alias (EvtId num, const std::string &newname)
 
static void aliasChgConj (EvtId a, EvtId abar)
 
static int entries ()
 
static void reSetMass (EvtId i, double mass)
 
static void reSetWidth (EvtId i, double width)
 
static void reSetMassMin (EvtId i, double mass)
 
static void reSetMassMax (EvtId i, double mass)
 
static void reSetBlatt (EvtId i, double blatt)
 
static void includeBirthFactor (EvtId i, bool yesno)
 
static void includeDecayFactor (EvtId i, bool yesno)
 
static void addFactorPn (EvtId i, double factor)
 
static void changeLS (EvtId i, std::string &newLS)
 
static void setPWForDecay (EvtId i, int spin, EvtId d1, EvtId d2)
 
static void setPWForBirthL (EvtId i, int spin, EvtId par, EvtId othD)
 
static void fixLSForSP8 (EvtId i)
 
static double getMeanMass (EvtId i)
 
static double getMass (EvtId i)
 
static double getRandMass (EvtId i, EvtId *parId, int nDaug, EvtId *dauId, EvtId *othDaugId, double maxMass, double *dauMasses)
 
static double getMassProb (EvtId i, double mass, double massPar, int nDaug, double *massDau)
 
static double getMaxMass (EvtId i)
 
static double getMinMass (EvtId i)
 
static double getMaxRange (EvtId i)
 
static double getWidth (EvtId i)
 
static double getctau (EvtId i)
 
static int getStdHep (EvtId id)
 
static int getLundKC (EvtId id)
 
static EvtId evtIdFromStdHep (int stdhep)
 
static EvtId chargeConj (EvtId id)
 
static int chg3 (EvtId i)
 
static EvtSpinType::spintype getSpinType (EvtId i)
 
static EvtId getId (const std::string &name)
 
static std::string name (EvtId i)
 
static void alias (EvtId num, const std::string &newname)
 
static void aliasChgConj (EvtId a, EvtId abar)
 
static int entries ()
 
static void reSetMass (EvtId i, double mass)
 
static void reSetWidth (EvtId i, double width)
 
static void reSetMassMin (EvtId i, double mass)
 
static void reSetMassMax (EvtId i, double mass)
 
static void reSetBlatt (EvtId i, double blatt)
 
static void includeBirthFactor (EvtId i, bool yesno)
 
static void includeDecayFactor (EvtId i, bool yesno)
 
static void addFactorPn (EvtId i, double factor)
 
static void changeLS (EvtId i, std::string &newLS)
 
static void setPWForDecay (EvtId i, int spin, EvtId d1, EvtId d2)
 
static void setPWForBirthL (EvtId i, int spin, EvtId par, EvtId othD)
 
static void fixLSForSP8 (EvtId i)
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtPDL() [1/2]

EvtPDL::EvtPDL ( )

Definition at line 43 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

43 {
44
45 if (first!=0) {
46 first=0;
47 _nentries=0;
48 _firstAlias=999999;
49 }
50
51}

◆ ~EvtPDL() [1/2]

EvtPDL::~EvtPDL ( )

Definition at line 54 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

54 {
55
56}

◆ EvtPDL() [2/2]

EvtPDL::EvtPDL ( )

◆ ~EvtPDL() [2/2]

EvtPDL::~EvtPDL ( )

Member Function Documentation

◆ addFactorPn() [1/2]

static void EvtPDL::addFactorPn ( EvtId  i,
double  factor 
)
inlinestatic

Definition at line 75 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

75{partlist()[i.getId()].addFactorPn(factor);}

Referenced by EvtDecayTable::readDecayFile().

◆ addFactorPn() [2/2]

static void EvtPDL::addFactorPn ( EvtId  i,
double  factor 
)
inlinestatic

Definition at line 75 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

75{partlist()[i.getId()].addFactorPn(factor);}

◆ alias() [1/2]

void EvtPDL::alias ( EvtId  num,
const std::string &  newname 
)
static

Definition at line 259 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

259 {
260
261 int i;
262
263 if ( _firstAlias < partlist().size() ) {
264 for(i=_firstAlias;i<partlist().size();i--){
265 if (newname==partlist()[i].getName()){
266 report(WARNING,"EvtGen")<<"Redefining alias:"<<newname.c_str()<<" will be ignored!"<<endl;
267 return;
268 }
269 }
270 }
271 else{
272 _firstAlias=partlist().size();
273 }
274
275 partlist().push_back(partlist()[num.getId()]);
276 int entry=partlist().size()-1;
277 partlist()[entry].setName(newname);
278 assert(_particleNameLookup.find(std::string(newname))==
279 _particleNameLookup.end());
280 _particleNameLookup[std::string(newname)]=entry;
281 partlist()[entry].setId(EvtId(num.getId(),entry));
282 //Lange - Dec7, 2003. Unset the charge conjugate.
283 partlist()[entry].setIdChgConj(EvtId(-1,-1));
284
285}
ostream & report(Severity severity, const char *facility)

Referenced by EvtDecayTable::readDecayFile().

◆ alias() [2/2]

static void EvtPDL::alias ( EvtId  num,
const std::string &  newname 
)
static

◆ aliasChgConj() [1/2]

void EvtPDL::aliasChgConj ( EvtId  a,
EvtId  abar 
)
static

Definition at line 191 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

191 {
192
193 if (EvtPDL::chargeConj(EvtId(a.getId(),a.getId()))!=
194 EvtId(abar.getId(),abar.getId())) {
195
196 report(ERROR,"EvtGen")<<"Can't charge conjugate the two aliases:"
197 <<EvtPDL::name(a).c_str()<<" and "<<EvtPDL::name(abar).c_str()<<endl;
198
199 ::abort();
200
201 }
202
203 partlist()[a.getAlias()].setIdChgConj(abar);
204 partlist()[abar.getAlias()].setIdChgConj(a);
205
206}

Referenced by EvtDecayTable::readDecayFile().

◆ aliasChgConj() [2/2]

static void EvtPDL::aliasChgConj ( EvtId  a,
EvtId  abar 
)
static

◆ changeLS() [1/2]

static void EvtPDL::changeLS ( EvtId  i,
std::string &  newLS 
)
inlinestatic

Definition at line 76 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

76{ partlist()[i.getId()].newLineShape(newLS);}

Referenced by EvtDecayTable::readDecayFile().

◆ changeLS() [2/2]

static void EvtPDL::changeLS ( EvtId  i,
std::string &  newLS 
)
inlinestatic

Definition at line 76 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

76{ partlist()[i.getId()].newLineShape(newLS);}

◆ chargeConj() [1/2]

EvtId EvtPDL::chargeConj ( EvtId  id)
static

Definition at line 208 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

208 {
209 EvtId idchg=partlist()[id.getAlias()].getIdChgConj();
210
211 if (idchg!=EvtId(-1,-1)) return idchg;
212
213 if (id.getId()!=id.getAlias()){
214 if (chargeConj(EvtId(id.getId(),id.getId()))==EvtId(id.getId(),id.getId())){
215
216 partlist()[id.getAlias()].setIdChgConj(id);
217 return id;
218 }
219 }
220
221 if (id.getAlias()!=id.getId()) {
222
223 report(ERROR,"EvtGen")<<"Trying to charge conjugate alias particle:"
224 <<name(id).c_str()<<" without defining the alias!"<<endl;
225
226 ::abort();
227
228 }
229
230 int i;
231
232 for (i=0;i<partlist().size();i++){
233 if (partlist()[i].getStdHep()==-partlist()[id.getId()].getStdHep()){
234 partlist()[id.getId()].setIdChgConj(partlist()[i].getId());
235 return partlist()[i].getId();
236 }
237 }
238
239 partlist()[id.getId()].setIdChgConj(id);
240 return id;
241
242}
static EvtId getId(const std::string &name)

Referenced by aliasChgConj(), chargeConj(), EvtParticleDecay::chargeConj(), EvtSSDCP::decay(), EvtSVSCPiso::decay(), EvtSSDCP::init(), EvtVSSBMixCPT::init(), and EvtDecayTable::readDecayFile().

◆ chargeConj() [2/2]

static EvtId EvtPDL::chargeConj ( EvtId  id)
static

◆ chg3() [1/2]

static int EvtPDL::chg3 ( EvtId  i)
inlinestatic

◆ chg3() [2/2]

static int EvtPDL::chg3 ( EvtId  i)
inlinestatic

Definition at line 60 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

60{return partlist()[i.getId()].getChg3();}

◆ entries() [1/2]

static int EvtPDL::entries ( )
inlinestatic

Definition at line 67 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

67{ return partlist().size();}

Referenced by EvtDecayTable::printSummary(), and EvtDecayTable::readDecayFile().

◆ entries() [2/2]

static int EvtPDL::entries ( )
inlinestatic

Definition at line 67 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

67{ return partlist().size();}

◆ evtIdFromStdHep() [1/2]

◆ evtIdFromStdHep() [2/2]

static EvtId EvtPDL::evtIdFromStdHep ( int  stdhep)
static

◆ fixLSForSP8() [1/2]

static void EvtPDL::fixLSForSP8 ( EvtId  i)
inlinestatic

Definition at line 79 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

79{ partlist()[i.getId()].fixLSForSP8();}

Referenced by EvtDecayTable::readDecayFile().

◆ fixLSForSP8() [2/2]

static void EvtPDL::fixLSForSP8 ( EvtId  i)
inlinestatic

Definition at line 79 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

79{ partlist()[i.getId()].fixLSForSP8();}

◆ getctau() [1/2]

static double EvtPDL::getctau ( EvtId  i)
inlinestatic

◆ getctau() [2/2]

static double EvtPDL::getctau ( EvtId  i)
inlinestatic

Definition at line 55 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

55{return partlist()[i.getId()].getctau();}

◆ getId() [1/2]

EvtId EvtPDL::getId ( const std::string &  name)
static

Definition at line 287 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

287 {
288
289 std::map<std::string,int>::iterator it=_particleNameLookup.find(std::string(name));
290 if (it==_particleNameLookup.end()) return EvtId(-1,-1);
291
292 return partlist()[it->second].getId();
293
294}

Referenced by EvtbTosllScalarAmp::CalcAmp(), EvtbTosllVectorAmp::CalcAmp(), EvtSemiLeptonicBaryonAmp::CalcAmp(), EvtSemiLeptonicTensorAmp::CalcAmp(), EvtSemiLeptonicVectorAmp::CalcAmp(), chargeConj(), EvtIdSet::contains(), EvtParticle::decay(), EvtBHadronic::decay(), EvtBsquark::decay(), EvtBto2piCPiso::decay(), EvtBTo3piCP::decay(), EvtBTo4piCP::decay(), EvtBtoKpiCPiso::decay(), EvtBToKpipiCP::decay(), EvtBtoXsll::decay(), EvtCBTo3piMPP::decay(), EvtCBTo3piP00::decay(), EvtConExc::decay(), EvtDDalitz::decay(), EvtDeBD::decay(), EvtEtap2gpipi::decay(), EvtEtap2gpipiB::decay(), EvtGoityRoberts::decay(), EvtHypWK::decay(), EvtIntervalDecayAmp< T >::decay(), EvtJ2BB2::decay(), EvtJetSet::decay(), EvtKstarnunu::decay(), EvtKstarstargamma::decay(), EvtLNuGamma::decay(), EvtLunda::decay(), EvtLundCharm::decay(), EvtPhiDalitz::decay(), EvtPhokhara::decay(), EvtPhokhara_4pi::decay(), EvtPhokhara_K0K0::decay(), EvtPhokhara_KK::decay(), EvtPhokhara_LLB::decay(), EvtPhokhara_nnbar::decay(), EvtPhokhara_pi0pi0pipi::decay(), EvtPhokhara_pipi::decay(), EvtPhokhara_pipieta::decay(), EvtPhokhara_pipipi0::decay(), EvtPhokhara_ppbar::decay(), EvtPythia::decay(), EvtSLN::decay(), EvtSSDCP::decay(), EvtSSSCP::decay(), EvtSSSCPpng::decay(), EvtSSSCPT::decay(), EvtSTSCP::decay(), EvtSVPCP::decay(), EvtSVSCP::decay(), EvtSVSCPiso::decay(), EvtSVSCPLH::decay(), EvtSVSNONCPEIGEN::decay(), EvtSVVCP::decay(), EvtSVVCPLH::decay(), EvtSVVNONCPEIGEN::decay(), EvtTauHadnu::decay(), EvtTaulnunu::decay(), EvtTauola::decay(), EvtTauScalarnu::decay(), EvtTauVectornu::decay(), EvtVectorIsr::decay(), EvtVPHOtoVISR::decay(), EvtVPHOtoVISRHi::decay(), EvtVSSBMixCPT::decay(), EvtVSSMix::decay(), EvtPHOTOS::doRadCorr(), EvtDalitzReso::evaluate(), EvtAmpA1(), EvtAmpA2(), EvtDalitzPlot::EvtDalitzPlot(), EvtIdSet::EvtIdSet(), EvtLunda::ExclusiveDecay(), EvtConExc::findMaxXS(), EvtConExc::gamHXSection(), EvtConExc::get_mode(), EvtMultiChannelParser::getDecayMode(), EvtFSPick::getIndex(), EvtConExc::getResMass(), EvtbTosllBallFF::getScalarFF(), EvtISGW2FF::getscalarff(), EvtISGW2FF::gettensorff(), EvtbTosllBallFF::getVectorFF(), EvtISGW2FF::getvectorff(), EvtSLBKPoleFF::getvectorff(), EvtPsi3Sdecay::getVId(), EvtCPUtil::incoherentMix(), EvtAV2GV::init(), EvtBtoXsll::init(), EvtConExc::init(), EvtDDalitz::init(), EvtDTopipienu::init(), EvtJPE::init(), EvtJpipi::init(), EvtLambdac2pKpi::init(), EvtP2GC0::init(), EvtP2GC1::init(), EvtP2GC2::init(), EvtS2GV::init(), EvtSSDCP::init(), EvtSVSCPLH::init(), EvtVub::init(), EvtVubHybrid::init(), EvtVVpipi::init(), EvtVVPIPI_WEIGHTED::init(), EvtConExc::init_Br_ee(), EvtPhokhara::init_evt(), EvtPhokhara::init_mode(), EvtConExc::init_mode(), EvtParticle::initDecay(), EvtBto2piCPiso::initProbMax(), EvtBtoKpiCPiso::initProbMax(), EvtISGW2::initProbMax(), EvtCPUtil::OtherB(), EvtPto3PAmpFactory::processAmp(), EvtDecayTable::readDecayFile(), EvtConExc::resetResMass(), and EvtFSPick::setFinalStatePar().

◆ getId() [2/2]

static EvtId EvtPDL::getId ( const std::string &  name)
static

◆ getLundKC() [1/2]

static int EvtPDL::getLundKC ( EvtId  id)
inlinestatic

Definition at line 57 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

57{return partlist()[id.getId()].getLundKC();}

◆ getLundKC() [2/2]

static int EvtPDL::getLundKC ( EvtId  id)
inlinestatic

Definition at line 57 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

57{return partlist()[id.getId()].getLundKC();}

◆ getMass() [1/2]

◆ getMass() [2/2]

static double EvtPDL::getMass ( EvtId  i)
inlinestatic

Definition at line 46 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

46{return partlist()[i.getId()].rollMass();}

◆ getMassProb() [1/2]

static double EvtPDL::getMassProb ( EvtId  i,
double  mass,
double  massPar,
int  nDaug,
double *  massDau 
)
inlinestatic

Definition at line 48 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

48{ return partlist()[i.getId()].getMassProb(mass,massPar,nDaug,massDau);}
double mass

Referenced by EvtParticle::compMassProb().

◆ getMassProb() [2/2]

static double EvtPDL::getMassProb ( EvtId  i,
double  mass,
double  massPar,
int  nDaug,
double *  massDau 
)
inlinestatic

Definition at line 48 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

48{ return partlist()[i.getId()].getMassProb(mass,massPar,nDaug,massDau);}

◆ getMaxMass() [1/2]

◆ getMaxMass() [2/2]

static double EvtPDL::getMaxMass ( EvtId  i)
inlinestatic

Definition at line 50 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

50{return partlist()[i.getId()].getMassMax();}

◆ getMaxRange() [1/2]

static double EvtPDL::getMaxRange ( EvtId  i)
inlinestatic

Definition at line 53 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

53{return partlist()[i.getId()].getMaxRange();}

◆ getMaxRange() [2/2]

static double EvtPDL::getMaxRange ( EvtId  i)
inlinestatic

Definition at line 53 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

53{return partlist()[i.getId()].getMaxRange();}

◆ getMeanMass() [1/2]

◆ getMeanMass() [2/2]

static double EvtPDL::getMeanMass ( EvtId  i)
inlinestatic

Definition at line 45 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

45{ return partlist()[i.getId()].getMass(); }

◆ getMinMass() [1/2]

◆ getMinMass() [2/2]

static double EvtPDL::getMinMass ( EvtId  i)
inlinestatic

Definition at line 51 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

51{return partlist()[i.getId()].getMassMin();}

◆ getRandMass() [1/2]

static double EvtPDL::getRandMass ( EvtId  i,
EvtId parId,
int  nDaug,
EvtId dauId,
EvtId othDaugId,
double  maxMass,
double *  dauMasses 
)
inlinestatic

Definition at line 47 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

47{return partlist()[i.getId()].getRandMass(parId,nDaug,dauId,othDaugId,maxMass,dauMasses);}

Referenced by EvtParticle::initDecay().

◆ getRandMass() [2/2]

static double EvtPDL::getRandMass ( EvtId  i,
EvtId parId,
int  nDaug,
EvtId dauId,
EvtId othDaugId,
double  maxMass,
double *  dauMasses 
)
inlinestatic

Definition at line 47 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

47{return partlist()[i.getId()].getRandMass(parId,nDaug,dauId,othDaugId,maxMass,dauMasses);}

◆ getSpinType() [1/2]

◆ getSpinType() [2/2]

static EvtSpinType::spintype EvtPDL::getSpinType ( EvtId  i)
inlinestatic

Definition at line 61 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

62 {return partlist()[i.getId()].getSpinType();}

◆ getStdHep() [1/2]

◆ getStdHep() [2/2]

static int EvtPDL::getStdHep ( EvtId  id)
inlinestatic

Definition at line 56 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

56{return partlist()[id.getId()].getStdHep();}

◆ getWidth() [1/2]

◆ getWidth() [2/2]

static double EvtPDL::getWidth ( EvtId  i)
inlinestatic

Definition at line 54 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

54{return partlist()[i.getId()].getWidth();}

◆ includeBirthFactor() [1/2]

static void EvtPDL::includeBirthFactor ( EvtId  i,
bool  yesno 
)
inlinestatic

Definition at line 73 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

73{partlist()[i.getId()].includeBirthFactor(yesno);}

Referenced by EvtDecayTable::readDecayFile().

◆ includeBirthFactor() [2/2]

static void EvtPDL::includeBirthFactor ( EvtId  i,
bool  yesno 
)
inlinestatic

Definition at line 73 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

73{partlist()[i.getId()].includeBirthFactor(yesno);}

◆ includeDecayFactor() [1/2]

static void EvtPDL::includeDecayFactor ( EvtId  i,
bool  yesno 
)
inlinestatic

Definition at line 74 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

74{partlist()[i.getId()].includeDecayFactor(yesno);}

Referenced by EvtDecayTable::readDecayFile().

◆ includeDecayFactor() [2/2]

static void EvtPDL::includeDecayFactor ( EvtId  i,
bool  yesno 
)
inlinestatic

Definition at line 74 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

74{partlist()[i.getId()].includeDecayFactor(yesno);}

◆ name() [1/2]

static std::string EvtPDL::name ( EvtId  i)
inlinestatic

Definition at line 64 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

64{return partlist()[i.getAlias()].getName();}

Referenced by EvtParticleDecayList::addMode(), aliasChgConj(), chargeConj(), EvtDecayBase::checkQ(), EvtAngH2::decay(), EvtBtoKD3P::decay(), EvtCalHelAmp::decay(), EvtConExc::decay(), EvtJetSet::decay(), EvtLunda::decay(), EvtLundCharm::decay(), EvtOpenCharm::decay(), EvtPhokhara::decay(), EvtPhokhara_4pi::decay(), EvtPhokhara_K0K0::decay(), EvtPhokhara_KK::decay(), EvtPhokhara_LLB::decay(), EvtPhokhara_nnbar::decay(), EvtPhokhara_pi0pi0pipi::decay(), EvtPhokhara_pipi::decay(), EvtPhokhara_pipieta::decay(), EvtPhokhara_pipipi0::decay(), EvtPhokhara_ppbar::decay(), EvtPycont::decay(), EvtPythia::decay(), EvtTauHadnu::decay(), EvtTauola::decay(), EvtParticle::dumpTree(), EvtMTree::EvtMTree(), EvtParticleDecayList::finalize(), EvtDecayBase::findMass(), EvtDecayBase::findMasses(), EvtPsi3Sdecay::findMode(), EvtParticle::generateMassTree(), EvtConExc::get_mode(), EvtParticleDecayList::getDecayModel(), getId(), EvtDecayBase::getProbMax(), EvtAbsLineShape::getRandMass(), EvtSLBKPoleFF::getscalarff(), EvtCPUtil::incoherentMix(), EvtbTosllAli::init(), EvtbTosllBall::init(), EvtConExc::init(), EvtJetSet::init(), EvtLunda::init(), EvtLundCharm::init(), EvtOpenCharm::init(), EvtPhokhara::init(), EvtPhokhara_4pi::init(), EvtPhokhara_K0K0::init(), EvtPhokhara_KK::init(), EvtPhokhara_LLB::init(), EvtPhokhara_nnbar::init(), EvtPhokhara_pi0pi0pipi::init(), EvtPhokhara_pipi::init(), EvtPhokhara_pipieta::init(), EvtPhokhara_pipipi0::init(), EvtPhokhara_ppbar::init(), EvtPythia::init(), EvtSSDCP::init(), EvtTauHadnu::init(), EvtTauola::init(), EvtVSSBMixCPT::init(), EvtConExc::init_mode(), EvtParticle::initDecay(), EvtDecayAmp::makeDecay(), EvtDecayProb::makeDecay(), EvtParticleFactory::particleFactory(), EvtParticle::printParticle(), EvtDecayBase::printSummary(), EvtParticle::printTree(), EvtParticle::printTreeRec(), EvtConExc::PrintXS(), EvtDecayTable::readDecayFile(), EvtParticleDecayList::removeMode(), EvtDecayBase::saveDecayInfo(), EvtConExc::SetP4(), EvtParticle::setPolarizedSpinDensity(), EvtParticle::setVectorSpinDensity(), EvtParticle::treeStr(), EvtParticle::treeStrRec(), and EvtParticle::writeTreeRec().

◆ name() [2/2]

static std::string EvtPDL::name ( EvtId  i)
inlinestatic

Definition at line 64 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

64{return partlist()[i.getAlias()].getName();}

◆ read() [1/2]

void EvtPDL::read ( const char *  fname)

Definition at line 58 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

59{
60 readPDT(fname);
61}
void readPDT(const std::string fname)

◆ read() [2/2]

void EvtPDL::read ( const char *  fname)

◆ readPDT() [1/2]

void EvtPDL::readPDT ( const std::string  fname)

Definition at line 63 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.cc.

63 {
64
65
66 ifstream indec;
67
68 indec.open(fname.c_str());
69
70 char cmnd[100];
71 char xxxx[100];
72
73 char pname[100];
74 int stdhepid;
75 double mass;
76 double pwidth;
77 double pmaxwidth;
78 int chg3;
79 int spin2;
80 double ctau;
81 int lundkc;
82 EvtId i;
83
84 if (!indec) {
85 report(ERROR,"EvtGen") << "Could not open:"<<fname.c_str()<<"EvtPDL"<<endl;
86 return;
87 }
88
89 do{
90
91 char ch,ch1;
92
93 do{
94
95 indec.get(ch);
96 if (ch=='\n') indec.get(ch);
97 if (ch!='*') {
98 indec.putback(ch);
99 }
100 else{
101 while (indec.get(ch1),ch1!='\n');
102 }
103 } while(ch=='*');
104
105 indec >> cmnd;
106
107 if (strcmp(cmnd,"end")){
108
109 if (!strcmp(cmnd,"add")){
110
111 indec >> xxxx;
112 indec >> xxxx;
113 indec >> pname;
114 indec >> stdhepid;
115 indec >> mass;
116 indec >> pwidth;
117 indec >> pmaxwidth;
118 indec >> chg3;
119 indec >> spin2;
120 indec >> ctau;
121 indec >> lundkc;
122
123
124 i=EvtId(_nentries,_nentries);
125
126 EvtPartProp tmp;
127
129
130 if (spin2==0) tmp.setSpinType(EvtSpinType::SCALAR);
131 if (spin2==1) tmp.setSpinType(EvtSpinType::DIRAC);
132 if (spin2==2) tmp.setSpinType(EvtSpinType::VECTOR);
133 if (spin2==3) tmp.setSpinType(EvtSpinType::RARITASCHWINGER);
134 if (spin2==4) tmp.setSpinType(EvtSpinType::TENSOR);
135 if (spin2==5) tmp.setSpinType(EvtSpinType::SPIN5HALF);
136 if (spin2==6) tmp.setSpinType(EvtSpinType::SPIN3);
137 if (spin2==7) tmp.setSpinType(EvtSpinType::SPIN7HALF);
138 if (spin2==8) tmp.setSpinType(EvtSpinType::SPIN4);
139 if (spin2==2 && mass < 0.0001 ) tmp.setSpinType(EvtSpinType::PHOTON);
140 if (spin2==1 && mass < 0.0001 ) tmp.setSpinType(EvtSpinType::NEUTRINO);
141
142
143 if (!strcmp(pname,"string")){
145 }
146
147 if (!strcmp(pname,"vpho")){
149 }
150
151
152 tmp.setId(i);
153 tmp.setIdChgConj(EvtId(-1,-1));
154 tmp.setStdHep(stdhepid);
155 tmp.setLundKC(lundkc);
156 tmp.setName(pname);
157 assert(_particleNameLookup.find(std::string(pname))==
158 _particleNameLookup.end());
159 _particleNameLookup[std::string(pname)]=_nentries;
160 tmp.setctau(ctau);
161 tmp.setChg3(chg3);
162 //report(INFO,"EvtGen") << "particle,chg3:"<<i<<","<<chg3<<endl;
163
164 tmp.initLineShape(mass,pwidth,pmaxwidth);
165
166
167 partlist().push_back(tmp);
168 _nentries++;
169
170 }
171
172 // if find a set read information and discard it
173
174 if (!strcmp(cmnd,"set")){
175
176 indec >> xxxx;
177 indec >> xxxx;
178 indec >> xxxx;
179 indec >> xxxx;
180 }
181
182 }
183
184 }while(strcmp(cmnd,"end"));
185
186 setUpConstsPdt();
187
188}
void initLineShape(double mass, double width, double maxRange)
std::ifstream ifstream
Definition: bpkt_streams.h:44

Referenced by EvtGen::EvtGen(), and read().

◆ readPDT() [2/2]

void EvtPDL::readPDT ( const std::string  fname)

◆ reSetBlatt() [1/2]

static void EvtPDL::reSetBlatt ( EvtId  i,
double  blatt 
)
inlinestatic

Definition at line 72 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

72{partlist()[i.getId()].reSetBlatt(blatt);}

Referenced by EvtDecayTable::readDecayFile().

◆ reSetBlatt() [2/2]

static void EvtPDL::reSetBlatt ( EvtId  i,
double  blatt 
)
inlinestatic

Definition at line 72 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

72{partlist()[i.getId()].reSetBlatt(blatt);}

◆ reSetMass() [1/2]

static void EvtPDL::reSetMass ( EvtId  i,
double  mass 
)
inlinestatic

◆ reSetMass() [2/2]

static void EvtPDL::reSetMass ( EvtId  i,
double  mass 
)
inlinestatic

Definition at line 68 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

68{ partlist()[i.getId()].reSetMass( mass);}

◆ reSetMassMax() [1/2]

static void EvtPDL::reSetMassMax ( EvtId  i,
double  mass 
)
inlinestatic

Definition at line 71 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

71{ partlist()[i.getId()].reSetMassMax(mass);}

Referenced by EvtDecayTable::readDecayFile().

◆ reSetMassMax() [2/2]

static void EvtPDL::reSetMassMax ( EvtId  i,
double  mass 
)
inlinestatic

Definition at line 71 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

71{ partlist()[i.getId()].reSetMassMax(mass);}

◆ reSetMassMin() [1/2]

static void EvtPDL::reSetMassMin ( EvtId  i,
double  mass 
)
inlinestatic

Definition at line 70 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

70{ partlist()[i.getId()].reSetMassMin(mass);}

Referenced by EvtDecayTable::readDecayFile().

◆ reSetMassMin() [2/2]

static void EvtPDL::reSetMassMin ( EvtId  i,
double  mass 
)
inlinestatic

Definition at line 70 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

70{ partlist()[i.getId()].reSetMassMin(mass);}

◆ reSetWidth() [1/2]

static void EvtPDL::reSetWidth ( EvtId  i,
double  width 
)
inlinestatic

Definition at line 69 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

69{ partlist()[i.getId()].reSetWidth(width);}

Referenced by EvtConExc::decay(), EvtConExc::init(), and EvtDecayTable::readDecayFile().

◆ reSetWidth() [2/2]

static void EvtPDL::reSetWidth ( EvtId  i,
double  width 
)
inlinestatic

Definition at line 69 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

69{ partlist()[i.getId()].reSetWidth(width);}

◆ setPWForBirthL() [1/2]

static void EvtPDL::setPWForBirthL ( EvtId  i,
int  spin,
EvtId  par,
EvtId  othD 
)
static

◆ setPWForBirthL() [2/2]

static void EvtPDL::setPWForBirthL ( EvtId  i,
int  spin,
EvtId  par,
EvtId  othD 
)
static

◆ setPWForDecay() [1/2]

static void EvtPDL::setPWForDecay ( EvtId  i,
int  spin,
EvtId  d1,
EvtId  d2 
)
inlinestatic

Definition at line 77 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

77{ partlist()[i.getId()].setPWForDecay(spin,d1,d2);}

Referenced by EvtDecayTable::readDecayFile().

◆ setPWForDecay() [2/2]

static void EvtPDL::setPWForDecay ( EvtId  i,
int  spin,
EvtId  d1,
EvtId  d2 
)
inlinestatic

Definition at line 77 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtPDL.hh.

77{ partlist()[i.getId()].setPWForDecay(spin,d1,d2);}

The documentation for this class was generated from the following files: