CbmRoot
Loading...
Searching...
No Matches
CbmTrdRecoQa.h
Go to the documentation of this file.
1/* Copyright (C) 2013-2018 Institut fuer Kernphysik, Westfaelische Wilhelms-Universitaet Muenster, Muenster
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig, Cyrano Bergmann [committer] */
4
5// -----------------------------------------------------------------------
6// ----- CbmTrdRecoQa -----
7// ----- Created 24.02.07 F. Uhlig -----
8// -----------------------------------------------------------------------
9
10
24#ifndef CBMTRDRECOQA_H
25#define CBMTRDRECOQA_H 1
26
27#include "FairTask.h"
28
29#include <map>
30#include <vector>
31
35class TClonesArray;
36class TH1D;
37class TH2D;
38class TH2I;
39class TGraph;
40class TGraphErrors;
41class TCanvas;
42class TLine;
43class TPolyLine;
44
45class CbmTrdRecoQa : public FairTask {
46 public:
47 /* Defaul constructor */
49
50 /* Standard constructor */
51 CbmTrdRecoQa(const char* name, const char* title = "FairTask");
52
53 /* Destructor */
54 virtual ~CbmTrdRecoQa();
55
56 /* Initialisation */
57 InitStatus Init();
58 InitStatus ReInit();
59 void SetParContainers();
60 /* Execution */
61 virtual void Exec(Option_t* option);
62
63 /* Finish at the end of each event */
64 virtual void Finish();
65
66 void SetTriangularPads(Bool_t triangles);
67 void SetTriggerThreshold(Double_t triggerthreshold);
68
69 private:
70 //TPolyLine *CreateTriangularPad(Int_t column, Int_t row, Double_t content);
72 Double_t fTriggerTH;
73 /* Data branches*/
74 TClonesArray* fClusters;
75 TClonesArray* fHits;
76 TClonesArray* fMCPoints;
77
81
82 //Int_t SecRowToGlobalRow(Int_t secRow);
83
84
85 /* Write the QA histograms to file*/
86 void WriteHistograms();
87
90
91 std::map<Int_t, TCanvas*> fModuleMap;
92 std::map<Int_t, TGraphErrors*> fModuleMapPoint;
93 std::map<Int_t, TH2D*> fModuleMapDigi;
94 std::map<Int_t, TH2I*> fModuleMapCluster;
95 std::map<Int_t, TGraphErrors*> fModuleMapHit;
96 std::map<Int_t, std::vector<TLine*>*> fModuleMapTrack;
97 // map<moduleAdress, <v[0]=Mc; v[1]=digi; v[3]=cluster; v[4]=hit> >
98 ClassDef(CbmTrdRecoQa, 1)
99};
100
101#endif
Definition of chamber gain conversion for one TRD module.
virtual ~CbmTrdRecoQa()
Bool_t fTrianglePads
std::map< Int_t, std::vector< TLine * > * > fModuleMapTrack
CbmTrdParModDigi * fModuleInfo
TClonesArray * fHits
std::map< Int_t, TGraphErrors * > fModuleMapHit
std::map< Int_t, TCanvas * > fModuleMap
TClonesArray * fMCPoints
void WriteHistograms()
void SetTriangularPads(Bool_t triangles)
void SetParContainers()
std::map< Int_t, TH2D * > fModuleMapDigi
virtual void Finish()
InitStatus ReInit()
std::map< Int_t, TH2I * > fModuleMapCluster
Double_t fTriggerTH
void SetTriggerThreshold(Double_t triggerthreshold)
CbmTrdRecoQa(const CbmTrdRecoQa &)
virtual void Exec(Option_t *option)
InitStatus Init()
CbmTrdGeoHandler * fGeoHandler
CbmTrdRecoQa & operator=(const CbmTrdRecoQa &)
TClonesArray * fClusters
CbmTrdParSetDigi * fDigiPar
std::map< Int_t, TGraphErrors * > fModuleMapPoint