PandaRoot
PndGemMagneticFieldVsTrackParameters.h
Go to the documentation of this file.
1 //* $Id: */
2 
3 // -------------------------------------------------------------------------
4 // ----- PndGemMagneticFieldVsTrackParameters header file -----
5 // ----- Created 12/02/2009 by R. Karabowicz -----
6 // -------------------------------------------------------------------------
7 
18 #ifndef PNDGEMMAGNETICFIELDVSTRACKPARAMETERS_H
19 #define PNDGEMMAGNETICFIELDVSTRACKPARAMETERS_H 1
20 
21 #include "FairTask.h"
22 
23 #include "TStopwatch.h"
24 
25 #include "TH1F.h"
26 #include "TH2F.h"
27 #include "TH3F.h"
28 #include "TF1.h"
29 #include "TF2.h"
30 
31 #include <list>
32 #include <map>
33 
34 class TClonesArray;
35 class PndGemDigiPar;
36 
37 class PndGemMagneticFieldVsTrackParameters : public FairTask {
38 
39  public:
42 
45 
47  PndGemMagneticFieldVsTrackParameters(const char *name, Int_t iVerbose);
48 
51 
53  virtual void Exec(Option_t *opt);
54 
55  private:
56  // FairGeoStsPar* fGeoPar; /** Geometry parameter container **/
57  // PndGemDigiPar* fDigiPar; /** Digitisation parameter container **/
58  // PndGemDigiScheme* fDigiScheme; /** Digitisation scheme **/
59  PndGemDigiPar *fDigiPar;
60 
61  Double_t fTrackFinderOnHits_ParThetaA;
62  Double_t fTrackFinderOnHits_ParThetaB;
63 
64  Double_t fTrackFinderOnHits_ParTheta0;
65  Double_t fTrackFinderOnHits_ParTheta1;
66  Double_t fTrackFinderOnHits_ParTheta2;
67  Double_t fTrackFinderOnHits_ParTheta3;
68 
69  Double_t fTrackFinderOnHits_ParRadPhi0;
70  Double_t fTrackFinderOnHits_ParRadPhi2;
71 
72  Double_t fTrackFinderOnHits_ParMat0[3];
73  Double_t fTrackFinderOnHits_ParMat1[3];
74 
75  TClonesArray *fMCTrackArray;
76  TClonesArray *fMCPointArray;
77 
78  TStopwatch fTimer;
79 
81  Int_t fNofEvents; // event counter
82 
83  TList *fHistoList;
84  // theta angle vs radius vs momentum
85  TH3F *fhThetaVsRadiusVsMomentumAll;
86  TH3F *fhThetaVsRadiusVsMomentum[10];
87  TF2 *ffThetaVsRadiusVsMomentum[10];
88  // radius vs angle
89  TH2F *fhRadiusVsAngle;
90  TH2F *fhRadiusVsAnglePair[20];
91  TF1 *ffRadiusVsAngle[3];
92  // momentum vs phi angle difference
93  TH3F *fhMomentumVsPhiDiffVsRadius[10];
94  TH2F *fhMomentumVsPhiDiffAll[10];
95  TH2F *fhMomentumVsPhiDiff[10][20];
96  TF2 *ffMomentumVsPhiDiffVsRadius[10];
97  TF1 *ffMomentumVsPhiDiffAll[10];
98  TF1 *ffMomentumVsPhiDiff[10][20];
99  // transverse momentum vs trajectory helix radius
100  TH2F *fhMomTransVsHRadius[10];
101  // track phi versus hits phis
102  TH3F *fhTrackPhiVsHitPhis[10];
103  TH2F *fhTrackPhiVsCalcPhi[10];
104 
105  Int_t Fill1StationHistograms();
106  Int_t Fill2StationsHistograms();
107 
108  void CreateHistos();
109 
111  virtual void SetParContainers();
112 
114  virtual void Finish();
115 
117  virtual InitStatus Init();
118 
120  virtual InitStatus ReInit();
121 
123  void Reset();
124 
126 };
127 
128 #endif
virtual void Exec(Option_t *opt)
Digitization Parameter Class for GEM part.
Definition: PndGemDigiPar.h:30