CbmRoot
CbmTrdHitDensityQa.h
Go to the documentation of this file.
1 #ifndef CBMTRDHITDENSITYQA_H_
2 #define CBMTRDHITDENSITYQA_H_
3 
4 #include "FairTask.h"
5 
6 // #include "CbmTrdDigitizerMathieson.h"
7 // #include "CbmTrdHitProducerCluster.h"
8 // #include "TLegend.h"
9 // #include "TClonesArray.h"
10 // #include "TSystem.h"
11 // #include "TVector3.h"
12 // #include <vector>
13 #include <list>
14 // #include <map>
15 #include <fstream>
16 
17 class CbmTrdParSetAsic;
18 class CbmTrdParSetDigi;
19 class CbmTrdParSetGeo;
20 class CbmTrdGeoHandler;
21 class TH2I;
22 class TH1I;
23 class TH1D;
24 class TH1F;
25 class TClonesArray;
26 
27 // typedef std::list<MyPoint*> MyPointList;
28 // typedef std::map<Int_t, MyPointList*> MyPointListMap;
29 
30 class CbmTrdHitDensityQa : public FairTask {
31 public:
32  // ---- Default constructor -------------------------------------------
34  CbmTrdHitDensityQa(Double_t TriggerThreshold,
35  Double_t EventRate,
36  Double_t ScaleCentral2mBias);
37  // ---- Destructor ----------------------------------------------------
38  virtual ~CbmTrdHitDensityQa();
40  virtual InitStatus ReInit();
41  virtual InitStatus Init();
42  virtual void SetParContainers();
43 
45  virtual void Exec(Option_t* option);
46 
52  virtual void FinishEvent();
53 
55  virtual void Finish();
56  void Register();
57  void SetTriggerThreshold(Double_t triggerthreshold);
58  void SetNeighbourTrigger(Bool_t trigger);
59  void SetPlotResults(Bool_t plotResults);
60  void SetScaleCentral2mBias(Double_t scaling);
61  void SetTriggerMaxScale(Double_t max);
62  void SetTriggerMinScale(Double_t min);
63  void SetLogScale(Bool_t logScale);
64  void SetRatioTwoFiles(Bool_t ratioPlot);
65 
66 private:
67  Double_t TriggerRate2DataRate(Double_t triggerrate);
68  Double_t DataRate2TriggerRate(Double_t datarate);
69  Double_t TriggerCount2TriggerRate(Double_t count);
70  Double_t TriggerRate2TriggerCount(Double_t rate);
71 
72  std::ofstream myfile;
73 
74  Double_t fmin, fmax;
75  Bool_t flogScale;
76  Double_t fBitPerHit;
77  TH1F* h1DataModule;
79 
81  Bool_t fPlotResults;
83 
84  TClonesArray* fClusters;
85 
90 
91  Int_t fStation;
92  Int_t fLayer;
93  Int_t fModuleID;
94 
96 
97  Double_t fTriggerThreshold; // SIS300:1E-6
98  Double_t fEventRate; //SIS300:1E7
99  Double_t fScaleCentral2mBias; //SIS300:1/4
100 
101  std::map<Int_t, Int_t> fUsedDigiMap;
102  std::map<Int_t, TH2I*> fModuleHitMap;
103  std::map<Int_t, TH2I*>::iterator fModuleHitMapIt;
104  std::map<Int_t, TH1D*> fModuleHitASICMap;
105  std::map<Int_t, TH1D*>::iterator fModuleHitASICMapIt;
108 
110 };
111 #endif
CbmTrdHitDensityQa::fBitPerHit
Double_t fBitPerHit
Definition: CbmTrdHitDensityQa.h:76
CbmTrdHitDensityQa::h1OptLinksModule
TH1F * h1OptLinksModule
Definition: CbmTrdHitDensityQa.h:78
CbmTrdHitDensityQa::flogScale
Bool_t flogScale
Definition: CbmTrdHitDensityQa.h:75
CbmTrdHitDensityQa::~CbmTrdHitDensityQa
virtual ~CbmTrdHitDensityQa()
Definition: CbmTrdHitDensityQa.cxx:96
CbmTrdHitDensityQa::SetTriggerMinScale
void SetTriggerMinScale(Double_t min)
Definition: CbmTrdHitDensityQa.cxx:187
CbmTrdHitDensityQa::Finish
virtual void Finish()
Definition: CbmTrdHitDensityQa.cxx:367
CbmTrdHitDensityQa::SetTriggerMaxScale
void SetTriggerMaxScale(Double_t max)
Definition: CbmTrdHitDensityQa.cxx:186
CbmTrdHitDensityQa::SetPlotResults
void SetPlotResults(Bool_t plotResults)
Definition: CbmTrdHitDensityQa.cxx:180
CbmTrdHitDensityQa::DataRate2TriggerRate
Double_t DataRate2TriggerRate(Double_t datarate)
Definition: CbmTrdHitDensityQa.cxx:786
CbmTrdHitDensityQa::TriggerRate2DataRate
Double_t TriggerRate2DataRate(Double_t triggerrate)
Definition: CbmTrdHitDensityQa.cxx:783
CbmTrdHitDensityQa::fmax
Double_t fmax
Definition: CbmTrdHitDensityQa.h:74
CbmTrdHitDensityQa::TriggerCount2TriggerRate
Double_t TriggerCount2TriggerRate(Double_t count)
Definition: CbmTrdHitDensityQa.cxx:789
CbmTrdHitDensityQa::CbmTrdHitDensityQa
CbmTrdHitDensityQa()
Definition: CbmTrdHitDensityQa.cxx:59
CbmTrdHitDensityQa::h1DataModule
TH1F * h1DataModule
Definition: CbmTrdHitDensityQa.h:77
CbmTrdHitDensityQa::TriggerRate2TriggerCount
Double_t TriggerRate2TriggerCount(Double_t rate)
Definition: CbmTrdHitDensityQa.cxx:794
CbmTrdParSetAsic
Describe TRD module ASIC settings (electronic gain, delays, etc)
Definition: CbmTrdParSetAsic.h:18
CbmTrdHitDensityQa::SetScaleCentral2mBias
void SetScaleCentral2mBias(Double_t scaling)
Definition: CbmTrdHitDensityQa.cxx:177
CbmTrdHitDensityQa::FinishEvent
virtual void FinishEvent()
Definition: CbmTrdHitDensityQa.cxx:770
CbmTrdHitDensityQa::SetRatioTwoFiles
void SetRatioTwoFiles(Bool_t ratioPlot)
Definition: CbmTrdHitDensityQa.cxx:190
CbmTrdHitDensityQa::fLayer
Int_t fLayer
Definition: CbmTrdHitDensityQa.h:92
CbmTrdHitDensityQa::ClassDef
ClassDef(CbmTrdHitDensityQa, 3)
CbmTrdHitDensityQa::fGeoHandler
CbmTrdGeoHandler * fGeoHandler
Definition: CbmTrdHitDensityQa.h:89
CbmTrdHitDensityQa::fStation
Int_t fStation
Definition: CbmTrdHitDensityQa.h:91
CbmTrdHitDensityQa::SetLogScale
void SetLogScale(Bool_t logScale)
Definition: CbmTrdHitDensityQa.cxx:188
CbmTrdHitDensityQa::fScaleCentral2mBias
Double_t fScaleCentral2mBias
Definition: CbmTrdHitDensityQa.h:99
CbmTrdGeoHandler
Definition: CbmTrdGeoHandler.h:29
CbmTrdHitDensityQa::SetNeighbourTrigger
void SetNeighbourTrigger(Bool_t trigger)
Definition: CbmTrdHitDensityQa.cxx:183
min
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:33
CbmTrdHitDensityQa::fModuleHitASICMapIt
std::map< Int_t, TH1D * >::iterator fModuleHitASICMapIt
Definition: CbmTrdHitDensityQa.h:105
CbmTrdHitDensityQa::SetTriggerThreshold
void SetTriggerThreshold(Double_t triggerthreshold)
Definition: CbmTrdHitDensityQa.cxx:779
CbmTrdHitDensityQa::fModuleHitMapIt
std::map< Int_t, TH2I * >::iterator fModuleHitMapIt
Definition: CbmTrdHitDensityQa.h:103
CbmTrdHitDensityQa
Definition: CbmTrdHitDensityQa.h:30
CbmTrdHitDensityQa::fRatioTwoFiles
Bool_t fRatioTwoFiles
Definition: CbmTrdHitDensityQa.h:82
CbmTrdHitDensityQa::fEventCounter
TH1I * fEventCounter
Definition: CbmTrdHitDensityQa.h:95
CbmTrdHitDensityQa::fModuleHitMap
std::map< Int_t, TH2I * > fModuleHitMap
Definition: CbmTrdHitDensityQa.h:102
CbmTrdHitDensityQa::ReInit
virtual InitStatus ReInit()
Definition: CbmTrdHitDensityQa.cxx:117
CbmTrdHitDensityQa::operator=
CbmTrdHitDensityQa & operator=(const CbmTrdHitDensityQa &)
CbmTrdHitDensityQa::Register
void Register()
Definition: CbmTrdHitDensityQa.cxx:360
CbmTrdHitDensityQa::fTriggerThreshold
Double_t fTriggerThreshold
Definition: CbmTrdHitDensityQa.h:97
CbmTrdParSetGeo
Definition: CbmTrdParSetGeo.h:9
CbmTrdHitDensityQa::fAsicPar
CbmTrdParSetAsic * fAsicPar
Definition: CbmTrdHitDensityQa.h:86
CbmTrdHitDensityQa::fmin
Double_t fmin
Definition: CbmTrdHitDensityQa.h:74
CbmTrdHitDensityQa::fUsedDigiMap
std::map< Int_t, Int_t > fUsedDigiMap
Definition: CbmTrdHitDensityQa.h:101
CbmTrdHitDensityQa::fEventRate
Double_t fEventRate
Definition: CbmTrdHitDensityQa.h:98
CbmTrdHitDensityQa::fNeighbourTrigger
Bool_t fNeighbourTrigger
Definition: CbmTrdHitDensityQa.h:80
CbmTrdParSetDigi
Definition: CbmTrdParSetDigi.h:15
CbmTrdHitDensityQa::fGeoPar
CbmTrdParSetGeo * fGeoPar
Definition: CbmTrdHitDensityQa.h:88
CbmTrdHitDensityQa::fPlotResults
Bool_t fPlotResults
Definition: CbmTrdHitDensityQa.h:81
max
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: L1/vectors/P4_F32vec4.h:36
CbmTrdHitDensityQa::fModuleHitASICMap
std::map< Int_t, TH1D * > fModuleHitASICMap
Definition: CbmTrdHitDensityQa.h:104
CbmTrdHitDensityQa::fClusters
TClonesArray * fClusters
Definition: CbmTrdHitDensityQa.h:84
CbmTrdHitDensityQa::fDigiPar
CbmTrdParSetDigi * fDigiPar
Definition: CbmTrdHitDensityQa.h:87
CbmTrdHitDensityQa::Exec
virtual void Exec(Option_t *option)
Definition: CbmTrdHitDensityQa.cxx:195
CbmTrdHitDensityQa::myfile
std::ofstream myfile
Definition: CbmTrdHitDensityQa.h:72
CbmTrdHitDensityQa::fModuleID
Int_t fModuleID
Definition: CbmTrdHitDensityQa.h:93
CbmTrdHitDensityQa::Init
virtual InitStatus Init()
Definition: CbmTrdHitDensityQa.cxx:127
CbmTrdHitDensityQa::SetParContainers
virtual void SetParContainers()
Definition: CbmTrdHitDensityQa.cxx:107
CbmTrdHitDensityQa::CbmTrdHitDensityQa
CbmTrdHitDensityQa(const CbmTrdHitDensityQa &)