Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BesDetectorID Class Reference

#include <BesDetectorID.h>

Inheritance diagram for BesDetectorID:

EmcID EmcID HltID HltID MdcID MdcID MucID MucID TofID TofID List of all members.

Public Member Functions

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

Protected Member Functions

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

Static Protected Attributes

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

Private Attributes

int m_EmcId
int m_HltId
int m_MdcId
int m_MucId
int m_TofId

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.


Constructor & Destructor Documentation

BesDetectorID::BesDetectorID void   ) 
 

00006                                  :
00007   m_MdcId(BesDetectorID::MDC_ID),     
00008   m_TofId(BesDetectorID::TOF_ID),       
00009   m_EmcId(BesDetectorID::EMC_ID),       
00010   m_MucId(BesDetectorID::MUC_ID),
00011   m_HltId(BesDetectorID::HLT_ID)
00012 {
00013 }

BesDetectorID::~BesDetectorID void   ) 
 

00016 {
00017 }

BesDetectorID::BesDetectorID void   ) 
 

BesDetectorID::~BesDetectorID void   ) 
 


Member Function Documentation

Identifier BesDetectorID::emc void   )  const
 

Identifier BesDetectorID::emc void   )  const
 

00054                                         {
00055   Identifier id = Identifier(  m_EmcId << EMC_INDEX );
00056   return id; 
00057 }

int BesDetectorID::emc_field_value  )  const [protected]
 

int BesDetectorID::emc_field_value  )  const [inline, protected]
 

00097 {return (m_EmcId);}       

int BesDetectorID::get_detectorID const Identifier id  )  const [protected]
 

int BesDetectorID::get_detectorID const Identifier id  )  const [protected]
 

Identifier BesDetectorID::hlt void   )  const
 

Identifier BesDetectorID::hlt void   )  const
 

00064                                         {
00065   Identifier id = Identifier(  m_HltId << HLT_INDEX );
00066   return id;
00067 }

int BesDetectorID::hlt_field_value  )  const [protected]
 

int BesDetectorID::hlt_field_value  )  const [inline, protected]
 

00103 {return (m_HltId);}

bool BesDetectorID::is_emc const Identifier id  )  const
 

bool BesDetectorID::is_emc const Identifier id  )  const
 

00029                                                       {
00030   Identifier::value_type value = id.get_value(); 
00031   return (value  &  EMC_MASK >> EMC_INDEX) == EMC_ID ? true : false;   
00032 }

bool BesDetectorID::is_hlt const Identifier id  )  const
 

bool BesDetectorID::is_hlt const Identifier id  )  const
 

00039                                                       {
00040   Identifier::value_type value = id.get_value();
00041   return (value  &  HLT_MASK >> HLT_INDEX) == HLT_ID ? true : false;
00042 }

bool BesDetectorID::is_mdc const Identifier id  )  const
 

bool BesDetectorID::is_mdc const Identifier id  )  const
 

00019                                                       {
00020   Identifier::value_type value = id.get_value(); 
00021   return (value  &  MDC_MASK >> MDC_INDEX) == MDC_ID ? true : false;    
00022 }

bool BesDetectorID::is_muc const Identifier id  )  const
 

bool BesDetectorID::is_muc const Identifier id  )  const
 

00034                                                       {
00035   Identifier::value_type value = id.get_value(); 
00036   return (value  &  MUC_MASK >> MUC_INDEX) == MUC_ID ? true : false;
00037 }

bool BesDetectorID::is_tof const Identifier id  )  const
 

bool BesDetectorID::is_tof const Identifier id  )  const
 

00024                                                       {
00025   Identifier::value_type value = id.get_value(); 
00026   return (value  &  TOF_MASK >> TOF_INDEX) == TOF_ID ? true : false;
00027 }

Identifier BesDetectorID::mdc void   )  const
 

Identifier BesDetectorID::mdc void   )  const
 

00044                                         {
00045   Identifier id = Identifier(  m_MdcId << MDC_INDEX );
00046   return id; 
00047 }

int BesDetectorID::mdc_field_value  )  const [protected]
 

Provide efficient access to individual field values.

int BesDetectorID::mdc_field_value  )  const [inline, protected]
 

Provide efficient access to individual field values.

00091 {return (m_MdcId);}     

Identifier BesDetectorID::muc void   )  const
 

Identifier BesDetectorID::muc void   )  const
 

00059                                         {
00060   Identifier id = Identifier(  m_MucId << MUC_INDEX );
00061   return id; 
00062 }

int BesDetectorID::muc_field_value  )  const [protected]
 

int BesDetectorID::muc_field_value  )  const [inline, protected]
 

00100 {return (m_MucId);}       

Identifier BesDetectorID::tof void   )  const
 

Identifier BesDetectorID::tof void   )  const
 

00049                                        {
00050   Identifier id = Identifier(  m_TofId << TOF_INDEX );
00051   return id; 
00052 }

int BesDetectorID::tof_field_value  )  const [protected]
 

int BesDetectorID::tof_field_value  )  const [inline, protected]
 

00094 {return (m_TofId);}


Member Data Documentation

const unsigned int BesDetectorID::EMC_ID = 0x30 [static, protected]
 

const unsigned int BesDetectorID::EMC_INDEX = 24 [static, protected]
 

const unsigned int BesDetectorID::EMC_MASK = 0xFF000000 [static, protected]
 

const unsigned int BesDetectorID::HLT_ID = 0x50 [static, protected]
 

const unsigned int BesDetectorID::HLT_INDEX = 24 [static, protected]
 

const unsigned int BesDetectorID::HLT_MASK = 0xFF000000 [static, protected]
 

int BesDetectorID::m_EmcId [private]
 

int BesDetectorID::m_HltId [private]
 

int BesDetectorID::m_MdcId [private]
 

int BesDetectorID::m_MucId [private]
 

int BesDetectorID::m_TofId [private]
 

const unsigned int BesDetectorID::MDC_ID = 0x10 [static, protected]
 

const unsigned int BesDetectorID::MDC_INDEX = 24 [static, protected]
 

const unsigned int BesDetectorID::MDC_MASK = 0xFF000000 [static, protected]
 

const unsigned int BesDetectorID::MUC_ID = 0x40 [static, protected]
 

const unsigned int BesDetectorID::MUC_INDEX = 24 [static, protected]
 

const unsigned int BesDetectorID::MUC_MASK = 0xFF000000 [static, protected]
 

const unsigned int BesDetectorID::TOF_ID = 0x20 [static, protected]
 

const unsigned int BesDetectorID::TOF_INDEX = 24 [static, protected]
 

const unsigned int BesDetectorID::TOF_MASK = 0xFF000000 [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:52:08 2011 for BOSS6.5.5 by  doxygen 1.3.9.1