CbmRoot
CbmTofCreateDigiPar.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // ----- Header for the CbmTrdCreateDigiPar ------
3 // ----- Created 06.06.08 by F.Uhlig ------
4 // --------------------------------------------------------------------------
5 
6 
7 #ifndef CBMTOFCREATEDIGIPAR_H
8 #define CBMTOFCREATEDIGIPAR_H
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <RtypesCore.h> // for Int_t, Double_t, Option_t
12 #include <TString.h> // for TString
13 
14 #include <map> // for map, map<>::iterator
15 #include <vector> // for vector
16 
17 #include <FairTask.h> // for InitStatus, FairTask
18 
19 class CbmTofCell;
20 class CbmTofDigiPar;
21 class CbmTofGeoHandler;
22 
23 class CbmTofCreateDigiPar : public FairTask {
24 
25 public:
28 
30  CbmTofCreateDigiPar(const char* name, const char* title = "CBM Task");
31 
33  virtual ~CbmTofCreateDigiPar();
34 
36  virtual InitStatus ReInit();
37  virtual InitStatus Init();
38  virtual void SetParContainers();
39 
41  virtual void Exec(Option_t* option);
42 
44  virtual void FinishEvent() { ; }
45 
47  virtual void FinishTask();
48 
49 
50 private:
51  void FillCellInfoFromGeoHandler(TString FullPath);
52  void FillDigiPar();
53 
56 
57 
58  Int_t fSMType; //super module type (needed for root geometry)
59  Int_t fSModule; //super module NR
60  Int_t fCounter; //module/counter number
61  Int_t fGap; //gap number (probably not needed)
62  Int_t fCell; //cell number
63  Int_t fRegion; //region (needed for ascii geometry)
64 
65  Double_t fSizex;
66  Double_t fSizey;
67  Double_t fX;
68  Double_t fY;
69  Double_t fZ;
70 
71  Int_t fDetID; //Unique number for detector element (including gap)
72  Int_t
73  fCellID; //Unique number for a detector cell (8 gaps add up to one cell)
74 
76  std::map<Int_t, std::vector<CbmTofCell*>> fCellMap;
77  std::map<Int_t, std::vector<CbmTofCell*>>::iterator fCellMapIt;
78 
80 
82 
85 
86  ClassDef(CbmTofCreateDigiPar, 1)
87 };
88 #endif //CBMTOFCREATEDIGIPAR_H
CbmTofCreateDigiPar::fCounter
Int_t fCounter
Definition: CbmTofCreateDigiPar.h:60
CbmTofCreateDigiPar::~CbmTofCreateDigiPar
virtual ~CbmTofCreateDigiPar()
Definition: CbmTofCreateDigiPar.cxx:68
CbmTofCreateDigiPar::SetParContainers
virtual void SetParContainers()
Definition: CbmTofCreateDigiPar.cxx:72
CbmTofCreateDigiPar::FinishEvent
virtual void FinishEvent()
Definition: CbmTofCreateDigiPar.h:44
CbmTofCreateDigiPar::fSizey
Double_t fSizey
Definition: CbmTofCreateDigiPar.h:66
CbmTofCreateDigiPar::fGap
Int_t fGap
Definition: CbmTofCreateDigiPar.h:61
CbmTofCreateDigiPar::FillCellMapRootGeometry
void FillCellMapRootGeometry()
Definition: CbmTofCreateDigiPar.cxx:274
CbmTofCreateDigiPar::CbmTofCreateDigiPar
CbmTofCreateDigiPar(const CbmTofCreateDigiPar &)
CbmTofCreateDigiPar::fZ
Double_t fZ
Definition: CbmTofCreateDigiPar.h:69
CbmTofCreateDigiPar::fSizex
Double_t fSizex
Definition: CbmTofCreateDigiPar.h:65
CbmTofCreateDigiPar::fCell
Int_t fCell
Definition: CbmTofCreateDigiPar.h:62
CbmTofGeoHandler
Definition: CbmTofGeoHandler.h:30
CbmTofCreateDigiPar::fGeoHandler
CbmTofGeoHandler * fGeoHandler
pointer to digi parameters
Definition: CbmTofCreateDigiPar.h:81
CbmTofCell
Definition: CbmTofCell.h:8
CbmTofCreateDigiPar::fSMType
Int_t fSMType
Definition: CbmTofCreateDigiPar.h:58
CbmTofCreateDigiPar::fY
Double_t fY
Definition: CbmTofCreateDigiPar.h:68
CbmTofCreateDigiPar::fCellMap
std::map< Int_t, std::vector< CbmTofCell * > > fCellMap
Definition: CbmTofCreateDigiPar.h:76
CbmTofCreateDigiPar::fSModule
Int_t fSModule
Definition: CbmTofCreateDigiPar.h:59
CbmTofCreateDigiPar::fCellID
Int_t fCellID
Definition: CbmTofCreateDigiPar.h:73
CbmTofCreateDigiPar::Exec
virtual void Exec(Option_t *option)
Definition: CbmTofCreateDigiPar.cxx:157
CbmTofCreateDigiPar::Init
virtual InitStatus Init()
Definition: CbmTofCreateDigiPar.cxx:102
CbmTofCreateDigiPar::ReInit
virtual InitStatus ReInit()
Definition: CbmTofCreateDigiPar.cxx:87
CbmTofCreateDigiPar::FillDigiPar
void FillDigiPar()
Definition: CbmTofCreateDigiPar.cxx:471
CbmTofCreateDigiPar::fCellMapIt
std::map< Int_t, std::vector< CbmTofCell * > >::iterator fCellMapIt
Definition: CbmTofCreateDigiPar.h:77
CbmTofCreateDigiPar::FillCellMapAsciiGeometry
void FillCellMapAsciiGeometry()
Definition: CbmTofCreateDigiPar.cxx:160
CbmTofCreateDigiPar::operator=
CbmTofCreateDigiPar & operator=(const CbmTofCreateDigiPar &)
CbmTofCreateDigiPar::fRegion
Int_t fRegion
Definition: CbmTofCreateDigiPar.h:63
CbmTofCreateDigiPar::fDigiPar
CbmTofDigiPar * fDigiPar
Definition: CbmTofCreateDigiPar.h:79
CbmTofDigiPar
Definition: CbmTofDigiPar.h:18
CbmTofCreateDigiPar::CbmTofCreateDigiPar
CbmTofCreateDigiPar()
Definition: CbmTofCreateDigiPar.cxx:23
CbmTofCreateDigiPar::FinishTask
virtual void FinishTask()
Definition: CbmTofCreateDigiPar.cxx:144
CbmTofCreateDigiPar::fDetID
Int_t fDetID
Definition: CbmTofCreateDigiPar.h:71
CbmTofCreateDigiPar::fX
Double_t fX
Definition: CbmTofCreateDigiPar.h:67
CbmTofCreateDigiPar::FillCellInfoFromGeoHandler
void FillCellInfoFromGeoHandler(TString FullPath)
Definition: CbmTofCreateDigiPar.cxx:417
CbmTofCreateDigiPar
Definition: CbmTofCreateDigiPar.h:23