CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId_v12b.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_v12b header file -----
7// ----- Created 20/11/12 by F. Uhlig -----
8// -------------------------------------------------------------------------
9
10
20// 3 2 1 shift length
31#ifndef CBMTOFDETECTORID_V12B_H
32#define CBMTOFDETECTORID_V12B_H 1
33
34#include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
35
36#include <cstdint>
37
39
40public:
43
46
51 CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId);
52
54 int32_t GetSystemId(int32_t detectorId);
55
57 int32_t GetSMType(const int32_t detectorId);
58
60 int32_t GetSModule(const int32_t detectorId);
61
63 int32_t GetCounter(const int32_t detectorId);
64
66 int32_t GetGap(const int32_t detectorId);
67
69 int32_t GetCell(const int32_t detectorId);
70
72 int32_t GetRegion(const int32_t detectorId);
73
78 int32_t GetCellId(const int32_t detectorId);
79
84 int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
85
86private:
87 static const int32_t array_length = 6;
88 static const int32_t shiftarray[];
89 static const int32_t bitarray[];
92 int32_t modulemask;
93};
94
95#endif
static const int32_t shiftarray[]
int32_t GetCellId(const int32_t detectorId)
int32_t GetCounter(const int32_t detectorId)
int32_t GetSystemId(int32_t detectorId)
int32_t GetGap(const int32_t detectorId)
int32_t maskarray[array_length]
int32_t GetSModule(const int32_t detectorId)
int32_t GetSMType(const int32_t detectorId)
int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
static const int32_t bitarray[]
int32_t GetRegion(const int32_t detectorId)
int32_t result_array[array_length]
static const int32_t array_length
CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId)
int32_t GetCell(const int32_t detectorId)