BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
BesDetectorID Class Reference

#include <BesDetectorID.h>

+ Inheritance diagram for BesDetectorID:

Public Member Functions

 BesDetectorID (void)
 
 ~BesDetectorID (void)
 
Identifier mdc (void) const
 
Identifier tof (void) const
 
Identifier emc (void) const
 
Identifier muc (void) const
 
Identifier hlt (void) const
 
Identifier mrpc (void) const
 
bool is_mdc (const Identifier &id) const
 
bool is_tof (const Identifier &id) const
 
bool is_emc (const Identifier &id) const
 
bool is_muc (const Identifier &id) const
 
bool is_hlt (const Identifier &id) const
 
bool is_mrpc (const Identifier &id) const
 
 BesDetectorID (void)
 
 ~BesDetectorID (void)
 
Identifier mdc (void) const
 
Identifier tof (void) const
 
Identifier emc (void) const
 
Identifier muc (void) const
 
Identifier hlt (void) const
 
Identifier mrpc (void) const
 
bool is_mdc (const Identifier &id) const
 
bool is_tof (const Identifier &id) const
 
bool is_emc (const Identifier &id) const
 
bool is_muc (const Identifier &id) const
 
bool is_hlt (const Identifier &id) const
 
bool is_mrpc (const Identifier &id) const
 

Protected Member Functions

int mdc_field_value () const
 Provide efficient access to individual field values.
 
int tof_field_value () const
 
int emc_field_value () const
 
int muc_field_value () const
 
int hlt_field_value () const
 
int mrpc_field_value () const
 
int get_detectorID (const Identifier &id) const
 
int mdc_field_value () const
 Provide efficient access to individual field values.
 
int tof_field_value () const
 
int emc_field_value () const
 
int muc_field_value () const
 
int hlt_field_value () const
 
int mrpc_field_value () const
 
int get_detectorID (const Identifier &id) const
 

Static Protected Attributes

static const unsigned int MDC_ID = 0x10
 
static const unsigned int MDC_INDEX = 24
 
static const unsigned int MDC_MASK = 0xFF000000
 
static const unsigned int TOF_ID = 0x20
 
static const unsigned int TOF_INDEX = 24
 
static const unsigned int TOF_MASK = 0xFF000000
 
static const unsigned int EMC_ID = 0x30
 
static const unsigned int EMC_INDEX = 24
 
static const unsigned int EMC_MASK = 0xFF000000
 
static const unsigned int MUC_ID = 0x40
 
static const unsigned int MUC_INDEX = 24
 
static const unsigned int MUC_MASK = 0xFF000000
 
static const unsigned int HLT_ID = 0x50
 
static const unsigned int HLT_INDEX = 24
 
static const unsigned int HLT_MASK = 0xFF000000
 
static const unsigned int MRPC_ID = 0x70
 
static const unsigned int MRPC_INDEX = 24
 
static const unsigned int MRPC_MASK = 0xFF000000
 

Detailed Description

class BesDetectorID

This class provides an interface to generate or decode an identifier for the upper levels of the detector element hierarchy, i.e. BES III, the detector systems.

Definition at line 15 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

Constructor & Destructor Documentation

◆ BesDetectorID() [1/2]

◆ ~BesDetectorID() [1/2]

BesDetectorID::~BesDetectorID ( void  )

Definition at line 16 of file BesDetectorID.cxx.

17{
18}

◆ BesDetectorID() [2/2]

BesDetectorID::BesDetectorID ( void  )

◆ ~BesDetectorID() [2/2]

BesDetectorID::~BesDetectorID ( void  )

Member Function Documentation

◆ emc() [1/2]

Identifier BesDetectorID::emc ( void  ) const

◆ emc() [2/2]

Identifier BesDetectorID::emc ( void  ) const

◆ emc_field_value() [1/2]

int BesDetectorID::emc_field_value ( ) const
inlineprotected

Definition at line 111 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

111{return (m_EmcId);}

◆ emc_field_value() [2/2]

int BesDetectorID::emc_field_value ( ) const
protected

◆ get_detectorID() [1/2]

int BesDetectorID::get_detectorID ( const Identifier id) const
protected

◆ get_detectorID() [2/2]

int BesDetectorID::get_detectorID ( const Identifier id) const
protected

◆ hlt() [1/2]

Identifier BesDetectorID::hlt ( void  ) const

Definition at line 73 of file BesDetectorID.cxx.

73 {
74 Identifier id = Identifier( m_HltId << HLT_INDEX );
75 return id;
76}

◆ hlt() [2/2]

Identifier BesDetectorID::hlt ( void  ) const

◆ hlt_field_value() [1/2]

int BesDetectorID::hlt_field_value ( ) const
inlineprotected

Definition at line 117 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

117{return (m_HltId);}

◆ hlt_field_value() [2/2]

int BesDetectorID::hlt_field_value ( ) const
protected

◆ is_emc() [1/2]

bool BesDetectorID::is_emc ( const Identifier id) const

◆ is_emc() [2/2]

bool BesDetectorID::is_emc ( const Identifier id) const

◆ is_hlt() [1/2]

bool BesDetectorID::is_hlt ( const Identifier id) const

Definition at line 40 of file BesDetectorID.cxx.

40 {
41 Identifier::value_type value = id.get_value();
42 return ((value & HLT_MASK) >> HLT_INDEX) == HLT_ID ? true : false;
43}

◆ is_hlt() [2/2]

bool BesDetectorID::is_hlt ( const Identifier id) const

◆ is_mdc() [1/2]

bool BesDetectorID::is_mdc ( const Identifier id) const

Definition at line 20 of file BesDetectorID.cxx.

20 {
21 Identifier::value_type value = id.get_value();
22 return ((value & MDC_MASK) >> MDC_INDEX) == MDC_ID ? true : false;
23}

◆ is_mdc() [2/2]

bool BesDetectorID::is_mdc ( const Identifier id) const

◆ is_mrpc() [1/2]

bool BesDetectorID::is_mrpc ( const Identifier id) const

Definition at line 46 of file BesDetectorID.cxx.

46 {
47 Identifier::value_type value = id.get_value();
48 return ((value & MRPC_MASK) >> MRPC_INDEX) == MRPC_ID ? true : false;
49}

◆ is_mrpc() [2/2]

bool BesDetectorID::is_mrpc ( const Identifier id) const

◆ is_muc() [1/2]

bool BesDetectorID::is_muc ( const Identifier id) const

Definition at line 35 of file BesDetectorID.cxx.

35 {
36 Identifier::value_type value = id.get_value();
37 return ((value & MUC_MASK) >> MUC_INDEX) == MUC_ID ? true : false;
38}

◆ is_muc() [2/2]

bool BesDetectorID::is_muc ( const Identifier id) const

◆ is_tof() [1/2]

bool BesDetectorID::is_tof ( const Identifier id) const

Definition at line 25 of file BesDetectorID.cxx.

25 {
26 Identifier::value_type value = id.get_value();
27 return ((value & TOF_MASK) >> TOF_INDEX) == TOF_ID ? true : false;
28}

◆ is_tof() [2/2]

bool BesDetectorID::is_tof ( const Identifier id) const

◆ mdc() [1/2]

Identifier BesDetectorID::mdc ( void  ) const

Definition at line 53 of file BesDetectorID.cxx.

53 {
54 Identifier id = Identifier( m_MdcId << MDC_INDEX );
55 return id;
56}

◆ mdc() [2/2]

Identifier BesDetectorID::mdc ( void  ) const

◆ mdc_field_value() [1/2]

int BesDetectorID::mdc_field_value ( ) const
inlineprotected

Provide efficient access to individual field values.

Definition at line 105 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

105{return (m_MdcId);}

◆ mdc_field_value() [2/2]

int BesDetectorID::mdc_field_value ( ) const
protected

Provide efficient access to individual field values.

◆ mrpc() [1/2]

Identifier BesDetectorID::mrpc ( void  ) const

Definition at line 78 of file BesDetectorID.cxx.

78 {
79 Identifier id = Identifier( m_MrpcId << MRPC_INDEX );
80 return id;
81}

◆ mrpc() [2/2]

Identifier BesDetectorID::mrpc ( void  ) const

◆ mrpc_field_value() [1/2]

int BesDetectorID::mrpc_field_value ( ) const
inlineprotected

Definition at line 120 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

120{return (m_MrpcId);}

◆ mrpc_field_value() [2/2]

int BesDetectorID::mrpc_field_value ( ) const
protected

◆ muc() [1/2]

Identifier BesDetectorID::muc ( void  ) const

Definition at line 68 of file BesDetectorID.cxx.

68 {
69 Identifier id = Identifier( m_MucId << MUC_INDEX );
70 return id;
71}

◆ muc() [2/2]

Identifier BesDetectorID::muc ( void  ) const

◆ muc_field_value() [1/2]

int BesDetectorID::muc_field_value ( ) const
inlineprotected

Definition at line 114 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

114{return (m_MucId);}

◆ muc_field_value() [2/2]

int BesDetectorID::muc_field_value ( ) const
protected

◆ tof() [1/2]

Identifier BesDetectorID::tof ( void  ) const

Definition at line 58 of file BesDetectorID.cxx.

58 {
59 Identifier id = Identifier( m_TofId << TOF_INDEX );
60 return id;
61}

◆ tof() [2/2]

Identifier BesDetectorID::tof ( void  ) const

◆ tof_field_value() [1/2]

int BesDetectorID::tof_field_value ( ) const
inlineprotected

Definition at line 108 of file DetectorDescription/Identifier/Identifier-00-02-17/Identifier/BesDetectorID.h.

108{return (m_TofId);}

◆ tof_field_value() [2/2]

int BesDetectorID::tof_field_value ( ) const
protected

Member Data Documentation

◆ EMC_ID

static const unsigned int BesDetectorID::EMC_ID = 0x30
staticprotected

◆ EMC_INDEX

static const unsigned int BesDetectorID::EMC_INDEX = 24
staticprotected

◆ EMC_MASK

static const unsigned int BesDetectorID::EMC_MASK = 0xFF000000
staticprotected

◆ HLT_ID

static const unsigned int BesDetectorID::HLT_ID = 0x50
staticprotected

◆ HLT_INDEX

static const unsigned int BesDetectorID::HLT_INDEX = 24
staticprotected

◆ HLT_MASK

static const unsigned int BesDetectorID::HLT_MASK = 0xFF000000
staticprotected

◆ MDC_ID

static const unsigned int BesDetectorID::MDC_ID = 0x10
staticprotected

◆ MDC_INDEX

static const unsigned int BesDetectorID::MDC_INDEX = 24
staticprotected

◆ MDC_MASK

static const unsigned int BesDetectorID::MDC_MASK = 0xFF000000
staticprotected

◆ MRPC_ID

static const unsigned int BesDetectorID::MRPC_ID = 0x70
staticprotected

◆ MRPC_INDEX

static const unsigned int BesDetectorID::MRPC_INDEX = 24
staticprotected

◆ MRPC_MASK

static const unsigned int BesDetectorID::MRPC_MASK = 0xFF000000
staticprotected

◆ MUC_ID

static const unsigned int BesDetectorID::MUC_ID = 0x40
staticprotected

◆ MUC_INDEX

static const unsigned int BesDetectorID::MUC_INDEX = 24
staticprotected

◆ MUC_MASK

static const unsigned int BesDetectorID::MUC_MASK = 0xFF000000
staticprotected

◆ TOF_ID

static const unsigned int BesDetectorID::TOF_ID = 0x20
staticprotected

◆ TOF_INDEX

static const unsigned int BesDetectorID::TOF_INDEX = 24
staticprotected

◆ TOF_MASK

static const unsigned int BesDetectorID::TOF_MASK = 0xFF000000
staticprotected

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