Changeset View
Changeset View
Standalone View
Standalone View
EvtGen/EvtGen.hh
Show All 32 Lines | |||||
class EvtSpinDensity; | class EvtSpinDensity; | ||||
class EvtAbsRadCorr; | class EvtAbsRadCorr; | ||||
class EvtDecayBase; | class EvtDecayBase; | ||||
class EvtHepMCEvent; | class EvtHepMCEvent; | ||||
class EvtGen { | class EvtGen { | ||||
public: | public: | ||||
EvtGen( const std::string& decayName, const std::string& pdtTableName, | EvtGen( const std::string& decayName, const std::string& pdtTableName, | ||||
EvtRandomEngine* randomEngine = 0, EvtAbsRadCorr* isrEngine = 0, | EvtRandomEngine* randomEngine = nullptr, | ||||
const std::list<EvtDecayBase*>* extraModels = 0, int mixingType = 1, | EvtAbsRadCorr* isrEngine = nullptr, | ||||
bool useXml = false ); | const std::list<EvtDecayBase*>* extraModels = nullptr, | ||||
int mixingType = 1, bool useXml = false ); | |||||
EvtGen( const std::string& decayName, std::istream& pdtTableData, | EvtGen( const std::string& decayName, std::istream& pdtTableData, | ||||
EvtRandomEngine* randomEngine = 0, EvtAbsRadCorr* isrEngine = 0, | EvtRandomEngine* randomEngine = nullptr, | ||||
const std::list<EvtDecayBase*>* extraModels = 0, int mixingType = 1, | EvtAbsRadCorr* isrEngine = nullptr, | ||||
bool useXml = false ); | const std::list<EvtDecayBase*>* extraModels = nullptr, | ||||
int mixingType = 1, bool useXml = false ); | |||||
~EvtGen(); | ~EvtGen(); | ||||
void readUDecay( const std::string& udecay_name, bool useXml = false ); | void readUDecay( const std::string& udecay_name, bool useXml = false ); | ||||
EvtHepMCEvent* generateDecay( int PDGid, EvtVector4R refFrameP4, | EvtHepMCEvent* generateDecay( int PDGid, EvtVector4R refFrameP4, | ||||
EvtVector4R translation, | EvtVector4R translation, | ||||
EvtSpinDensity* spinDensity = 0 ); | EvtSpinDensity* spinDensity = nullptr ); | ||||
void generateDecay( EvtParticle* p ); | void generateDecay( EvtParticle* p ); | ||||
private: | private: | ||||
void initialize( const std::string& decayName, std::istream& pdtTable, | void initialize( const std::string& decayName, std::istream& pdtTable, | ||||
EvtRandomEngine* randomEngine = 0, | EvtRandomEngine* randomEngine = nullptr, | ||||
EvtAbsRadCorr* isrEngine = 0, | EvtAbsRadCorr* isrEngine = nullptr, | ||||
const std::list<EvtDecayBase*>* extraModels = 0, | const std::list<EvtDecayBase*>* extraModels = nullptr, | ||||
int mixingType = 1, bool useXml = false ); | int mixingType = 1, bool useXml = false ); | ||||
EvtPDL _pdl; | EvtPDL _pdl; | ||||
int _mixingType; | int _mixingType; | ||||
}; | }; | ||||
#endif | #endif |