CbmRoot
CbmTofCalibrator.h
Go to the documentation of this file.
1 
6 #ifndef CBMTOFCALIBRATOR_H
7 #define CBMTOFCALIBRATOR_H 1
8 
9 // TOF Classes and includes
10 class CbmTofDigi;
11 class CbmTofHit;
12 class CbmMatch;
13 class CbmEvent;
14 class CbmVertex;
15 // Geometry
16 class CbmTofGeoHandler;
17 class CbmTofDetectorId;
18 class CbmTofDigiPar;
19 class CbmTofDigiBdfPar;
20 class CbmTofCell;
21 class CbmTofFindTracks;
22 class CbmDigiManager;
23 
24 #include "CbmDigiManager.h"
25 #include "CbmTofDigi.h"
26 #include "CbmTofEventClusterizer.h"
27 #include "CbmTofFindTracks.h"
28 #include "CbmTofHit.h"
29 #include "CbmTofTracklet.h"
30 #include "CbmTofTrackletParam.h"
31 #include "CbmTofTrackletTools.h"
32 #include "FairTrackParam.h"
33 #include "TH1.h"
34 #include "TH2.h"
35 #include "TMath.h"
36 #include <vector>
37 
38 class TClonesArray;
39 
44 class CbmTofCalibrator : public FairTask {
45 
46 public:
49 
51  virtual ~CbmTofCalibrator();
52 
53  InitStatus Init();
54  Bool_t InitParameters();
55  Bool_t CreateCalHist();
56  void FillCalHist(CbmTofTracklet* pTrk);
57  Bool_t UpdateCalHist(Int_t iOpt);
58  void ReadHist(TFile* fhFile);
59  void WriteHist(TFile* fhFile);
60 
61  inline void SetR0Lim(Double_t dVal) { fdR0Lim = dVal; }
62 
63 private:
68 
71  TClonesArray* fTofDigiMatchColl; // TOF Digi Links
72 
73  std::vector<TH2*> fhCalPos; // [nbDet]
74  std::vector<TH2*> fhCalTOff; // [nbDet]
75  std::vector<TH2*> fhCalTot; // [nbDet]
76  std::vector<std::vector<std::vector<TH2*>>>
77  fhCalWalk; // [nbDet][nbCh][nSide]
78 
79  std::vector<TH1*> fhCorPos; // [nbDet]
80  std::vector<TH1*> fhCorTOff; // [nbDet]
81  std::vector<TH1*> fhCorTot; // [nbDet]
82  std::vector<TH1*> fhCorTotOff; // [nbDet]
83  std::vector<TH1*> fhCorSvel; // [nbDet]
84  std::vector<std::vector<std::vector<TH1*>>>
85  fhCorWalk; // [nbDet][nbCh][nSide]
86 
87  std::map<UInt_t, UInt_t> fDetIdIndexMap;
88 
89  Double_t fdR0Lim = 0.;
90 
93 
95 };
96 
97 #endif /* CBMTOFCALIBRATOR_H */
CbmTofTrackletTools
contains fits and resolution functions
Definition: CbmTofTrackletTools.h:21
CbmMatch
Definition: CbmMatch.h:22
CbmTofEventClusterizer
Definition: CbmTofEventClusterizer.h:53
CbmTofCalibrator
contains filling and updating of calibration histos
Definition: CbmTofCalibrator.h:44
CbmTofCalibrator::SetR0Lim
void SetR0Lim(Double_t dVal)
Definition: CbmTofCalibrator.h:61
CbmTofCalibrator::InitParameters
Bool_t InitParameters()
Definition: CbmTofCalibrator.cxx:110
CbmTofCalibrator::fhCorTOff
std::vector< TH1 * > fhCorTOff
Definition: CbmTofCalibrator.h:80
CbmTofCalibrator::~CbmTofCalibrator
virtual ~CbmTofCalibrator()
Definition: CbmTofCalibrator.cxx:56
CbmTofCalibrator::ReadHist
void ReadHist(TFile *fhFile)
Definition: CbmTofCalibrator.cxx:474
CbmTofCalibrator::fhCalWalk
std::vector< std::vector< std::vector< TH2 * > > > fhCalWalk
Definition: CbmTofCalibrator.h:77
CbmTofCalibrator::Init
InitStatus Init()
Definition: CbmTofCalibrator.cxx:58
CbmTofTracklet
Provides information on attaching a TofHit to a TofTrack.
Definition: CbmTofTracklet.h:25
CbmTofDigi.h
CbmTofCalibrator::fTofDigiMatchColl
TClonesArray * fTofDigiMatchColl
Definition: CbmTofCalibrator.h:71
CbmTofTracklet.h
CbmTofCalibrator::CbmTofCalibrator
CbmTofCalibrator()
Definition: CbmTofCalibrator.cxx:36
CbmTofCalibrator::fTrackletTools
CbmTofTrackletTools * fTrackletTools
Definition: CbmTofCalibrator.h:67
CbmTofCalibrator::fTofFindTracks
CbmTofFindTracks * fTofFindTracks
Definition: CbmTofCalibrator.h:66
CbmTofCalibrator::fhCalPos
std::vector< TH2 * > fhCalPos
Definition: CbmTofCalibrator.h:73
CbmTofCalibrator::fDetIdIndexMap
std::map< UInt_t, UInt_t > fDetIdIndexMap
Definition: CbmTofCalibrator.h:87
CbmTofCalibrator::fhCorTotOff
std::vector< TH1 * > fhCorTotOff
Definition: CbmTofCalibrator.h:82
CbmTofCalibrator::fDigiMan
CbmDigiManager * fDigiMan
Definition: CbmTofCalibrator.h:64
CbmTofGeoHandler
Definition: CbmTofGeoHandler.h:30
CbmTofCalibrator::fhCorSvel
std::vector< TH1 * > fhCorSvel
Definition: CbmTofCalibrator.h:83
CbmTofCell
Definition: CbmTofCell.h:8
CbmTofCalibrator::fhCalTOff
std::vector< TH2 * > fhCalTOff
Definition: CbmTofCalibrator.h:74
CbmTofCalibrator::CreateCalHist
Bool_t CreateCalHist()
Definition: CbmTofCalibrator.cxx:125
CbmTofEventClusterizer.h
CbmTofFindTracks
Definition: CbmTofFindTracks.h:43
CbmVertex
Definition: CbmVertex.h:26
CbmTofFindTracks.h
CbmTofCalibrator::fDigiBdfPar
CbmTofDigiBdfPar * fDigiBdfPar
Definition: CbmTofCalibrator.h:70
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmTofDigiBdfPar
Parameters class for the CBM ToF digitizer using beam data distributions.
Definition: CbmTofDigiBdfPar.h:30
CbmTofCalibrator::fTofClusterizer
CbmTofEventClusterizer * fTofClusterizer
Definition: CbmTofCalibrator.h:65
CbmTofCalibrator::fdR0Lim
Double_t fdR0Lim
Definition: CbmTofCalibrator.h:89
CbmTofCalibrator::ClassDef
ClassDef(CbmTofCalibrator, 1)
CbmTofDigi
Data class for expanded digital TOF information.
Definition: CbmTofDigi.h:38
CbmTofCalibrator::fhCalTot
std::vector< TH2 * > fhCalTot
Definition: CbmTofCalibrator.h:75
CbmTofCalibrator::CbmTofCalibrator
CbmTofCalibrator(const CbmTofCalibrator &)=delete
CbmTofCalibrator::UpdateCalHist
Bool_t UpdateCalHist(Int_t iOpt)
Definition: CbmTofCalibrator.cxx:358
CbmDigiManager.h
CbmTofTrackletParam.h
CbmTofDigiPar
Definition: CbmTofDigiPar.h:18
CbmTofCalibrator::operator=
CbmTofCalibrator operator=(const CbmTofCalibrator &)=delete
CbmTofTrackletTools.h
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
CbmTofCalibrator::fhCorWalk
std::vector< std::vector< std::vector< TH1 * > > > fhCorWalk
Definition: CbmTofCalibrator.h:85
CbmTofHit
Definition: core/data/tof/CbmTofHit.h:26
CbmTofCalibrator::fDigiPar
CbmTofDigiPar * fDigiPar
Definition: CbmTofCalibrator.h:69
CbmTofCalibrator::FillCalHist
void FillCalHist(CbmTofTracklet *pTrk)
Definition: CbmTofCalibrator.cxx:228
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofCalibrator::fhCorPos
std::vector< TH1 * > fhCorPos
Definition: CbmTofCalibrator.h:79
CbmTofCalibrator::fhCorTot
std::vector< TH1 * > fhCorTot
Definition: CbmTofCalibrator.h:81
CbmTofCalibrator::WriteHist
void WriteHist(TFile *fhFile)
Definition: CbmTofCalibrator.cxx:526