CbmRoot
CbmTofDetectorId_v14a Class Reference

#include <CbmTofDetectorId_v14a.h>

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

Public Member Functions

 CbmTofDetectorId_v14a ()
 
 ~CbmTofDetectorId_v14a ()
 
CbmTofDetectorInfo GetDetectorInfo (const Int_t detectorId)
 
Int_t GetSystemId (Int_t detectorId)
 
Int_t GetSMType (const Int_t detectorId)
 
Int_t GetModuleType (const Int_t detectorId)
 
Int_t GetSModule (const Int_t detectorId)
 
Int_t GetModuleId (const Int_t detectorId)
 
Int_t GetCounter (const Int_t detectorId)
 
Int_t GetGap (const Int_t detectorId)
 
Int_t GetSide (const Int_t detectorId)
 
Int_t GetCell (const Int_t detectorId)
 
Int_t GetStrip (const Int_t detectorId)
 
Int_t GetRegion (const Int_t detectorId)
 
Int_t GetCellId (const Int_t detectorId)
 
Int_t SetDetectorInfo (const CbmTofDetectorInfo detectorInfo)
 

Private Attributes

Int_t result_array [array_length]
 
Int_t maskarray [array_length]
 
Int_t modulemask
 

Static Private Attributes

static const Int_t array_length = 6
 
static const Int_t shiftarray [] = {0, 4, 12, 16, 23, 24}
 
static const Int_t bitarray [] = {4, 8, 4, 7, 1, 8}
 

Detailed Description

CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v14a nh, 11.03.2014 PAL, 23.09.2015: make the class common to both v14 and v15 geometries Field 4 used as Side index (or fake Gap index in digitizer) Naming as in TDR: SM -> Module, Module -> Counter, Cell -> Strip 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-3 00000000000000000000000000001111 15 Module ID on bits 4-11 00000000000000000000111111110000 <<4 255 Module Type on bits 12-15 00000000000000001111000000000000 <<12 15 Counter ID on bits 16-23 00000000011111110000000000000000 <<16 127 Side/Gap NR on bits 20-23 00000000100000000000000000000000 <<23 1 Strip ID on bits 24-31 11111111000000000000000000000000 <<24 255

Definition at line 36 of file CbmTofDetectorId_v14a.h.

Constructor & Destructor Documentation

◆ CbmTofDetectorId_v14a()

CbmTofDetectorId_v14a::CbmTofDetectorId_v14a ( )

Constructor

Definition at line 13 of file CbmTofDetectorId_v14a.cxx.

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

◆ ~CbmTofDetectorId_v14a()

CbmTofDetectorId_v14a::~CbmTofDetectorId_v14a ( )
inline

Destructor

Definition at line 43 of file CbmTofDetectorId_v14a.h.

Member Function Documentation

◆ GetCell()

Int_t CbmTofDetectorId_v14a::GetCell ( const Int_t  detectorId)
virtual

Get cell number from detector ID

Implements CbmTofDetectorId.

Definition at line 78 of file CbmTofDetectorId_v14a.cxx.

References maskarray, and shiftarray.

Referenced by GetStrip().

◆ GetCellId()

Int_t CbmTofDetectorId_v14a::GetCellId ( const Int_t  detectorId)
virtual

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

Implements CbmTofDetectorId.

Definition at line 92 of file CbmTofDetectorId_v14a.cxx.

References modulemask.

◆ GetCounter()

Int_t CbmTofDetectorId_v14a::GetCounter ( const Int_t  detectorId)
virtual

Get counter ID from detector ID

Implements CbmTofDetectorId.

Definition at line 63 of file CbmTofDetectorId_v14a.cxx.

References maskarray, and shiftarray.

◆ GetDetectorInfo()

CbmTofDetectorInfo CbmTofDetectorId_v14a::GetDetectorInfo ( const Int_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 26 of file CbmTofDetectorId_v14a.cxx.

References array_length, i, maskarray, result_array, and shiftarray.

◆ GetGap()

Int_t CbmTofDetectorId_v14a::GetGap ( const Int_t  detectorId)
virtual

Get sector number from detector ID

Implements CbmTofDetectorId.

Definition at line 72 of file CbmTofDetectorId_v14a.cxx.

References GetSide().

◆ GetModuleId()

Int_t CbmTofDetectorId_v14a::GetModuleId ( const Int_t  detectorId)

Definition at line 57 of file CbmTofDetectorId_v14a.cxx.

References GetSModule().

◆ GetModuleType()

Int_t CbmTofDetectorId_v14a::GetModuleType ( const Int_t  detectorId)

Definition at line 48 of file CbmTofDetectorId_v14a.cxx.

References GetSMType().

◆ GetRegion()

Int_t CbmTofDetectorId_v14a::GetRegion ( const Int_t  detectorId)
virtual

Get region number from detector ID

Implements CbmTofDetectorId.

Definition at line 88 of file CbmTofDetectorId_v14a.cxx.

◆ GetSide()

Int_t CbmTofDetectorId_v14a::GetSide ( const Int_t  detectorId)

Get sector number from detector ID

Definition at line 69 of file CbmTofDetectorId_v14a.cxx.

References maskarray, and shiftarray.

Referenced by GetGap().

◆ GetSModule()

Int_t CbmTofDetectorId_v14a::GetSModule ( const Int_t  detectorId)
virtual

Get Module ID from detector ID

Implements CbmTofDetectorId.

Definition at line 54 of file CbmTofDetectorId_v14a.cxx.

References maskarray, and shiftarray.

Referenced by GetModuleId().

◆ GetSMType()

Int_t CbmTofDetectorId_v14a::GetSMType ( const Int_t  detectorId)
virtual

Get Module Type from detector ID

Implements CbmTofDetectorId.

Definition at line 45 of file CbmTofDetectorId_v14a.cxx.

References maskarray, and shiftarray.

Referenced by GetModuleType().

◆ GetStrip()

Int_t CbmTofDetectorId_v14a::GetStrip ( const Int_t  detectorId)

Get Strip ID from detector ID

Definition at line 82 of file CbmTofDetectorId_v14a.cxx.

References GetCell().

◆ GetSystemId()

Int_t CbmTofDetectorId_v14a::GetSystemId ( Int_t  detectorId)
virtual

Get the global sytem ID

Implements CbmTofDetectorId.

Definition at line 39 of file CbmTofDetectorId_v14a.cxx.

References maskarray.

◆ SetDetectorInfo()

Int_t CbmTofDetectorId_v14a::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 98 of file CbmTofDetectorId_v14a.cxx.

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

Member Data Documentation

◆ array_length

const Int_t CbmTofDetectorId_v14a::array_length = 6
staticprivate

Definition at line 92 of file CbmTofDetectorId_v14a.h.

Referenced by CbmTofDetectorId_v14a(), and GetDetectorInfo().

◆ bitarray

const Int_t CbmTofDetectorId_v14a::bitarray = {4, 8, 4, 7, 1, 8}
staticprivate

Definition at line 94 of file CbmTofDetectorId_v14a.h.

Referenced by CbmTofDetectorId_v14a().

◆ maskarray

Int_t CbmTofDetectorId_v14a::maskarray[array_length]
private

◆ modulemask

Int_t CbmTofDetectorId_v14a::modulemask
private

Definition at line 97 of file CbmTofDetectorId_v14a.h.

Referenced by CbmTofDetectorId_v14a(), and GetCellId().

◆ result_array

Int_t CbmTofDetectorId_v14a::result_array[array_length]
private

Definition at line 95 of file CbmTofDetectorId_v14a.h.

Referenced by GetDetectorInfo().

◆ shiftarray

const Int_t CbmTofDetectorId_v14a::shiftarray = {0, 4, 12, 16, 23, 24}
staticprivate

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