FairRoot/PandaRoot
PndPhoGunShortP.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndPhoGunShortP header file -----
3 // ----- Created 11/09/13 by Harphool Kumawat -----
4 // ----- -----
5 // ----- -----
6 // -------------------------------------------------------------------------
7 
16 #ifndef PNDPHOGUNSHORTP_H
17 #define PNDPHOGUNSHORTP_H
18 
19 #include "FairTask.h"
20 #include "TClonesArray.h"
21 #include "PndMCTrack.h"
22 #include "PndDrcHit.h"
23 #include "PndDrcPDHit.h"
24 #include "PndStack.h"
25 #include "FairBaseParSet.h"
26 #include "PndGeoDrcPar.h"
27 #include "TString.h"
28 #include <string>
29 
30 #include "PndDrcBarPoint.h"
31 #include "PndDrcPDPoint.h"
32 #include "PndDrcEVPoint.h"
33 #include "PndDrcHit.h"
34 #include "PndDrcPDHit.h"
35 #include "PndDrcDigi.h"
36 #include "PndGeoHandling.h"
37 
38 #include "PndDrcLutNode.h"
39 
40 #ifndef ROOT_TParticlePDG
41 #include "TParticlePDG.h"
42 #endif
43 #ifndef ROOT_TDatabasePDG
44 #include "TDatabasePDG.h"
45 #endif
46 
47 class PndPhoGunShortP : public FairTask {
48 
49 public:
50 
53 
55  PndPhoGunShortP(Int_t verbose);
56 
58  virtual ~PndPhoGunShortP();
59 
60  virtual InitStatus Init();
61 
63  virtual void Exec(Option_t* option);
64 
66  virtual void Finish();
67 
68  void SetOutputFile(TString outName = "lutnode.root"){fOutputName = outName;}
69 
70 private:
71 
72  void ProcessPhotonHit();
73  void InitLut();
74 
75 
76  Int_t fDetectorID;
77 
78  TClonesArray* fBarPointArray; // DRC MC points in the bars
79  TClonesArray* fPDPointArray; // DRC points in the photon detector
80  TClonesArray* fPDHitArray; // DRC Hits in the photon detector
81  TClonesArray* fMCArray; // DRC MCPoints in the photon detector
82  TClonesArray* fEVPointArray; // DRC MCPoints in the photon detector
83  TClonesArray *fDigiArray;
84 
85  //TClonesArray* fChPhoArray; // output array of PndChPho
86 
87  TList* fHistoList;
88  TFile* froot;
89 
93 
95  void SetDefaultParameters();
96 
97  Double_t InBarCoordSyst(TVector3);
99 
101  Int_t fVerbose;
102 
103  Int_t nevents;
104  Int_t ambiguity;
105 
109  Int_t fBarId;
110 
111  // parameters:
123 
129 
135  TVector3 fPphoInit;
136  TVector3 fStartVertex;
137  TVector3 fPDSec,fEVSec,fEvSec;
142  TArrayD fmatrixdata;
145 
147  TVector3 fPphoB; // kBar
148 
149 
155  TClonesArray *fLut[5];
156 
157  TFile *fFile;
158  TTree *fTree;
159 
160  ClassDef(PndPhoGunShortP,1)
161 
162 };
163 
164 #endif
PndDrcPDHit * pdhit
TClonesArray * fEVPointArray
virtual ~PndPhoGunShortP()
#define verbose
TClonesArray * fDigiArray
PndDrcEVPoint * EVpt
TClonesArray * fPDHitArray
PndGeoDrc * fGeo
Basic geometry data of barrel DRC.
Double_t InBarCoordSyst(TVector3)
Class to access the naming information of the MVD.
virtual void Finish()
Double_t fNweirdPhotons
void SetOutputFile(TString outName="lutnode.root")
void SetDefaultParameters()
Double_t
PndDrcEVPoint * EVt
TClonesArray * fLut[5]
PndGeoHandling * fGeoH
Double_t FindReflectionType(Double_t, Double_t, Double_t, TString)
TClonesArray * fPDPointArray
TClonesArray * fMCArray
Double_t PlanR[6]
virtual InitStatus Init()
virtual void Exec(Option_t *option)
PndDrcPDPoint * Ppt
PndMCTrack * tr
Double_t PlanU[9]
Double_t PlanB[9]
PndDrcDigi * fDigi
TClonesArray * fBarPointArray