CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId_v14a.h
Go to the documentation of this file.
1/* Copyright (C) 2014-2020 PI-UHd, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig, Norbert Herrmann [committer], Pierre-Alain Loizeau */
4
5// -------------------------------------------------------------------------
6// ----- CbmTofDetectorId_v12b header file -----
7// ----- Created 20/11/12 by F. Uhlig -----
8// -------------------------------------------------------------------------
9
10
23// 3 2 1 shift length
34#ifndef CBMTOFDETECTORID_V14A_H
35#define CBMTOFDETECTORID_V14A_H 1
36
37#include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
38
39#include <cstdint>
40
42
43public:
46
49
54 CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId);
55
57 int32_t GetSystemId(int32_t detectorId);
58
60 int32_t GetSMType(const int32_t detectorId);
61 int32_t GetModuleType(const int32_t detectorId);
62
64 int32_t GetSModule(const int32_t detectorId);
65 int32_t GetModuleId(const int32_t detectorId);
66
68 int32_t GetCounter(const int32_t detectorId);
69
71 int32_t GetGap(const int32_t detectorId);
72
74 int32_t GetSide(const int32_t detectorId);
75
77 int32_t GetCell(const int32_t detectorId);
79 int32_t GetStrip(const int32_t detectorId);
80
82 int32_t GetRegion(const int32_t detectorId);
83
88 int32_t GetCellId(const int32_t detectorId);
89
94 int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
95
96private:
97 static const int32_t array_length = 6;
98 static const int32_t shiftarray[];
99 static const int32_t bitarray[];
102 int32_t modulemask;
103};
104
105#endif
int32_t GetCell(const int32_t detectorId)
int32_t GetSModule(const int32_t detectorId)
int32_t GetRegion(const int32_t detectorId)
static const int32_t bitarray[]
int32_t result_array[array_length]
int32_t GetSMType(const int32_t detectorId)
int32_t maskarray[array_length]
CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId)
int32_t GetSide(const int32_t detectorId)
int32_t GetModuleType(const int32_t detectorId)
int32_t GetGap(const int32_t detectorId)
int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
static const int32_t shiftarray[]
int32_t GetCounter(const int32_t detectorId)
int32_t GetStrip(const int32_t detectorId)
int32_t GetCellId(const int32_t detectorId)
int32_t GetSystemId(int32_t detectorId)
int32_t GetModuleId(const int32_t detectorId)
static const int32_t array_length