22#ifndef CBMSTSDETECTORID_H
23#define CBMSTSDETECTORID_H 1
25#include "BmnDetectorList.h"
45 Int_t side, Int_t channel)
const {
47 | ( ( station & fgkStatMask ) << fgkStatShift )
48 | ( ( sector & fgkSectMask ) << fgkSectShift )
49 | ( ( side & fgkSideMask ) << fgkSideShift )
50 | ( ( channel & fgkChanMask ) << fgkChanShift );
56 return ( detectorId & 15 );
62 return ( (detectorId >> fgkStatShift) & fgkStatMask );
68 return ( (detectorId >> fgkSectShift) & fgkSectMask );
73 Int_t
Side(Int_t detectorId)
const {
74 return ( (detectorId >> fgkSideShift) & fgkSideMask );
80 return ( (detectorId >> fgkChanShift) & fgkChanMask );
95 static const Int_t fgkStatShift;
96 static const Int_t fgkSectShift;
97 static const Int_t fgkSideShift;
98 static const Int_t fgkChanShift;
101 static const Int_t fgkStatMask;
102 static const Int_t fgkSectMask;
103 static const Int_t fgkSideMask;
104 static const Int_t fgkChanMask;
static const Int_t fgkSideBits
static const Int_t fgkStatBits
Int_t StationNr(Int_t detectorId) const
Int_t ChannelNr(Int_t detectorId) const
Int_t SystemId(Int_t detectorId) const
virtual ~CbmStsDetectorId()
Int_t Side(Int_t detectorId) const
Int_t SectorNr(Int_t detectorId) const
static const Int_t fgkSectBits
static const Int_t fgkChanBits
Int_t DetectorId(Int_t station, Int_t sector, Int_t side, Int_t channel) const