FairRoot/PandaRoot
PndFlukaGenerator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndFlukaGenerator header file -----
3 // ----- -----
4 // -------------------------------------------------------------------------
5 
14 #ifndef PND_FLUKAGENERATOR_H
15 #define PND_FLUKAGENERATOR_H
16 
17 
18 #include "FairGenerator.h"
19 #include "TString.h"
20 #include <fstream>
21 
22 class TClonesArray;
23 class TFile;
24 class TTree;
25 class TVirtualMCStack;
26 class FairPrimaryGenerator;
27 class TF1;
28 
29 
30 
31 class PndFlukaGenerator : public FairGenerator
32 {
33 
34  public:
35 
38 
39 
43  PndFlukaGenerator(const Char_t* fileName);
44 
46  virtual ~PndFlukaGenerator();
47 
52  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
53 
54  protected:
55  Bool_t ReadRootEvent(FairPrimaryGenerator* primGen);
56  Bool_t Init();
57 
58  private:
59 
61 
62  Int_t iEvent;
63  Int_t iEntry;
65  TFile* fInputRootFile;
66  TTree* fInputTree;
67 
70  Int_t fpid;
71  Int_t fnpart;
72 
75  void CloseInput();
76 
77 
79 
80 };
81 
82 #endif
void CloseInput()
number of particles in event
TFile * fInputRootFile
Input file name.
Double_t fpx
Pointer to input tree.
Int_t fnpart
PDG code of particle.
TTree * fInputTree
Pointer to input file.
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
Double_t
Double_t fvx
Momentum of particle.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
Bool_t ReadRootEvent(FairPrimaryGenerator *primGen)
ClassDef(PndFlukaGenerator, 2)
TString fFileName
Root tree entry number.
Int_t fpid
Start Vertex of particle.
Int_t iEntry
Event number.