CbmRoot
Loading...
Searching...
No Matches
CbmTofDetectorId_v07a Class Reference

#include <CbmTofDetectorId_v07a.h>

Inheritance diagram for CbmTofDetectorId_v07a:
[legend]
Collaboration diagram for CbmTofDetectorId_v07a:
[legend]

Public Member Functions

 CbmTofDetectorId_v07a ()
 
 ~CbmTofDetectorId_v07a ()
 
CbmTofDetectorInfo GetDetectorInfo (const int32_t detectorId)
 
int32_t GetSystemId (int32_t detectorId)
 
int32_t GetSMType (const int32_t detectorId)
 
int32_t GetSModule (const int32_t detectorId)
 
int32_t GetCounter (const int32_t detectorId)
 
int32_t GetGap (const int32_t detectorId)
 
int32_t GetCell (const int32_t detectorId)
 
int32_t GetRegion (const int32_t detectorId)
 
int32_t GetCellId (const int32_t detectorId)
 
int32_t SetDetectorInfo (const CbmTofDetectorInfo detectorInfo)
 

Private Attributes

int32_t result_array [array_length]
 
int32_t maskarray [array_length]
 
int32_t modulemask
 

Static Private Attributes

static const int32_t array_length = 5
 
static const int32_t shiftarray [] = {0, 5, 9, 19, 23}
 
static const int32_t bitarray [] = {5, 4, 10, 4, 9}
 

Detailed Description

CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v07a and v12a All classes which uses this scheme should have a data member of this class

Author
F. Uhlig f.uhl.nosp@m.ig@g.nosp@m.si.de Current definition: 10987654321098765432109876543210 System ID (kTOF=6) on bits 0-4 00000000000000000000000000011111 31 Super Module type on bits 5-8 00000000000000000000000111100000 <<5 15 Module NR on bits 9-18 00000000000001111111111000000000 <<9 1023 Gap NR on bits 19-22 00000000011110000000000000000000 <<19 15 Cell NR on bits 23-32 11111111100000000000000000000000 <<23 511

Definition at line 37 of file CbmTofDetectorId_v07a.h.

Constructor & Destructor Documentation

◆ CbmTofDetectorId_v07a()

CbmTofDetectorId_v07a::CbmTofDetectorId_v07a ( )

Constructor

Current definition: 10987654321098765432109876543210 System ID (kTOF=6) on bits 0-4 00000000000000000000000000011111 31 Super Module type on bits 5-8 00000000000000000000000111100000 <<5 15 Module NR on bits 9-18 00000000000001111111111000000000 <<9 1023 Gap NR on bits 19-22 00000000011110000000000000000000 <<19 15 Cell NR on bits 23-32 11111111100000000000000000000000 <<23 511

Definition at line 27 of file CbmTofDetectorId_v07a.cxx.

References array_length, bitarray, maskarray, modulemask, and shiftarray.

◆ ~CbmTofDetectorId_v07a()

CbmTofDetectorId_v07a::~CbmTofDetectorId_v07a ( )
inline

Destructor

Definition at line 44 of file CbmTofDetectorId_v07a.h.

Member Function Documentation

◆ GetCell()

int32_t CbmTofDetectorId_v07a::GetCell ( const int32_t detectorId)
virtual

Get cell number from detector ID

Implements CbmTofDetectorId.

Definition at line 74 of file CbmTofDetectorId_v07a.cxx.

References maskarray, and shiftarray.

◆ GetCellId()

int32_t CbmTofDetectorId_v07a::GetCellId ( const int32_t detectorId)
virtual

Get cell number from detector ID. This is masking the the gap number if this is set.

Implements CbmTofDetectorId.

Definition at line 83 of file CbmTofDetectorId_v07a.cxx.

References modulemask.

◆ GetCounter()

int32_t CbmTofDetectorId_v07a::GetCounter ( const int32_t detectorId)
virtual

Get counter number from detector ID

Implements CbmTofDetectorId.

Definition at line 63 of file CbmTofDetectorId_v07a.cxx.

◆ GetDetectorInfo()

CbmTofDetectorInfo CbmTofDetectorId_v07a::GetDetectorInfo ( const int32_t detectorId)
virtual

Get complete system info from detector ID This will return a pointer to an integer array of length array_length

Implements CbmTofDetectorId.

Definition at line 37 of file CbmTofDetectorId_v07a.cxx.

References array_length, maskarray, result_array, and shiftarray.

◆ GetGap()

int32_t CbmTofDetectorId_v07a::GetGap ( const int32_t detectorId)
virtual

Get sector number from detector ID

Implements CbmTofDetectorId.

Definition at line 67 of file CbmTofDetectorId_v07a.cxx.

References maskarray, and shiftarray.

◆ GetRegion()

int32_t CbmTofDetectorId_v07a::GetRegion ( const int32_t detectorId)
virtual

Get region number from detector ID

Implements CbmTofDetectorId.

Definition at line 81 of file CbmTofDetectorId_v07a.cxx.

◆ GetSModule()

int32_t CbmTofDetectorId_v07a::GetSModule ( const int32_t detectorId)
virtual

Get smodule number from detector ID

Implements CbmTofDetectorId.

Definition at line 56 of file CbmTofDetectorId_v07a.cxx.

References maskarray, and shiftarray.

◆ GetSMType()

int32_t CbmTofDetectorId_v07a::GetSMType ( const int32_t detectorId)
virtual

Get SMType number from detector ID

Implements CbmTofDetectorId.

Definition at line 49 of file CbmTofDetectorId_v07a.cxx.

References maskarray, and shiftarray.

◆ GetSystemId()

int32_t CbmTofDetectorId_v07a::GetSystemId ( int32_t detectorId)
virtual

Get the global sytem ID

Implements CbmTofDetectorId.

Definition at line 45 of file CbmTofDetectorId_v07a.cxx.

References maskarray.

◆ SetDetectorInfo()

int32_t CbmTofDetectorId_v07a::SetDetectorInfo ( const CbmTofDetectorInfo detectorInfo)
virtual

Calculate the unique detector ID This will return a pointer to an integer array of length array_length

Implements CbmTofDetectorId.

Definition at line 87 of file CbmTofDetectorId_v07a.cxx.

References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, CbmTofDetectorInfo::fSMtype, and shiftarray.

Member Data Documentation

◆ array_length

const int32_t CbmTofDetectorId_v07a::array_length = 5
staticprivate

Definition at line 86 of file CbmTofDetectorId_v07a.h.

Referenced by CbmTofDetectorId_v07a(), and GetDetectorInfo().

◆ bitarray

const int32_t CbmTofDetectorId_v07a::bitarray = {5, 4, 10, 4, 9}
staticprivate

Definition at line 16 of file CbmTofDetectorId_v07a.h.

Referenced by CbmTofDetectorId_v07a().

◆ maskarray

int32_t CbmTofDetectorId_v07a::maskarray[array_length]
private

◆ modulemask

int32_t CbmTofDetectorId_v07a::modulemask
private

Definition at line 91 of file CbmTofDetectorId_v07a.h.

Referenced by CbmTofDetectorId_v07a(), and GetCellId().

◆ result_array

int32_t CbmTofDetectorId_v07a::result_array[array_length]
private

Definition at line 89 of file CbmTofDetectorId_v07a.h.

Referenced by GetDetectorInfo().

◆ shiftarray

const int32_t CbmTofDetectorId_v07a::shiftarray = {0, 5, 9, 19, 23}
staticprivate

The documentation for this class was generated from the following files: