CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId.h
Go to the documentation of this file.
1/* Copyright (C) 2013-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmTofDetectorId header file -----
7// ----- Created 29/05/09 by F. Uhlig -----
8// -------------------------------------------------------------------------
9
10
17#ifndef CBMTOFDETECTORID_H
18#define CBMTOFDETECTORID_H 1
19
20#include "CbmDefs.h"
21
22#include <cstdint>
23
25
26public:
29 , fSMtype(0)
30 , fSModule(0)
31 , fCounter(0)
32 , fGap(0)
33 , fCell(0)
34 , fCounterType(0) {};
35
36 CbmTofDetectorInfo(int32_t detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap, int32_t cell)
37 : fDetectorSystem(detsystem)
38 , fSMtype(smtype)
39 , fSModule(smodule)
41 , fGap(gap)
42 , fCell(cell)
43 , fCounterType(0) {};
44
45 CbmTofDetectorInfo(ECbmModuleId detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap,
46 int32_t cell)
48 , fSMtype(smtype)
49 , fSModule(smodule)
51 , fGap(gap)
52 , fCell(cell)
53 , fCounterType(0) {};
54
55 CbmTofDetectorInfo(ECbmModuleId detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap,
56 int32_t cell, int32_t counterType)
58 , fSMtype(smtype)
59 , fSModule(smodule)
61 , fGap(gap)
62 , fCell(cell)
63 , fCounterType(counterType) {};
64
66 int32_t fSMtype;
67 int32_t fSModule;
68 int32_t fCounter;
69 int32_t fGap;
70 int32_t fCell;
71 int32_t fCounterType;
72};
73
74
76
77public:
80
81
83 virtual ~CbmTofDetectorId() { ; }
84
86 // int32_t GetSystemId(const int32_t detectorId);
87
92 virtual CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId) = 0;
93
95 virtual int32_t GetSystemId(int32_t detectorId) = 0;
96
98 virtual int32_t GetSMType(const int32_t detectorId) = 0;
99
101 virtual int32_t GetSModule(const int32_t detectorId) = 0;
102
104 virtual int32_t GetCounter(const int32_t detectorId) = 0;
105
107 virtual int32_t GetGap(const int32_t detectorId) = 0;
108
110 virtual int32_t GetCell(const int32_t detectorId) = 0;
111
113 virtual int32_t GetRegion(const int32_t detectorId) = 0;
114
116 virtual int32_t GetCellId(const int32_t detectorId) = 0;
117
122 virtual int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo) = 0;
123
124 // char* itoa(int value, char* result, int base);
125
126private:
127};
128
129#endif
XPU_D constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
Definition CbmDefs.h:29
ECbmModuleId
Definition CbmDefs.h:39
virtual int32_t GetCellId(const int32_t detectorId)=0
virtual int32_t GetSModule(const int32_t detectorId)=0
virtual int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)=0
virtual int32_t GetGap(const int32_t detectorId)=0
virtual int32_t GetCounter(const int32_t detectorId)=0
virtual int32_t GetSystemId(int32_t detectorId)=0
virtual int32_t GetCell(const int32_t detectorId)=0
virtual CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId)=0
virtual int32_t GetRegion(const int32_t detectorId)=0
virtual ~CbmTofDetectorId()
virtual int32_t GetSMType(const int32_t detectorId)=0
CbmTofDetectorInfo(ECbmModuleId detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap, int32_t cell, int32_t counterType)
CbmTofDetectorInfo(ECbmModuleId detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap, int32_t cell)
CbmTofDetectorInfo(int32_t detsystem, int32_t smtype, int32_t smodule, int32_t counter, int32_t gap, int32_t cell)