File: Pythia7Initializer.h
Description:
The Pythia7Initializer is used to initialize the
Repository and create initial objects of each
class. It is also used to read in a dump file from pythia version 6
to get all standard particles.
Linking the Pythia7Initializer initializer into a
program ensures that also all relevant object files are loaded.
See
also:
namespace Pythia7
CLASS
Pythia7Initializer
Public members:
Pythia7Initializer();
Empty constructor.
void readDumpP6(string filename);
Read in particles and decay modes from a file produced by pythia
version 6 using PYLIST(11), PYLIST(12) and PYLIST(13).
void printEnums(string filename);
Print out an header file with an enumeration giving an identifier
to all particle codes.
Private members:
template <typename TPtr>
static TPtr create(string);
Create an object given a class name and return a pointer of the
specified type to it. Return the null pointer if this fails.
inline string previousLine() const;
inline string currentLine() const;
inline string nextLine() const;
bool readline();
void open(string);
PDPtr particleP6(long kf, string name);
PDPair particleP6(long kf, string name, string namea);
void particleDataP6(tPDPtr pd, double mass, double width,
double wcut, double lifetime,
int chg, int col, int decay);
void addChannelP6(tPDPtr pd, int sw, int ME,
double brat, const vector<string> & ch);
DecayerPtr getDecayerP6(int);
void constituentP6Masses();
ifstream theFile;
string thePreviousLine;
string theCurrentLine;
string theNextLine;
Utility methods for reading pythia 6 dump.
vector<int> mstu;
vector<double> paru;
vector<int> mstj;
vector<double> parj;
vector<double> parf;
Store pythia 6 parameters and switches.
DEFINED MACROS
PYTHIA7_Pythia7Initializer_H
INCLUDED FILES
Pythia7/Config/Pythia7.h
Pythia7/Utilities/DescriptionList.h
Pythia7/PDT/ParticleData.h
Pythia7/PDT/DecayMode.h
fstream
Pythia7Initializer.icc
Pythia7Initializer.tcc