// ------------------------------------------------------------------------- // ----- FairUrqmdGenerator header file ----- // ----- Created 11/06/04 by V. Friese / D.Bertini ----- // ------------------------------------------------------------------------- /** FairUrqmdGenerator.h *@ author V.Friese *@author D.Bertini * The FairUrqmdGenerator reads the output file 14 (ftn14) from UrQMD. The UrQMD calculation has to be performed in the CM system of the collision; Lorentz transformation into the lab is performed by this class. Derived from FairGenerator. **/ #ifndef FAIRURQMDGENERATOR_H #define FAIRURQMDGENERATOR_H #include "FairGenerator.h" #include #include class TVirtualMCStack; class FairPrimaryGenerator; class FairUrqmdGenerator : public FairGenerator { public: /** Default constructor without arguments should not be used. **/ FairUrqmdGenerator(); /** Standard constructor. * @param fileName The input file name **/ FairUrqmdGenerator(const char* fileName); /** Destructor. **/ ~FairUrqmdGenerator(); /** Reads on event from the input file and pushes the tracks onto ** the stack. Abstract method in base class. ** @param pStack pointer to the stack ** @param ver not used **/ Bool_t ReadEvent(FairPrimaryGenerator* primGen); //Skip some events in file Bool_t SkipEvents(Int_t count); private: FILE* fInputFile; //! Input file std::map fParticleTable; //! Map from UrQMD PID to PDGPID const Char_t* fFileName; //! Input file name /** Private method ReadConversionTable. Reads the conversion table from UrQMD particle code to PDG particle code and fills the conversion map. Is called from the constructor. **/ void ReadConversionTable(); FairUrqmdGenerator(const FairUrqmdGenerator&); FairUrqmdGenerator& operator=(const FairUrqmdGenerator&); ClassDef(FairUrqmdGenerator,1); }; #endif