FairRoot/PandaRoot
PndCorrDistGenerator.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndCorrDistGenerator header file -----
3 // ----- Created 23/05/07 by Aida Galoyan -----
4 // -------------------------------------------------------------------------
5 
13 #ifndef PNDCORRDISTGENERATOR_H
14 #define PNDCORRDISTGENERATOR_H 1
15 
16 
17 #include "FairGenerator.h"
18 #include "THParticle.h"
19 
20 // using namespace std;
21 
22 class TClonesArray;
23 class TFile;
24 class TH2F;
25 class TTree;
26 class TVirtualMCStack;
27 class FairPrimaryGenerator;
28 
29 
30 
31 class PndCorrDistGenerator : public FairGenerator
32 {
33 
34  public:
35 
38 
39 
43  PndCorrDistGenerator(const Char_t* fileName);
44 
45 
47  virtual ~PndCorrDistGenerator();
48 
49 
54  virtual Bool_t ReadEvent(FairPrimaryGenerator* primGen);
55  void SetParam(){fParam=kTRUE;};
56  void SetThetaRange(Double_t thetLow=0.,Double_t thetHigh=0.)
57  {fTheLow = thetLow; fTheHigh = thetHigh;};
58 
59 
60  private:
61 
62  Int_t iEvent;
63  const Char_t* fFileName;
64  TFile* fInputFile;
65  TH2F* fInputHist;
66  TClonesArray* fParticles;
67  Int_t fPdgType;
70 
73  void CloseInput();
74 
76 
78 
80 
81 };
82 
83 #endif
Double_t MeanMomentum(Double_t thet)
virtual Bool_t ReadEvent(FairPrimaryGenerator *primGen)
TH2F * fInputHist
Pointer to input file.
FairPrimaryGenerator * primGen
Definition: sim_emc_apd.C:81
Int_t fPdgType
Particle array from PLUTO.
const Char_t * fFileName
Event number.
Double_t
ClassDef(PndCorrDistGenerator, 3)
void SetThetaRange(Double_t thetLow=0., Double_t thetHigh=0.)
TFile * fInputFile
Input file name.
Double_t MaxBoltDistP(Double_t MeanP)
TClonesArray * fParticles
Pointer to input histogramm 2D.