CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId_v07a.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_v07a header file -----
7// ----- Created 20/11/12 by F. Uhlig -----
8// -------------------------------------------------------------------------
9
10
20// 3 2 1 shift length
30#ifndef CBMTOFDETECTORID_V07A_H
31#define CBMTOFDETECTORID_V07A_H 1
32
33#include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
34
35#include <cstdint>
36
38
39public:
42
45
50 CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId);
51
53 int32_t GetSystemId(int32_t detectorId);
54
56 int32_t GetSMType(const int32_t detectorId);
57
59 int32_t GetSModule(const int32_t detectorId);
60
62 int32_t GetCounter(const int32_t detectorId);
63
65 int32_t GetGap(const int32_t detectorId);
66
68 int32_t GetCell(const int32_t detectorId);
69
71 int32_t GetRegion(const int32_t detectorId);
72
77 int32_t GetCellId(const int32_t detectorId);
78
83 int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
84
85private:
86 static const int32_t array_length = 5;
87 static const int32_t shiftarray[];
88 static const int32_t bitarray[];
91 int32_t modulemask;
92};
93
94#endif
int32_t GetRegion(const int32_t detectorId)
int32_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
int32_t GetSModule(const int32_t detectorId)
static const int32_t array_length
CbmTofDetectorInfo GetDetectorInfo(const int32_t detectorId)
int32_t GetCounter(const int32_t detectorId)
static const int32_t bitarray[]
int32_t GetGap(const int32_t detectorId)
int32_t GetSMType(const int32_t detectorId)
int32_t GetCellId(const int32_t detectorId)
int32_t maskarray[array_length]
int32_t GetCell(const int32_t detectorId)
int32_t GetSystemId(int32_t detectorId)
static const int32_t shiftarray[]
int32_t result_array[array_length]