StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEpdTrivialEventGenerator.h
1 #ifndef _StEpdTrivialEventGenerator
2 #define _StEpdTrivialEventGenerator
3 
4 /*
5  This is a pretty trival class. It samples some histograms (probability distributions)
6  and generates a list of momenta. And that's about it...
7 */
8 
9 class TH1D;
10 class TClonesArray;
11 class TRandom3;
12 
14  private:
15  TH1D* mDnDeta;
16  TH1D* mV1versusEta;
17  TH1D* mV2versusEta;
18  TRandom3* mRan;
19  TClonesArray* mTracks;
20  public:
21  // these are the three histograms that will be sampled. Do whatever you want, but you have to use the same x-axis binning
22  void SetDnDeta(TH1D* h);
23  void SetV1versusEta(TH1D* h);
24  void SetV2versusEta(TH1D* h);
25 
26  TClonesArray* Momenta(); // just a TClonesArray of TVector3 objects
27 
28  // StEpdTrivialEventGenerator();
29  StEpdTrivialEventGenerator(TH1D* DnDeta=0, TH1D* V1versusEta=0, TH1D* V2versusEta=0);
31 
32 };
33 
34 inline void StEpdTrivialEventGenerator::SetDnDeta(TH1D* h){mDnDeta=h;}
35 inline void StEpdTrivialEventGenerator::SetV1versusEta(TH1D* h){mV1versusEta=h;}
36 inline void StEpdTrivialEventGenerator::SetV2versusEta(TH1D* h){mV2versusEta=h;}
37 
38 #endif