|
CbmRoot
|
#include <CbmPlutoGenerator.h>
Public Member Functions | |
| CbmPlutoGenerator () | |
| CbmPlutoGenerator (const Char_t *fileName) | |
| CbmPlutoGenerator (std::vector< std::string > fileNames) | |
| CbmPlutoGenerator (const CbmPlutoGenerator &)=delete | |
| CbmPlutoGenerator & | operator= (const CbmPlutoGenerator &)=delete |
| virtual | ~CbmPlutoGenerator () |
| virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
| void | SetManualPDG (Int_t pdg) |
| Int_t | GetNumAvailableEvents () |
| Get the maximum number of events available in the input file. | |
Private Member Functions | |
| void | CloseInput () |
| Maximum number of events in the input file. | |
| ClassDef (CbmPlutoGenerator, 5) | |
Private Attributes | |
| PStaticData * | fdata {makeStaticData()} |
| PDataBase * | fbase {makeDataBase()} |
| pluto static data | |
| Int_t | iEvent {0} |
| pluto data base | |
| const Char_t * | fFileName {""} |
| Event number. | |
| TChain * | fInputChain {nullptr} |
| Input file name. | |
| TClonesArray * | fParticles {new TClonesArray("PParticle", 100)} |
| Pointer to input file. | |
| Int_t | fPDGmanual {0} |
| Particle array from PLUTO. | |
| Int_t | fAvailableEvents {0} |
| forced pdg value for undefined pluto codes | |
Definition at line 35 of file CbmPlutoGenerator.h.
| CbmPlutoGenerator::CbmPlutoGenerator | ( | ) |
Default constructor (should not be used)
Definition at line 27 of file CbmPlutoGenerator.cxx.
Referenced by CbmPlutoGenerator(), ClassDef(), and operator=().
| CbmPlutoGenerator::CbmPlutoGenerator | ( | const Char_t * | fileName | ) |
Standard constructor
| fileName | The input (PLUTO) file name |
Definition at line 31 of file CbmPlutoGenerator.cxx.
References fAvailableEvents, fFileName, fInputChain, fParticles, and Cbm::File::IsRootFile().
| CbmPlutoGenerator::CbmPlutoGenerator | ( | std::vector< std::string > | fileNames | ) |
Constructor with list of input files
| fileNames | A list of (PLUTO) input file names |
Definition at line 48 of file CbmPlutoGenerator.cxx.
References fAvailableEvents, fInputChain, fParticles, and Cbm::File::IsRootFile().
|
delete |
References CbmPlutoGenerator().
|
virtual |
Destructor
Definition at line 66 of file CbmPlutoGenerator.cxx.
References CloseInput(), fbase, and fdata.
|
private |
References CbmPlutoGenerator().
|
private |
Maximum number of events in the input file.
Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.
Definition at line 161 of file CbmPlutoGenerator.cxx.
References fFileName, and fInputChain.
Referenced by ReadEvent(), and ~CbmPlutoGenerator().
|
inline |
Get the maximum number of events available in the input file.
Definition at line 69 of file CbmPlutoGenerator.h.
References fAvailableEvents.
Referenced by CbmTransport::Run().
|
delete |
References CbmPlutoGenerator().
|
virtual |
Reads on event from the input file and pushes the tracks onto the stack. Abstract method in base class.
| primGen | pointer to the FairPrimaryGenerator |
Definition at line 76 of file CbmPlutoGenerator.cxx.
References CloseInput(), fbase, fInputChain, fParticles, fPDGmanual, PParticle::GetDaughterIndex(), PParticle::GetParentIndex(), PParticle::getVertex(), PParticle::ID(), iEvent, and PParticle::Vect4().
|
inline |
Definition at line 64 of file CbmPlutoGenerator.h.
References fPDGmanual.
|
private |
forced pdg value for undefined pluto codes
Definition at line 80 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), CbmPlutoGenerator(), and GetNumAvailableEvents().
|
private |
pluto static data
Definition at line 73 of file CbmPlutoGenerator.h.
Referenced by ReadEvent(), and ~CbmPlutoGenerator().
|
private |
Definition at line 72 of file CbmPlutoGenerator.h.
Referenced by ~CbmPlutoGenerator().
|
private |
Event number.
Definition at line 76 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), and CloseInput().
|
private |
Input file name.
Definition at line 77 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), CbmPlutoGenerator(), CloseInput(), and ReadEvent().
|
private |
Pointer to input file.
Definition at line 78 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), CbmPlutoGenerator(), and ReadEvent().
|
private |
Particle array from PLUTO.
Definition at line 79 of file CbmPlutoGenerator.h.
Referenced by ReadEvent(), and SetManualPDG().
|
private |