CbmRoot
Loading...
Searching...
No Matches
CbmTofCreateDigiPar.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5// --------------------------------------------------------------------------
6// ----- Header for the CbmTrdCreateDigiPar ------
7// ----- Created 06.06.08 by F.Uhlig ------
8// --------------------------------------------------------------------------
9
10
11#ifndef CBMTOFCREATEDIGIPAR_H
12#define CBMTOFCREATEDIGIPAR_H
13
14#include <FairTask.h> // for InitStatus, FairTask
15
16#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
17#include <RtypesCore.h> // for Int_t, Double_t, Option_t
18#include <TString.h> // for TString
19
20#include <map> // for map, map<>::iterator
21#include <vector> // for vector
22
23class CbmTofCell;
24class CbmTofDigiPar;
26
27class CbmTofCreateDigiPar : public FairTask {
28
29 public:
32
34 CbmTofCreateDigiPar(const char* name, const char* title = "CBM Task");
35
37 virtual ~CbmTofCreateDigiPar();
38
40 virtual InitStatus ReInit();
41 virtual InitStatus Init();
42 virtual void SetParContainers();
43
45 virtual void Exec(Option_t* option);
46
48 virtual void FinishEvent() { ; }
49
51 virtual void FinishTask();
52
53
54 private:
55 void FillCellInfoFromGeoHandler(TString FullPath);
56 void FillDigiPar();
57
60
61
62 Int_t fSMType; //super module type (needed for root geometry)
63 Int_t fSModule; //super module NR
64 Int_t fCounter; //module/counter number
65 Int_t fGap; //gap number (probably not needed)
66 Int_t fCell; //cell number
67 Int_t fRegion; //region (needed for ascii geometry)
68
69 Double_t fSizex;
70 Double_t fSizey;
71 Double_t fX;
72 Double_t fY;
73 Double_t fZ;
74
75 Int_t fDetID; //Unique number for detector element (including gap)
76 Int_t fCellID; //Unique number for a detector cell (8 gaps add up to one cell)
77
79 std::map<Int_t, std::vector<CbmTofCell*>> fCellMap;
80 std::map<Int_t, std::vector<CbmTofCell*>>::iterator fCellMapIt;
81
83
85
88
89 ClassDef(CbmTofCreateDigiPar, 1)
90};
91#endif //CBMTOFCREATEDIGIPAR_H
std::map< Int_t, std::vector< CbmTofCell * > >::iterator fCellMapIt
virtual void SetParContainers()
CbmTofCreateDigiPar & operator=(const CbmTofCreateDigiPar &)
virtual void Exec(Option_t *option)
void FillCellInfoFromGeoHandler(TString FullPath)
CbmTofGeoHandler * fGeoHandler
pointer to digi parameters
CbmTofCreateDigiPar(const CbmTofCreateDigiPar &)
std::map< Int_t, std::vector< CbmTofCell * > > fCellMap
virtual InitStatus ReInit()
virtual InitStatus Init()