BmnRoot
Loading...
Searching...
No Matches
MpdPlutoGenerator.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------
2// ----- MpdPlutoGenerator header file -----
3// ----- Created 13/07/04 by V. Friese / D.Bertini -----
4// ----- Modified from FairPlutoGenerator for MPD by V. Zhezher -----
5// -------------------------------------------------------------------------
6
17#ifndef MPD_PLUTOGENERATOR_H
18#define MPD_PLUTOGENERATOR_H
19
20
21#include "FairGenerator.h"
22
23class TClonesArray;
24class TFile;
25class TTree;
26class TVirtualMCStack;
27class FairPrimaryGenerator;
28
29
30
31class MpdPlutoGenerator : public FairGenerator
32{
33
34 public:
35
38
39
43 MpdPlutoGenerator(const Char_t* fileName, Double_t ekin);
44
45
47 virtual ~MpdPlutoGenerator();
48
49
54 virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
55
56 //Skip some events in file
57 Bool_t SkipEvents(Int_t count);
58
59 private:
60
61 Int_t iEvent;
62 Double_t fEkin;
63 const Char_t* fFileName;
64 TFile* fInputFile;
65 TTree* fInputTree;
66 TClonesArray* fParticles;
67
70 void CloseInput();
71
72
73 ClassDef(MpdPlutoGenerator,1);
74
75};
76
77#endif
Bool_t SkipEvents(Int_t count)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)