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 
14 #ifndef PND_DPMGENERATOR_H
15 #define PND_DPMGENERATOR_H
16 
17 #include "FairGenerator.h"
18 
19 class TClonesArray;
20 class TFile;
21 class TTree;
22 class TVirtualMCStack;
23 class FairPrimaryGenerator;
24 
25 class PndDpmGenerator : public FairGenerator {
26 
27  public:
30 
34  PndDpmGenerator(const Char_t *fileName);
35 
37  virtual ~PndDpmGenerator();
38 
43  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
44 
45  void SetStartEvent(Int_t start) { iEvent = start; };
46 
47  private:
48  Int_t iEvent;
49  const Char_t *fFileName;
50  TFile *fInputFile;
51  TTree *fInputTree;
52  TClonesArray *fParticles;
53 
56  void CloseInput();
57 
58  ClassDef(PndDpmGenerator, 1);
59 };
60 
61 #endif
virtual ~PndDpmGenerator()
void SetStartEvent(Int_t start)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)