36 static thread_local EvtPDL theInstance;
49 std::ifstream pdtIn( fname );
52 <<
"Could not open:" << fname <<
"EvtPDL" << endl;
76 std::size_t nentries = 0;
78 indec.seekg( 0, std::ios::beg );
90 while ( indec.get( ch1 ), ch1 !=
'\n' )
93 }
while ( ch ==
'*' );
97 if ( strcmp( cmnd,
"end" ) ) {
98 if ( !strcmp( cmnd,
"add" ) ) {
111 i =
EvtId( nentries, nentries );
135 if ( spin2 == 2 && mass < 0.0001 )
137 if ( spin2 == 1 && mass < 0.0001 )
140 if ( !strcmp( pname,
"string" ) ) {
144 if ( !strcmp( pname,
"vpho" ) ) {
156 <<
"The particle name:" << pname
157 <<
" is already defined." << endl;
159 <<
"Will terminate execution.";
174 if ( !strcmp( cmnd,
"set" ) ) {
182 }
while ( strcmp( cmnd,
"end" ) );
190 <<
"Can't charge conjugate the two aliases:"
209 if ( idchg !=
EvtId( -1, -1 ) )
212 if (
id.
getId() !=
id.getAlias() ) {
220 if (
id.getAlias() !=
id.
getId() ) {
222 <<
"Trying to charge conjugate alias particle:" <<
name(
id ).c_str()
223 <<
" without defining the alias!" << endl;
248 return EvtId( -1, -1 );
258 <<
"Redefining alias:" << newname.c_str()
259 <<
" will be ignored!" << endl;
273 <<
"The particle name:" << newname <<
" is already defined." << endl;
285 std::map<std::string, int>::iterator it =
288 return EvtId( -1, -1 );
303 return EvtId( -1, -1 );
317 EvtId* othDaugId,
double maxMass,
double* dauMasses )
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=nullptr)
static double getWidth(EvtId i)
static void readPDT(std::istream &data)
static void reSetBlatt(EvtId i, double blatt)
static EvtSpinType::spintype getSpinType(EvtId i)
static void includeDecayFactor(EvtId i, bool yesno)
static EvtId evtIdFromLundKC(int pythiaId)
static int getStdHep(EvtId id)
static void reSetMassMin(EvtId i, double mass)
static void setPWForBirthL(EvtId i, int spin, EvtId par, EvtId othD)
static EvtPDL & getInstance()
static void reSetBlattBirth(EvtId i, double blatt)
static double getMaxRange(EvtId i)
static EvtId getEntry(int i)
static double getMaxMass(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 EvtId evtIdFromStdHep(int stdhep)
static std::string name(EvtId i)
static void alias(EvtId num, const std::string &newname)
static double getMeanMass(EvtId i)
static void changeLS(EvtId i, std::string &newLS)
std::map< std::string, int > m_particleNameLookup
static EvtId chargeConj(EvtId id)
static double getMassProb(EvtId i, double mass, double massPar, int nDaug, double *massDau)
static double getctau(EvtId i)
static double getMinMass(EvtId i)
std::vector< EvtPartProp > m_partlist
static int getLundKC(EvtId id)
static void setPWForDecay(EvtId i, int spin, EvtId d1, EvtId d2)
static void includeBirthFactor(EvtId i, bool yesno)
static void reSetWidth(EvtId i, double width)
static void aliasChgConj(EvtId a, EvtId abar)
static void read(const std::string &fname)
static EvtId getId(const std::string &name)
static void reSetMassMax(EvtId i, double mass)
static void reSetMass(EvtId i, double mass)
void initLineShape(double mass, double width, double maxRange)
void setName(std::string pname)
void setStdHep(int stdhep)
void setSpinType(EvtSpinType::spintype stype)
void setIdChgConj(EvtId idchgconj)
void setLundKC(int lundkc)