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) |
Private Member Functions | |
void | CloseInput () |
forced pdg value for undefined pluto codes More... | |
void | CheckFileExist (std::string filename) |
ClassDef (CbmPlutoGenerator, 4) | |
Private Attributes | |
PStaticData * | fdata |
PDataBase * | fbase |
pluto static data More... | |
Int_t | iEvent |
pluto data base More... | |
const Char_t * | fFileName |
Event number. More... | |
TChain * | fInputChain |
Input file name. More... | |
TClonesArray * | fParticles |
Pointer to input file. More... | |
Int_t | fPDGmanual |
Particle array from PLUTO. More... | |
Definition at line 34 of file CbmPlutoGenerator.h.
CbmPlutoGenerator::CbmPlutoGenerator | ( | ) |
Default constructor (should not be used)
Definition at line 28 of file CbmPlutoGenerator.cxx.
CbmPlutoGenerator::CbmPlutoGenerator | ( | const Char_t * | fileName | ) |
Standard constructor
fileName | The input (PLUTO) file name |
Definition at line 40 of file CbmPlutoGenerator.cxx.
References CheckFileExist(), fInputChain, and fParticles.
CbmPlutoGenerator::CbmPlutoGenerator | ( | std::vector< std::string > | fileNames | ) |
Constructor with list of input files
fileNames | A list of (PLUTO) input file names |
Definition at line 58 of file CbmPlutoGenerator.cxx.
References CheckFileExist(), fInputChain, and fParticles.
|
delete |
|
virtual |
Destructor
Definition at line 77 of file CbmPlutoGenerator.cxx.
References CloseInput(), fbase, and fdata.
|
private |
Check if file exists. Break fatal when it doesn't exist
Definition at line 181 of file CbmPlutoGenerator.cxx.
References buffer.
Referenced by CbmPlutoGenerator().
|
private |
|
private |
forced pdg value for undefined pluto codes
Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.
Definition at line 172 of file CbmPlutoGenerator.cxx.
References fFileName, and fInputChain.
Referenced by ReadEvent(), and ~CbmPlutoGenerator().
|
delete |
|
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 87 of file CbmPlutoGenerator.cxx.
References CloseInput(), fbase, fInputChain, fParticles, fPDGmanual, PParticle::GetDaughterIndex(), PDataBase::GetParamInt(), PParticle::GetParentIndex(), PParticle::getVertex(), PParticle::ID(), iEvent, and PParticle::Vect4().
|
inline |
Definition at line 63 of file CbmPlutoGenerator.h.
References fPDGmanual.
|
private |
pluto static data
Definition at line 68 of file CbmPlutoGenerator.h.
Referenced by ReadEvent(), and ~CbmPlutoGenerator().
|
private |
Definition at line 67 of file CbmPlutoGenerator.h.
Referenced by ~CbmPlutoGenerator().
|
private |
|
private |
Input file name.
Definition at line 72 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), CloseInput(), and ReadEvent().
|
private |
Pointer to input file.
Definition at line 73 of file CbmPlutoGenerator.h.
Referenced by CbmPlutoGenerator(), and ReadEvent().
|
private |
Particle array from PLUTO.
Definition at line 74 of file CbmPlutoGenerator.h.
Referenced by ReadEvent(), and SetManualPDG().
|
private |