CbmRoot
CbmTrdRecoQa.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------
2 // ----- CbmTrdRecoQa -----
3 // ----- Created 24.02.07 F. Uhlig -----
4 // -----------------------------------------------------------------------
5 
6 
20 #ifndef CBMTRDRECOQA_H
21 #define CBMTRDRECOQA_H 1
22 
23 #include "FairTask.h"
24 
25 #include <map>
26 
27 #include <vector>
28 
29 class CbmTrdParSetDigi;
30 class CbmTrdParModDigi;
31 class CbmTrdGeoHandler;
32 class TClonesArray;
33 class TH1D;
34 class TH2D;
35 class TH2I;
36 class TGraph;
37 class TGraphErrors;
38 class TCanvas;
39 class TLine;
40 class TPolyLine;
41 
42 class CbmTrdRecoQa : public FairTask {
43 public:
44  /* Defaul constructor */
45  CbmTrdRecoQa();
46 
47  /* Standard constructor */
48  CbmTrdRecoQa(const char* name, const char* title = "FairTask");
49 
50  /* Destructor */
51  virtual ~CbmTrdRecoQa();
52 
53  /* Initialisation */
54  InitStatus Init();
55  InitStatus ReInit();
56  void SetParContainers();
57  /* Execution */
58  virtual void Exec(Option_t* option);
59 
60  /* Finish at the end of each event */
61  virtual void Finish();
62 
63  void SetTriangularPads(Bool_t triangles);
64  void SetTriggerThreshold(Double_t triggerthreshold);
65 
66 private:
67  //TPolyLine *CreateTriangularPad(Int_t column, Int_t row, Double_t content);
68  Bool_t fTrianglePads;
69  Double_t fTriggerTH;
70  /* Data branches*/
71  TClonesArray* fClusters;
72  TClonesArray* fHits;
73  TClonesArray* fMCPoints;
74 
78 
79  //Int_t SecRowToGlobalRow(Int_t secRow);
80 
81 
82  /* Write the QA histograms to file*/
83  void WriteHistograms();
84 
87 
88  std::map<Int_t, TCanvas*> fModuleMap;
89  std::map<Int_t, TGraphErrors*> fModuleMapPoint;
90  std::map<Int_t, TH2D*> fModuleMapDigi;
91  std::map<Int_t, TH2I*> fModuleMapCluster;
92  std::map<Int_t, TGraphErrors*> fModuleMapHit;
93  std::map<Int_t, std::vector<TLine*>*> fModuleMapTrack;
94  // map<moduleAdress, <v[0]=Mc; v[1]=digi; v[3]=cluster; v[4]=hit> >
95  ClassDef(CbmTrdRecoQa, 1)
96 };
97 
98 #endif
CbmTrdRecoQa::Init
InitStatus Init()
Definition: CbmTrdRecoQa.cxx:83
CbmTrdRecoQa
Definition: CbmTrdRecoQa.h:42
CbmTrdRecoQa::operator=
CbmTrdRecoQa & operator=(const CbmTrdRecoQa &)
CbmTrdRecoQa::WriteHistograms
void WriteHistograms()
Definition: CbmTrdRecoQa.cxx:611
CbmTrdRecoQa::CbmTrdRecoQa
CbmTrdRecoQa()
Definition: CbmTrdRecoQa.cxx:53
CbmTrdRecoQa::SetParContainers
void SetParContainers()
Definition: CbmTrdRecoQa.cxx:129
CbmTrdRecoQa::fModuleMapPoint
std::map< Int_t, TGraphErrors * > fModuleMapPoint
Definition: CbmTrdRecoQa.h:89
CbmTrdRecoQa::fModuleMapDigi
std::map< Int_t, TH2D * > fModuleMapDigi
Definition: CbmTrdRecoQa.h:90
CbmTrdRecoQa::ReInit
InitStatus ReInit()
Definition: CbmTrdRecoQa.cxx:142
CbmTrdGeoHandler
Definition: CbmTrdGeoHandler.h:29
CbmTrdRecoQa::fModuleMap
std::map< Int_t, TCanvas * > fModuleMap
Definition: CbmTrdRecoQa.h:88
CbmTrdRecoQa::fDigiPar
CbmTrdParSetDigi * fDigiPar
Definition: CbmTrdRecoQa.h:75
CbmTrdRecoQa::SetTriggerThreshold
void SetTriggerThreshold(Double_t triggerthreshold)
Definition: CbmTrdRecoQa.cxx:78
CbmTrdRecoQa::fMCPoints
TClonesArray * fMCPoints
Definition: CbmTrdRecoQa.h:73
CbmTrdRecoQa::fClusters
TClonesArray * fClusters
Definition: CbmTrdRecoQa.h:71
CbmTrdParModDigi
Definition of chamber gain conversion for one TRD module.
Definition: CbmTrdParModDigi.h:14
CbmTrdRecoQa::fHits
TClonesArray * fHits
Definition: CbmTrdRecoQa.h:72
CbmTrdRecoQa::~CbmTrdRecoQa
virtual ~CbmTrdRecoQa()
Definition: CbmTrdRecoQa.cxx:76
CbmTrdRecoQa::fTriggerTH
Double_t fTriggerTH
Definition: CbmTrdRecoQa.h:69
CbmTrdRecoQa::fGeoHandler
CbmTrdGeoHandler * fGeoHandler
Definition: CbmTrdRecoQa.h:77
CbmTrdRecoQa::fTrianglePads
Bool_t fTrianglePads
Definition: CbmTrdRecoQa.h:68
CbmTrdRecoQa::SetTriangularPads
void SetTriangularPads(Bool_t triangles)
Definition: CbmTrdRecoQa.cxx:154
CbmTrdRecoQa::fModuleMapHit
std::map< Int_t, TGraphErrors * > fModuleMapHit
Definition: CbmTrdRecoQa.h:92
CbmTrdRecoQa::Finish
virtual void Finish()
Definition: CbmTrdRecoQa.cxx:606
CbmTrdParSetDigi
Definition: CbmTrdParSetDigi.h:15
CbmTrdRecoQa::fModuleMapCluster
std::map< Int_t, TH2I * > fModuleMapCluster
Definition: CbmTrdRecoQa.h:91
CbmTrdRecoQa::Exec
virtual void Exec(Option_t *option)
Definition: CbmTrdRecoQa.cxx:172
CbmTrdRecoQa::CbmTrdRecoQa
CbmTrdRecoQa(const CbmTrdRecoQa &)
CbmTrdRecoQa::fModuleMapTrack
std::map< Int_t, std::vector< TLine * > * > fModuleMapTrack
Definition: CbmTrdRecoQa.h:93
CbmTrdRecoQa::fModuleInfo
CbmTrdParModDigi * fModuleInfo
Definition: CbmTrdRecoQa.h:76