FairRoot/PandaRoot
PndGemFindHitsQA.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndGemFindHitsQA header file -----
3 // ----- Created 02.06.2009 by R. Karabowicz -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef PNDGEMFINDHITSQA_H
16 #define PNDGEMFINDHITSQA_H
17 
18 #include "TH1F.h"
19 #include "TH2F.h"
20 #include "TH3F.h"
21 
22 #include "FairMCPoint.h"
23 #include "FairTask.h"
24 
25 #include "PndGemHit.h"
26 #include "PndGemDigiPar.h"
27 
28 #include <vector>
29 
30 class PndGemFindHitsQA : public FairTask
31 {
32 
33  public:
34 
37 
40 
42  virtual ~PndGemFindHitsQA();
43 
45  virtual void Exec(Option_t* opt);
46 
48  void SetVerbose(const Int_t& verbose) { fVerbose = verbose; };
49 
51 
52  private:
53 
55 
57  TClonesArray* fMCPointArray;
58 
60  TClonesArray* fGemHitArray;
61 
63  TClonesArray* fGemData[10];
64  Int_t fGemDataPointer[1000];
66 
68  Int_t fNofEvents;
69 
70  TList* fHistoList;
71 
74 
76 
77  // XY distance from point to hit
78  // vs station(up to 4),sensor(2 per station),position(divide into 4x4 regions)
79  TH2F* fhPointToHit[4][2][4][4];
80  // distance of point to the closest hit
81  // TH3F* fhPointClosest [4][2];
82  TH2F* fhPointNof [4][2];
83  TH2F* fhPointReco [4][2];
84  TH2F* fhPointRecoEff [4][2];
85  TH1F* fhPointRadNof [4][2];
86  TH1F* fhPointRadReco [4][2];
87  TH1F* fhPointRadRecoEff [4][2];
88 
89  TH2F* fhPointMatch [4][2];
90  TH2F* fhPointMatchEff [4][2];
91  TH1F* fhPointRadMatch [4][2];
92  TH1F* fhPointRadMatchEff [4][2];
93 
94  TH2F* fhHitNof [4][2];
95  TH2F* fhHitFake [4][2];
96  TH2F* fhHitFakeProb [4][2];
97  TH1F* fhHitRadNof [4][2];
98  TH1F* fhHitRadFake [4][2];
99  TH1F* fhHitRadFakeProb [4][2];
100 
101  TH2F* fhHitMultipleRate [4][2];
102 
103  TH1F* fhCloseHits [4][2];
104 
105  TH2F* fhTrueMatchDiXYPerSt[4][2];
106  TH1F* fhTrueMatchDistPerSt[4][2];
107 
112 
115 
116  void CreateHistos();
117  void DivideHistos(TH1* hist1, TH1* hist2, TH1* hist3);
118 
119  Int_t GetPointVector(Int_t arrayId, Int_t entryId, std::vector<Int_t>& pointVector, Bool_t printInfo = kFALSE);
120 
122  virtual void SetParContainers();
123 
125  virtual void Finish();
126 
128  virtual InitStatus Init();
129 
130 
132  virtual InitStatus ReInit();
133 
134 
136 
137 };
138 
139 #endif
TH2F * fhTrueMatchDiXYPerSt[4][2]
Int_t fGemDataPointer[1000]
virtual InitStatus Init()
int fVerbose
Definition: poormantracks.C:24
TH2F * fhHitMultipleRate[4][2]
TH2F * fhPointNof[4][2]
TClonesArray * fGemData[10]
Int_t GetPointVector(Int_t arrayId, Int_t entryId, std::vector< Int_t > &pointVector, Bool_t printInfo=kFALSE)
TClonesArray * fMCPointArray
TH1F * fhTrueMatchDistPerSt[4][2]
TH2F * fhPointToHit[4][2][4][4]
TH2F * fhHitNof[4][2]
TH2F * fhHitFake[4][2]
Int_t fNofEvents
event counter
virtual void Finish()
#define verbose
TClonesArray * fGemHitArray
virtual void SetParContainers()
Digitization Parameter Class for GEM part.
Definition: PndGemDigiPar.h:31
void SetVerbose(const Int_t &verbose)
TH2F * fhPointReco[4][2]
TH1D * hist3
Definition: hist-t7.C:84
TH1F * fhHitRadFake[4][2]
virtual void Exec(Option_t *opt)
TH2F * fhPointMatchEff[4][2]
TH1F * fhPointRadReco[4][2]
Double_t fHistWidth[4][2]
TH1F * fhHitRadNof[4][2]
TH2F * fhHitFakeProb[4][2]
Double_t
PndGemDigiPar * fDigiPar
TH1D * hist2
Definition: hist-t7.C:82
TH1F * fhPointRadNof[4][2]
TH1F * fhCloseHits[4][2]
virtual InitStatus ReInit()
TH2F * fhPointMatch[4][2]
TH1F * fhPointRadMatchEff[4][2]
TH1F * fhPointRadRecoEff[4][2]
void SetPointEffDist(Double_t dn)
track finding quality assesment task
TH2F * fhPointRecoEff[4][2]
void DivideHistos(TH1 *hist1, TH1 *hist2, TH1 *hist3)
Int_t iVerbose
TH1F * fhHitRadFakeProb[4][2]
TH1F * fhPointRadMatch[4][2]
ClassDef(PndGemFindHitsQA, 1)
TH1D * hist1
Definition: hist-t7.C:80