CbmRoot
|
#include <CbmShieldGenerator.h>
Public Member Functions | |
CbmShieldGenerator () | |
CbmShieldGenerator (const char *fileName) | |
virtual | ~CbmShieldGenerator () |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
void | SetPartType (int partType) |
Private Member Functions | |
void | CloseInput () |
Int_t | RegisterIons () |
CbmShieldGenerator (const CbmShieldGenerator &) | |
CbmShieldGenerator & | operator= (const CbmShieldGenerator &) |
ClassDef (CbmShieldGenerator, 2) | |
Private Attributes | |
std::ifstream * | fInputFile |
const Char_t * | fFileName |
Input file stream. More... | |
TDatabasePDG * | fPDG |
Input file Name. More... | |
int | fpartType |
PDG database. More... | |
std::map< TString, FairIon * > | fIonMap |
Definition at line 38 of file CbmShieldGenerator.h.
CbmShieldGenerator::CbmShieldGenerator | ( | ) |
Default constructor without arguments should not be used.
Definition at line 24 of file CbmShieldGenerator.cxx.
CbmShieldGenerator::CbmShieldGenerator | ( | const char * | fileName | ) |
Standard constructor.
fileName | The input file name |
Definition at line 35 of file CbmShieldGenerator.cxx.
References CloseInput(), fFileName, fInputFile, and RegisterIons().
|
virtual |
|
private |
|
private |
|
private |
Private method CloseInput. Just for convenience. Closes the input file properly. Called from destructor and from ReadEvent.
Definition at line 163 of file CbmShieldGenerator.cxx.
References fFileName, and fInputFile.
Referenced by CbmShieldGenerator(), ReadEvent(), and ~CbmShieldGenerator().
|
private |
|
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 62 of file CbmShieldGenerator.cxx.
References CloseInput(), fInputFile, and fpartType.
|
private |
Private method RegisterIons. Goes through the input file and registers any ion needed.
Definition at line 178 of file CbmShieldGenerator.cxx.
References buffer, fInputFile, and fIonMap.
Referenced by CbmShieldGenerator().
|
inline |
Definition at line 62 of file CbmShieldGenerator.h.
References fpartType.
|
private |
Input file stream.
Definition at line 66 of file CbmShieldGenerator.h.
Referenced by CbmShieldGenerator(), and CloseInput().
|
private |
Definition at line 65 of file CbmShieldGenerator.h.
Referenced by CbmShieldGenerator(), CloseInput(), ReadEvent(), and RegisterIons().
|
private |
STL map from ion name to FairIon
Definition at line 82 of file CbmShieldGenerator.h.
Referenced by RegisterIons().
|
private |
PDG database.
Definition at line 69 of file CbmShieldGenerator.h.
Referenced by ReadEvent(), and SetPartType().
|
private |
Input file Name.
Definition at line 67 of file CbmShieldGenerator.h.