CbmRoot
CbmMvdDetectorId Class Reference

#include <CbmMvdDetectorId.h>

Inheritance diagram for CbmMvdDetectorId:
[legend]

Public Member Functions

 CbmMvdDetectorId ()
 
virtual ~CbmMvdDetectorId ()
 
Int_t DetectorId (Int_t iStation) const
 
Int_t SystemId (Int_t detectorId) const
 
Int_t StationNr (Int_t detectorId) const
 
 ClassDef (CbmMvdDetectorId, 1)
 

Detailed Description

CbmMvdDetectorId.h Defines unique detector identifier for all MVD components. Classes using this ID scheme should derive from this class.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e Current definition: System ID (kMVD=1) on bits 0-4 Station number on bits 5-31

Definition at line 32 of file CbmMvdDetectorId.h.

Constructor & Destructor Documentation

◆ CbmMvdDetectorId()

CbmMvdDetectorId::CbmMvdDetectorId ( )

Constructor

Definition at line 10 of file CbmMvdDetectorId.cxx.

◆ ~CbmMvdDetectorId()

virtual CbmMvdDetectorId::~CbmMvdDetectorId ( )
inlinevirtual

Destructor

Definition at line 40 of file CbmMvdDetectorId.h.

Member Function Documentation

◆ ClassDef()

CbmMvdDetectorId::ClassDef ( CbmMvdDetectorId  ,
 
)

◆ DetectorId()

Int_t CbmMvdDetectorId::DetectorId ( Int_t  iStation) const
inline

Create unique detector ID from station number

Definition at line 44 of file CbmMvdDetectorId.h.

References kMvd, and ToIntegralType().

Referenced by CbmMvdHit::CbmMvdHit(), CbmMvdPoint::CbmMvdPoint(), and CbmMvdCluster::GetDetectorId().

◆ StationNr()

Int_t CbmMvdDetectorId::StationNr ( Int_t  detectorId) const
inline

Get station number from detector ID

Definition at line 61 of file CbmMvdDetectorId.h.

Referenced by CbmMvdDigi::GetStationNr(), CbmMvdHit::GetStationNr(), and CbmMvdPoint::GetStationNr().

◆ SystemId()

Int_t CbmMvdDetectorId::SystemId ( Int_t  detectorId) const
inline

Get System identifier from detector ID

Definition at line 50 of file CbmMvdDetectorId.h.

References kMvd, and ToIntegralType().

Referenced by CbmMvdHit::GetSystemId(), and CbmMvdPoint::GetSystemId().


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