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

#include <CbmTofDetectorId_v12b.h>

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

Public Member Functions

 CbmTofDetectorId_v12b ()
 
 ~CbmTofDetectorId_v12b ()
 
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 = 6
 
static const int32_t shiftarray [] = {0, 5, 9, 17, 20, 24}
 
static const int32_t bitarray [] = {5, 4, 8, 3, 4, 8}
 

Detailed Description

CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v12b 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 SuperModule type on bits 5-8 00000000000000000000000111100000 <<5 15 SuperModule NR on bits 9-16 00000000000000011111111000000000 <<9 255 Module NR on bits 17-19 00000000000011100000000000000000 <<17 7 Gap NR on bits 20-23 00000000111100000000000000000000 <<20 15 Cell NR on bits 24-31 11111111000000000000000000000000 <<24 255

Definition at line 38 of file CbmTofDetectorId_v12b.h.

Constructor & Destructor Documentation

◆ CbmTofDetectorId_v12b()

CbmTofDetectorId_v12b::CbmTofDetectorId_v12b ( )

Constructor

Definition at line 17 of file CbmTofDetectorId_v12b.cxx.

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

◆ ~CbmTofDetectorId_v12b()

CbmTofDetectorId_v12b::~CbmTofDetectorId_v12b ( )
inline

Destructor

Definition at line 45 of file CbmTofDetectorId_v12b.h.

Member Function Documentation

◆ GetCell()

int32_t CbmTofDetectorId_v12b::GetCell ( const int32_t detectorId)
virtual

Get cell number from detector ID

Implements CbmTofDetectorId.

Definition at line 69 of file CbmTofDetectorId_v12b.cxx.

References maskarray, and shiftarray.

Referenced by CbmTofAddress::ConvertCbmTofDetectorId().

◆ GetCellId()

int32_t CbmTofDetectorId_v12b::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 78 of file CbmTofDetectorId_v12b.cxx.

References modulemask.

◆ GetCounter()

int32_t CbmTofDetectorId_v12b::GetCounter ( const int32_t detectorId)
virtual

Get module number from detector ID

Implements CbmTofDetectorId.

Definition at line 55 of file CbmTofDetectorId_v12b.cxx.

References maskarray, and shiftarray.

Referenced by CbmTofAddress::ConvertCbmTofDetectorId().

◆ GetDetectorInfo()

CbmTofDetectorInfo CbmTofDetectorId_v12b::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 27 of file CbmTofDetectorId_v12b.cxx.

References array_length, maskarray, result_array, and shiftarray.

◆ GetGap()

int32_t CbmTofDetectorId_v12b::GetGap ( const int32_t detectorId)
virtual

Get sector number from detector ID

Implements CbmTofDetectorId.

Definition at line 62 of file CbmTofDetectorId_v12b.cxx.

References maskarray, and shiftarray.

◆ GetRegion()

int32_t CbmTofDetectorId_v12b::GetRegion ( const int32_t detectorId)
virtual

Get region number from detector ID

Implements CbmTofDetectorId.

Definition at line 76 of file CbmTofDetectorId_v12b.cxx.

◆ GetSModule()

int32_t CbmTofDetectorId_v12b::GetSModule ( const int32_t detectorId)
virtual

Get smodule number from detector ID

Implements CbmTofDetectorId.

Definition at line 48 of file CbmTofDetectorId_v12b.cxx.

References maskarray, and shiftarray.

Referenced by CbmTofAddress::ConvertCbmTofDetectorId().

◆ GetSMType()

int32_t CbmTofDetectorId_v12b::GetSMType ( const int32_t detectorId)
virtual

Get SMType number from detector ID

Implements CbmTofDetectorId.

Definition at line 41 of file CbmTofDetectorId_v12b.cxx.

References maskarray, and shiftarray.

Referenced by CbmTofAddress::ConvertCbmTofDetectorId().

◆ GetSystemId()

int32_t CbmTofDetectorId_v12b::GetSystemId ( int32_t detectorId)
virtual

Get the global sytem ID

Implements CbmTofDetectorId.

Definition at line 37 of file CbmTofDetectorId_v12b.cxx.

References maskarray.

◆ SetDetectorInfo()

int32_t CbmTofDetectorId_v12b::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 82 of file CbmTofDetectorId_v12b.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_v12b::array_length = 6
staticprivate

Definition at line 87 of file CbmTofDetectorId_v12b.h.

Referenced by CbmTofDetectorId_v12b(), and GetDetectorInfo().

◆ bitarray

const int32_t CbmTofDetectorId_v12b::bitarray = {5, 4, 8, 3, 4, 8}
staticprivate

Definition at line 14 of file CbmTofDetectorId_v12b.h.

Referenced by CbmTofDetectorId_v12b().

◆ maskarray

int32_t CbmTofDetectorId_v12b::maskarray[array_length]
private

◆ modulemask

int32_t CbmTofDetectorId_v12b::modulemask
private

Definition at line 92 of file CbmTofDetectorId_v12b.h.

Referenced by CbmTofDetectorId_v12b(), and GetCellId().

◆ result_array

int32_t CbmTofDetectorId_v12b::result_array[array_length]
private

Definition at line 90 of file CbmTofDetectorId_v12b.h.

Referenced by GetDetectorInfo().

◆ shiftarray

const int32_t CbmTofDetectorId_v12b::shiftarray = {0, 5, 9, 17, 20, 24}
staticprivate

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