PandaRoot
PndJRGenerator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndJRGenerator header file -----
3 // ----- Created 05/02/07 by S.Spataro -----
4 // ----- Modified 21/06/07 by A.Galoyan -----
5 // -------------------------------------------------------------------------
6 
14 #ifndef PND_JRGENERATOR_H
15 #define PND_JRGENERATOR_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 PndJRGenerator : public FairGenerator {
26 
27  public:
30 
34  PndJRGenerator(const Char_t *fileName);
35 
37  virtual ~PndJRGenerator();
38 
43  virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen);
44 
45  private:
46  Int_t iEvent;
47  const Char_t *fFileName;
48  TFile *fInputFile;
49  TTree *fInputTree;
50  TClonesArray *fParticles;
51 
54  void CloseInput();
55 
56  ClassDef(PndJRGenerator, 1);
57 };
58 
59 #endif
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
virtual ~PndJRGenerator()