CbmRoot
CbmTofTests.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------
2 // ----- CbmTofTests -----
3 // ----- Created 29/08/2013 by P.-A. Loizeau -----
4 // ------------------------------------------------------------------
5 #ifndef _CBMTOFTESTS_H_
6 #define _CBMTOFTESTS_H_
7 
8 #include "FairTask.h"
9 
10 class FairMCEventHeader;
11 class CbmTofGeoHandler;
12 class CbmTofCell;
13 // Geometry
14 class CbmTofGeoHandler;
15 class CbmTofDetectorId;
16 class CbmTofCell;
17 
18 class CbmTofDigiPar;
19 class CbmTofDigiBdfPar;
20 
21 class TClonesArray;
22 class TH1;
23 class TH2;
24 class TString;
25 #include "TTimeStamp.h"
26 
27 class CbmTofTests : public FairTask {
28 
29 public:
30  CbmTofTests();
31  CbmTofTests(const char* name, Int_t verbose = 1);
32  virtual ~CbmTofTests();
33 
34  virtual InitStatus Init();
35  virtual void Exec(Option_t* option);
36  virtual void Finish();
37 
41  virtual void SetParContainers();
42 
43  Bool_t RegisterInputs();
44  Bool_t InitParameters();
45 
46 private:
47  Bool_t CreateHistos();
48  Bool_t FillHistos();
49  Bool_t WriteHistos();
50  Bool_t DeleteHistos();
51 
55  Bool_t LoadGeometry();
56 
59 
60  Int_t fEvents; // Number of processed events
61 
62  // Geometry infos
63  FairMCEventHeader* fMCEventHeader;
67  Int_t iNbSmTot;
68  std::vector<Int_t>
69  fvTypeSmOffs; // Offset in SM index for first SM of each SM type
70  Int_t iNbRpcTot;
71  std::vector<std::vector<Int_t>>
72  fvSmRpcOffs; // Offset in RPC index for first RPC of each SM
73  Int_t iNbChTot;
74  std::vector<std::vector<std::vector<Int_t>>>
75  fvRpcChOffs; // Offset in channel index for first channel of each RPC
76 
77  // Parameters
80 
81  TClonesArray* fTofPointsColl; // TOF MC points
82  TClonesArray* fMcTracksColl; // MC tracks
83  TClonesArray* fTofDigisColl; // TOF Digis
84  TClonesArray* fTofHitsColl; // TOF hits
85  TClonesArray*
86  fTofHitMatchColl; // // Indices of MC original points for each hit with TOT weight (CbmMatch)
87  // TClonesArray *fStsPoints; // STS points
88  // TClonesArray *fStsHits; // STS hits
89  // TClonesArray *fStsTracks; // STS tracks
90  // TClonesArray *fGlobalTracks; // Global tracks
91  // TClonesArray *fHadrons; // Hadrons
92  // TClonesArray *fRichHits; // RICH hits
93  // Bool_t fbRichThere; // RICH flag
94  // TClonesArray *fTrdHits; // TRD hits
95  // Bool_t fbTrdThere; // TRD flag
96 
97  // Histograms
98  // Test class performance
100  // Mapping
116 
117  // Rates and data rates
118  TH2* fhFluxMap;
128  // TH1 * fhHitRateCh;
132 
133  // Performances check
134  TH1* fhTofRes;
148  TH1* fhTofEff;
150 
151  // Control
152  TTimeStamp fStart;
153  TTimeStamp fStop;
154 
156 };
157 
158 #endif
CbmTofTests::fhTestingTime
TH1 * fhTestingTime
Definition: CbmTofTests.h:99
CbmTofTests::fhTofPosDifSingXY
TH2 * fhTofPosDifSingXY
Definition: CbmTofTests.h:140
CbmTofTests::fhTofPosDifSingXX
TH2 * fhTofPosDifSingXX
Definition: CbmTofTests.h:139
CbmTofTests::CbmTofTests
CbmTofTests()
Definition: CbmTofTests.cxx:59
CbmTofTests::Exec
virtual void Exec(Option_t *option)
Definition: CbmTofTests.cxx:254
CbmTofTests::fhDataRateSm
TH1 * fhDataRateSm
Definition: CbmTofTests.h:124
CbmTofTests::fhPointMapXZ
TH2 * fhPointMapXZ
Definition: CbmTofTests.h:102
CbmTofTests::fDigiBdfPar
CbmTofDigiBdfPar * fDigiBdfPar
Definition: CbmTofTests.h:79
CbmTofTests::fhDataRateType
TH1 * fhDataRateType
Definition: CbmTofTests.h:125
CbmTofTests::fhTofPosDifSingXZ
TH2 * fhTofPosDifSingXZ
Definition: CbmTofTests.h:141
CbmTofTests::Init
virtual InitStatus Init()
Definition: CbmTofTests.cxx:208
CbmTofTests::fhDigiMapXZ
TH2 * fhDigiMapXZ
Definition: CbmTofTests.h:107
CbmTofTests::fhOptLnkType
TH1 * fhOptLnkType
Definition: CbmTofTests.h:131
CbmTofTests::fhTofPosDifX
TH2 * fhTofPosDifX
Definition: CbmTofTests.h:136
CbmTofTests::fStop
TTimeStamp fStop
Definition: CbmTofTests.h:153
CbmTofTests::ClassDef
ClassDef(CbmTofTests, 1)
CbmTofTests::operator=
CbmTofTests operator=(const CbmTofTests &)
CbmTofTests::fhDigiMapXY
TH2 * fhDigiMapXY
Definition: CbmTofTests.h:106
CbmTofTests::fTofHitMatchColl
TClonesArray * fTofHitMatchColl
Definition: CbmTofTests.h:86
CbmTofTests::fvSmRpcOffs
std::vector< std::vector< Int_t > > fvSmRpcOffs
Definition: CbmTofTests.h:72
CbmTofTests::fhDigiFluxMap
TH2 * fhDigiFluxMap
Definition: CbmTofTests.h:119
CbmTofTests::fhHitMapXY
TH2 * fhHitMapXY
Definition: CbmTofTests.h:111
CbmTofTests::fMCEventHeader
FairMCEventHeader * fMCEventHeader
Definition: CbmTofTests.h:63
CbmTofTests::~CbmTofTests
virtual ~CbmTofTests()
Definition: CbmTofTests.cxx:201
CbmTofTests::fhFluxMap
TH2 * fhFluxMap
Definition: CbmTofTests.h:118
CbmTofTests::fTofHitsColl
TClonesArray * fTofHitsColl
Definition: CbmTofTests.h:84
CbmTofTests::fhTofPosDifXZSing
TH2 * fhTofPosDifXZSing
Definition: CbmTofTests.h:144
CbmTofTests::FillHistos
Bool_t FillHistos()
Definition: CbmTofTests.cxx:888
CbmTofTests::fhDigiRateCh
TH1 * fhDigiRateCh
Definition: CbmTofTests.h:121
CbmTofTests::fhTofResSing
TH1 * fhTofResSing
Definition: CbmTofTests.h:135
CbmTofTests::fStart
TTimeStamp fStart
Definition: CbmTofTests.h:152
CbmTofTests::fhHitMapXZ
TH2 * fhHitMapXZ
Definition: CbmTofTests.h:112
CbmTofTests::fhPointMapSph
TH2 * fhPointMapSph
Definition: CbmTofTests.h:105
CbmTofTests::iNbRpcTot
Int_t iNbRpcTot
Definition: CbmTofTests.h:70
CbmTofTests::fTofId
CbmTofDetectorId * fTofId
Definition: CbmTofTests.h:65
CbmTofTests::SetParContainers
virtual void SetParContainers()
Inherited from FairTask.
Definition: CbmTofTests.cxx:242
CbmTofTests::fhPointMapAng
TH2 * fhPointMapAng
Definition: CbmTofTests.h:104
CbmTofTests::fTofDigisColl
TClonesArray * fTofDigisColl
Definition: CbmTofTests.h:83
CbmTofTests::fhTofEff
TH1 * fhTofEff
Definition: CbmTofTests.h:148
CbmTofTests::Finish
virtual void Finish()
Definition: CbmTofTests.cxx:272
CbmTofTests::fhTofPosDifZ
TH2 * fhTofPosDifZ
Definition: CbmTofTests.h:138
CbmTofGeoHandler
Definition: CbmTofGeoHandler.h:30
CbmTofTests::CreateHistos
Bool_t CreateHistos()
Definition: CbmTofTests.cxx:459
CbmTofTests::iNbSmTot
Int_t iNbSmTot
Definition: CbmTofTests.h:67
CbmTofTests::fhPointMapXY
TH2 * fhPointMapXY
Definition: CbmTofTests.h:101
CbmTofTests::RegisterInputs
Bool_t RegisterInputs()
Definition: CbmTofTests.cxx:314
CbmTofCell
Definition: CbmTofCell.h:8
CbmTofTests::fhDataRateRpc
TH1 * fhDataRateRpc
Definition: CbmTofTests.h:123
CbmTofTests::fvTypeSmOffs
std::vector< Int_t > fvTypeSmOffs
Definition: CbmTofTests.h:69
CbmTofTests::fhDigiMapAng
TH2 * fhDigiMapAng
Definition: CbmTofTests.h:109
CbmTofTests::fhTofBadZPosSing
TH2 * fhTofBadZPosSing
Definition: CbmTofTests.h:147
CbmTofTests::fhDigiMapSph
TH2 * fhDigiMapSph
Definition: CbmTofTests.h:110
CbmTofTests
Definition: CbmTofTests.h:27
CbmTofTests::fhHitMapSph
TH2 * fhHitMapSph
Definition: CbmTofTests.h:115
CbmTofDigiBdfPar
Parameters class for the CBM ToF digitizer using beam data distributions.
Definition: CbmTofDigiBdfPar.h:30
CbmTofTests::fhHitMapAng
TH2 * fhHitMapAng
Definition: CbmTofTests.h:114
CbmTofTests::fhTofBadXPosSing
TH2 * fhTofBadXPosSing
Definition: CbmTofTests.h:145
CbmTofTests::fhTofBadYPosSing
TH2 * fhTofBadYPosSing
Definition: CbmTofTests.h:146
CbmTofTests::fhOptLnkRpc
TH1 * fhOptLnkRpc
Definition: CbmTofTests.h:129
CbmTofTests::fhDigiMapYZ
TH2 * fhDigiMapYZ
Definition: CbmTofTests.h:108
CbmTofTests::fChannelInfo
CbmTofCell * fChannelInfo
Definition: CbmTofTests.h:66
CbmTofTests::fhTofDataRedEvt
TH1 * fhTofDataRedEvt
Definition: CbmTofTests.h:127
CbmTofTests::DeleteHistos
Bool_t DeleteHistos()
Definition: CbmTofTests.cxx:1145
CbmTofTests::CbmTofTests
CbmTofTests(const CbmTofTests &)
CbmTofTests::fhHitFluxMap
TH2 * fhHitFluxMap
Definition: CbmTofTests.h:120
CbmTofTests::InitParameters
Bool_t InitParameters()
Definition: CbmTofTests.cxx:220
CbmTofTests::LoadGeometry
Bool_t LoadGeometry()
Load the geometry: for now just resizing the Digis temporary vectors.
Definition: CbmTofTests.cxx:414
CbmTofTests::fhOptLnkSm
TH1 * fhOptLnkSm
Definition: CbmTofTests.h:130
CbmTofTests::fvRpcChOffs
std::vector< std::vector< std::vector< Int_t > > > fvRpcChOffs
Definition: CbmTofTests.h:75
CbmTofDigiPar
Definition: CbmTofDigiPar.h:18
CbmTofTests::fhTofPosDifSingZ
TH2 * fhTofPosDifSingZ
Definition: CbmTofTests.h:143
CbmTofTests::fhTofPosDifSingY
TH2 * fhTofPosDifSingY
Definition: CbmTofTests.h:142
CbmTofTests::iNbChTot
Int_t iNbChTot
Definition: CbmTofTests.h:73
CbmTofTests::fhTofDataPerEvt
TH1 * fhTofDataPerEvt
Definition: CbmTofTests.h:126
CbmTofTests::fhHitMapYZ
TH2 * fhHitMapYZ
Definition: CbmTofTests.h:113
CbmTofTests::fhTofPosDifY
TH2 * fhTofPosDifY
Definition: CbmTofTests.h:137
CbmTofTests::fhDataRateCh
TH1 * fhDataRateCh
Definition: CbmTofTests.h:122
CbmTofTests::fhTofMixing
TH1 * fhTofMixing
Definition: CbmTofTests.h:149
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofTests::fGeoHandler
CbmTofGeoHandler * fGeoHandler
Definition: CbmTofTests.h:64
CbmTofTests::fDigiPar
CbmTofDigiPar * fDigiPar
Definition: CbmTofTests.h:78
CbmTofTests::fTofPointsColl
TClonesArray * fTofPointsColl
Definition: CbmTofTests.h:81
CbmTofTests::fEvents
Int_t fEvents
Definition: CbmTofTests.h:60
CbmTofTests::fMcTracksColl
TClonesArray * fMcTracksColl
Definition: CbmTofTests.h:82
CbmTofTests::fhTofRes
TH1 * fhTofRes
Definition: CbmTofTests.h:134
CbmTofTests::fhPointMapYZ
TH2 * fhPointMapYZ
Definition: CbmTofTests.h:103
CbmTofTests::WriteHistos
Bool_t WriteHistos()
Definition: CbmTofTests.cxx:1074