CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId_v21a.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, Norbert Herrmann [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmTofDetectorId_v12b header file -----
7// ----- Created 20/11/12 by F. Uhlig -----
8// -------------------------------------------------------------------------
9
10
24// 3 2 1 shift length
36#ifndef CBMTOFDETECTORID_V21A_H
37#define CBMTOFDETECTORID_V21A_H 1
38
39#include "CbmTofDetectorId.h"
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 int32_t GetCounterType(const int32_t detectorId);
63
65 int32_t GetSModule(const int32_t detectorId);
66 int32_t GetModuleId(const int32_t detectorId);
67
69 int32_t GetCounter(const int32_t detectorId);
70
72 int32_t GetGap(const int32_t detectorId);
73
75 int32_t GetSide(const int32_t detectorId);
76
78 int32_t GetCell(const int32_t detectorId);
80 int32_t GetStrip(const int32_t detectorId);
81
83 int32_t GetRegion(const int32_t detectorId);
84
89 int32_t GetCellId(const int32_t detectorId);
90
95 int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
96
97private:
98 static const int32_t array_length = 7;
99 static const int32_t shiftarray[];
100 static const int32_t bitarray[];
103 int32_t modulemask;
104};
105
106#endif
int32_t maskarray[array_length]
int32_t GetStrip(const int32_t detectorId)
int32_t GetGap(const int32_t detectorId)
static const int32_t bitarray[]
int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
int32_t GetSMType(const int32_t detectorId)
int32_t GetSide(const int32_t detectorId)
int32_t GetRegion(const int32_t detectorId)
int32_t GetCounterType(const int32_t detectorId)
int32_t GetSModule(const int32_t detectorId)
int32_t GetModuleType(const int32_t detectorId)
int32_t result_array[array_length]
int32_t GetModuleId(const int32_t detectorId)
int32_t GetSystemId(int32_t detectorId)
int32_t GetCellId(const int32_t detectorId)
CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId)
static const int32_t shiftarray[]
int32_t GetCounter(const int32_t detectorId)
static const int32_t array_length
int32_t GetCell(const int32_t detectorId)