FairRoot/PandaRoot
PndDpmGenerator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDpmGenerator header file -----
3 // ----- Created 05/02/07 by S.Spataro -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef PND_DPMGENERATOR_H
16 #define PND_DPMGENERATOR_H
17 
18 
19 #include "FairGenerator.h"
20 
21 class TClonesArray;
22 class TFile;
23 class TTree;
24 class TVirtualMCStack;
25 class FairPrimaryGenerator;
26 
27 
28 
29 class PndDpmGenerator : public FairGenerator
30 {
31 
32  public:
33 
36 
37 
41  PndDpmGenerator(const Char_t* fileName);
42 
43 
45  virtual ~PndDpmGenerator();
46 
47 
52  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
53 
54  void SetStartEvent(Int_t start) { iEvent = start; };
55 
56  private:
57 
58  Int_t iEvent;
59  const Char_t* fFileName;
60  TFile* fInputFile;
61  TTree* fInputTree;
62  TClonesArray* fParticles;
63 
66  void CloseInput();
67 
68 
70 
71 };
72 
73 #endif
TClonesArray * fParticles
Pointer to input tree.
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
ClassDef(PndDpmGenerator, 1)
void CloseInput()
Particle array from PLUTO.
void SetStartEvent(Int_t start)
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
TFile * fInputFile
Input file name.
const Char_t * fFileName
Event number.
virtual ~PndDpmGenerator()
TTree * fInputTree
Pointer to input file.