CbmRoot
CbmPlutoGenerator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmPlutoGenerator header file -----
3 // ----- Created 13/07/04 by V. Friese / D.Bertini -----
4 // -------------------------------------------------------------------------
5 
16 #ifndef FAIR_PLUTOGENERATOR_H
17 #define FAIR_PLUTOGENERATOR_H
18 
19 #include "FairGenerator.h" // for FairGenerator
20 
21 #include "Rtypes.h" // for Char_t, etc
22 
23 #include <string>
24 #include <vector>
25 
26 class FairPrimaryGenerator;
27 
28 class TClonesArray;
29 class TChain;
30 
31 class PStaticData;
32 class PDataBase;
33 
34 class CbmPlutoGenerator : public FairGenerator {
35 
36 public:
39 
40 
44  CbmPlutoGenerator(const Char_t* fileName);
45 
49  CbmPlutoGenerator(std::vector<std::string> fileNames);
50 
53 
55  virtual ~CbmPlutoGenerator();
56 
57 
62  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
63  void SetManualPDG(Int_t pdg) { fPDGmanual = pdg; }
64 
65 
66 private:
69 
70  Int_t iEvent;
71  const Char_t* fFileName;
72  TChain* fInputChain;
73  TClonesArray* fParticles;
74  Int_t fPDGmanual;
75 
78  void CloseInput();
79 
81  void CheckFileExist(std::string filename);
82 
84 };
85 
86 #endif
CbmPlutoGenerator::CbmPlutoGenerator
CbmPlutoGenerator()
Definition: CbmPlutoGenerator.cxx:28
CbmPlutoGenerator::CbmPlutoGenerator
CbmPlutoGenerator(const CbmPlutoGenerator &)=delete
CbmPlutoGenerator::ReadEvent
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Definition: CbmPlutoGenerator.cxx:87
CbmPlutoGenerator::fbase
PDataBase * fbase
pluto static data
Definition: CbmPlutoGenerator.h:68
CbmPlutoGenerator::iEvent
Int_t iEvent
pluto data base
Definition: CbmPlutoGenerator.h:70
CbmPlutoGenerator::CloseInput
void CloseInput()
forced pdg value for undefined pluto codes
Definition: CbmPlutoGenerator.cxx:172
PStaticData
Definition: PStaticData.h:32
CbmPlutoGenerator::~CbmPlutoGenerator
virtual ~CbmPlutoGenerator()
Definition: CbmPlutoGenerator.cxx:77
CbmPlutoGenerator
Definition: CbmPlutoGenerator.h:34
CbmPlutoGenerator::fParticles
TClonesArray * fParticles
Pointer to input file.
Definition: CbmPlutoGenerator.h:73
CbmPlutoGenerator::fFileName
const Char_t * fFileName
Event number.
Definition: CbmPlutoGenerator.h:71
CbmPlutoGenerator::operator=
CbmPlutoGenerator & operator=(const CbmPlutoGenerator &)=delete
CbmPlutoGenerator::fdata
PStaticData * fdata
Definition: CbmPlutoGenerator.h:67
CbmPlutoGenerator::SetManualPDG
void SetManualPDG(Int_t pdg)
Definition: CbmPlutoGenerator.h:63
CbmPlutoGenerator::fInputChain
TChain * fInputChain
Input file name.
Definition: CbmPlutoGenerator.h:72
CbmPlutoGenerator::fPDGmanual
Int_t fPDGmanual
Particle array from PLUTO.
Definition: CbmPlutoGenerator.h:74
CbmPlutoGenerator::CheckFileExist
void CheckFileExist(std::string filename)
Definition: CbmPlutoGenerator.cxx:181
PDataBase
Definition: PDataBase.h:27
CbmPlutoGenerator::ClassDef
ClassDef(CbmPlutoGenerator, 4)