#include <MdcID.h>
Inheritance diagram for MdcID:
Public Types | |
typedef Identifier::size_type | size_type |
typedef Identifier::value_type | value_type |
Public Member Functions | |
MdcID () | |
constructor | |
~MdcID () | |
destructor | |
bool | is_axial (const Identifier &id) |
Test for axial and stereo wire. | |
int | layer_max (const Identifier &id) |
Max/Min values for each field (error returns -999). | |
int | wire_max (const Identifier &id) |
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 |
Static Public Member Functions | |
static Identifier | wire_id (int wireType, int layer, int wire) |
For a single wire. | |
static Identifier | wire_id (int layer, int wire) |
static value_type | getIntID (unsigned int wireType, unsigned int layer, unsigned int wire) |
static value_type | getIntID (unsigned int layer, unsigned int wire) |
static value_type | getAXIAL_LAYER_MAX () |
static value_type | getSTEREO_LAYER_MAX () |
static value_type | getAXIAL_WIRE_MAX () |
static value_type | getSTEREO_WIRE_MAX () |
static value_type | getAXIAL_WIRE () |
static value_type | getSTEREO_WIRE () |
static bool | values_ok (const unsigned int wireType, const unsigned int layer, const unsigned int wire) |
static int | layer (const Identifier &id) |
Values of different levels (failure returns 0). | |
static int | wire (const Identifier &id) |
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 |
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 |
Private Types | |
typedef std::vector< Identifier > | id_vec |
typedef id_vec::const_iterator | id_vec_it |
Static Private Attributes | |
static const unsigned int | AXIAL_WIRE = 0 |
static const unsigned int | STEREO_WIRE = 1 |
static const unsigned int | WIRETYPE_INDEX = 15 |
static const unsigned int | WIRETYPE_MASK = 0x00008000 |
static const unsigned int | LAYER_INDEX = 9 |
static const unsigned int | LAYER_MASK = 0x00007E00 |
static const unsigned int | WIRE_INDEX = 0 |
static const unsigned int | WIRE_MASK = 0x000001FF |
static const unsigned int | AXIAL_LAYER_MAX = 18 |
static const unsigned int | INNER_AXIAL_LAYER_MAX = 12 |
static const unsigned int | OUTER_AXIAL_LAYER_MAX = 7 |
static const unsigned int | LAYER_MAX = 43 |
static const unsigned int | STEREO_LAYER_MAX = 23 |
static const unsigned int | INNER_STEREO_LAYER_MAX = 8 |
static const unsigned int | OUTER_STEREO_LAYER_MAX = 16 |
static const unsigned int | AXIAL_WIRE_MAX = 287 |
static const unsigned int | STEREO_WIRE_MAX = 239 |
Definition at line 8 of file MdcID.h.
typedef std::vector<Identifier> MdcID::id_vec [private] |
typedef id_vec::const_iterator MdcID::id_vec_it [private] |
Identifier BesDetectorID::emc | ( | void | ) | const [inherited] |
Definition at line 63 of file BesDetectorID.cxx.
References BesDetectorID::EMC_INDEX, and BesDetectorID::m_EmcId.
00063 { 00064 Identifier id = Identifier( m_EmcId << EMC_INDEX ); 00065 return id; 00066 }
int BesDetectorID::emc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 111 of file BesDetectorID.h.
References BesDetectorID::m_EmcId.
00111 {return (m_EmcId);}
int BesDetectorID::get_detectorID | ( | const Identifier & | id | ) | const [protected, inherited] |
unsigned int MdcID::getAXIAL_LAYER_MAX | ( | ) | [static] |
Definition at line 138 of file MdcID.cxx.
References AXIAL_LAYER_MAX.
Referenced by MdcBuilder::initialize().
00139 { 00140 return AXIAL_LAYER_MAX; 00141 }
unsigned int MdcID::getAXIAL_WIRE | ( | ) | [static] |
Definition at line 155 of file MdcID.cxx.
References AXIAL_WIRE.
00156 { 00157 return AXIAL_WIRE; 00158 }
unsigned int MdcID::getAXIAL_WIRE_MAX | ( | ) | [static] |
Definition at line 146 of file MdcID.cxx.
References AXIAL_WIRE_MAX.
Referenced by MdcBuilder::initialize().
00147 { 00148 return AXIAL_WIRE_MAX; 00149 }
unsigned int MdcID::getIntID | ( | unsigned int | layer, | |
unsigned int | wire | |||
) | [static] |
Definition at line 102 of file MdcID.cxx.
References AXIAL_WIRE, INNER_AXIAL_LAYER_MAX, INNER_STEREO_LAYER_MAX, LAYER_INDEX, LAYER_MASK, BesDetectorID::MDC_ID, BesDetectorID::MDC_INDEX, BesDetectorID::MDC_MASK, OUTER_STEREO_LAYER_MAX, STEREO_WIRE, WIRE_INDEX, WIRE_MASK, WIRETYPE_INDEX, and WIRETYPE_MASK.
00104 { 00105 unsigned int value; 00106 unsigned int wireType; 00107 00108 if ( layer < INNER_STEREO_LAYER_MAX 00109 || layer < (INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX + OUTER_STEREO_LAYER_MAX) 00110 && layer >= (INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX ) 00111 ) 00112 wireType = STEREO_WIRE; 00113 else wireType = AXIAL_WIRE; 00114 00115 value = ((BesDetectorID::MDC_ID << MDC_INDEX)&MDC_MASK) | 00116 ((wireType << WIRETYPE_INDEX)&WIRETYPE_MASK) | 00117 ((layer << LAYER_INDEX)&LAYER_MASK) | 00118 ((wire << WIRE_INDEX)&WIRE_MASK); 00119 00120 return value; 00121 00122 }
unsigned int MdcID::getIntID | ( | unsigned int | wireType, | |
unsigned int | layer, | |||
unsigned int | wire | |||
) | [static] |
Definition at line 124 of file MdcID.cxx.
References LAYER_INDEX, LAYER_MASK, BesDetectorID::MDC_ID, BesDetectorID::MDC_INDEX, BesDetectorID::MDC_MASK, WIRE_INDEX, WIRE_MASK, WIRETYPE_INDEX, and WIRETYPE_MASK.
Referenced by MdcBuilder::initialize(), and MdcBuilder::pack().
00127 { 00128 unsigned int value = ((BesDetectorID::MDC_ID << MDC_INDEX)&MDC_MASK) | 00129 ((wireType << WIRETYPE_INDEX)&WIRETYPE_MASK) | 00130 ((layer << LAYER_INDEX)&LAYER_MASK) | 00131 ((wire << WIRE_INDEX)&WIRE_MASK); 00132 return value; 00133 00134 }
unsigned int MdcID::getSTEREO_LAYER_MAX | ( | ) | [static] |
Definition at line 142 of file MdcID.cxx.
References STEREO_LAYER_MAX.
Referenced by MdcBuilder::initialize().
00143 { 00144 return STEREO_LAYER_MAX; 00145 }
unsigned int MdcID::getSTEREO_WIRE | ( | ) | [static] |
Definition at line 160 of file MdcID.cxx.
References STEREO_WIRE.
00161 { 00162 return STEREO_WIRE; 00163 }
unsigned int MdcID::getSTEREO_WIRE_MAX | ( | ) | [static] |
Definition at line 150 of file MdcID.cxx.
References STEREO_WIRE_MAX.
00151 { 00152 return STEREO_WIRE_MAX; 00153 }
Identifier BesDetectorID::hlt | ( | void | ) | const [inherited] |
Definition at line 73 of file BesDetectorID.cxx.
References BesDetectorID::HLT_INDEX, and BesDetectorID::m_HltId.
00073 { 00074 Identifier id = Identifier( m_HltId << HLT_INDEX ); 00075 return id; 00076 }
int BesDetectorID::hlt_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 117 of file BesDetectorID.h.
References BesDetectorID::m_HltId.
00117 {return (m_HltId);}
bool MdcID::is_axial | ( | const Identifier & | id | ) |
Test for axial and stereo wire.
Definition at line 43 of file MdcID.cxx.
References AXIAL_WIRE, type, WIRETYPE_INDEX, and WIRETYPE_MASK.
Referenced by layer_max(), and wire_max().
00043 { 00044 unsigned int type = (id.get_value() & MdcID::WIRETYPE_MASK) >> MdcID::WIRETYPE_INDEX; 00045 return (type == AXIAL_WIRE) ? true : false; 00046 }
bool BesDetectorID::is_emc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 30 of file BesDetectorID.cxx.
References BesDetectorID::EMC_ID, BesDetectorID::EMC_INDEX, and BesDetectorID::EMC_MASK.
00030 { 00031 Identifier::value_type value = id.get_value(); 00032 return ((value & EMC_MASK) >> EMC_INDEX) == EMC_ID ? true : false; 00033 }
bool BesDetectorID::is_hlt | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 40 of file BesDetectorID.cxx.
References BesDetectorID::HLT_ID, BesDetectorID::HLT_INDEX, and BesDetectorID::HLT_MASK.
00040 { 00041 Identifier::value_type value = id.get_value(); 00042 return ((value & HLT_MASK) >> HLT_INDEX) == HLT_ID ? true : false; 00043 }
bool BesDetectorID::is_mdc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 20 of file BesDetectorID.cxx.
References BesDetectorID::MDC_ID, BesDetectorID::MDC_INDEX, and BesDetectorID::MDC_MASK.
00020 { 00021 Identifier::value_type value = id.get_value(); 00022 return ((value & MDC_MASK) >> MDC_INDEX) == MDC_ID ? true : false; 00023 }
bool BesDetectorID::is_mrpc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 46 of file BesDetectorID.cxx.
References BesDetectorID::MRPC_ID, BesDetectorID::MRPC_INDEX, and BesDetectorID::MRPC_MASK.
00046 { 00047 Identifier::value_type value = id.get_value(); 00048 return ((value & MRPC_MASK) >> MRPC_INDEX) == MRPC_ID ? true : false; 00049 }
bool BesDetectorID::is_muc | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 35 of file BesDetectorID.cxx.
References BesDetectorID::MUC_ID, BesDetectorID::MUC_INDEX, and BesDetectorID::MUC_MASK.
00035 { 00036 Identifier::value_type value = id.get_value(); 00037 return ((value & MUC_MASK) >> MUC_INDEX) == MUC_ID ? true : false; 00038 }
bool BesDetectorID::is_tof | ( | const Identifier & | id | ) | const [inherited] |
Definition at line 25 of file BesDetectorID.cxx.
References BesDetectorID::TOF_ID, BesDetectorID::TOF_INDEX, and BesDetectorID::TOF_MASK.
00025 { 00026 Identifier::value_type value = id.get_value(); 00027 return ((value & TOF_MASK) >> TOF_INDEX) == TOF_ID ? true : false; 00028 }
int MdcID::layer | ( | const Identifier & | id | ) | [static] |
Values of different levels (failure returns 0).
Definition at line 49 of file MdcID.cxx.
References LAYER_INDEX, and LAYER_MASK.
Referenced by MdcCalib::calDetEffi(), BesEvent::ConstructMdcTrackFromRec(), MdcConverter::convert(), MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), MdcMergeDups::doMergeCurl(), MdcROOTGeo::DrawHits(), MdcTrkRecon::dumpDigi(), MdcMergeDups::dumpRecMdcTrack(), MdcxTrackFinder::dumpTdsHits(), MdcxTrackFinder::dumpTdsTrack(), MdcTrkRecon::dumpTdsTrack(), ValidRecMdcTrackAlg::execute(), BesTrigL1::execute(), TrkReco::execute(), MdcxCosmicSewer::execute(), MdcHoughFinder::execute(), HoughValidUpdate::execute(), MdcDedxRecon::execute(), KalFitAlg::execute(), EsTimeAlg::execute(), EventPreSelect::execute(), BhabhaPreSelect::execute(), EFSectorHits::execute(), MdcCalRecTrk::fgNoiseRatio(), MdcxTrackFinder::fillEvent(), MdcTrkRecon::fillEvent(), MdcNavigation::fillEvent(), MdcNavigation::fillInit(), MdcxTrackFinder::fillMcTruth(), MdcTrkRecon::fillMcTruth(), MdcNavigation::fillRecHits(), MdcNavigation::fillRecTrack(), TrkReco::FillTuple(), DedxCalibEvent::genNtuple(), MdcCalib::getCellTrkPass(), MdcRawDataProvider::getMdcDigiVec(), MdcROOTGeo::IsHit(), MdcDedxRecon::kaltrackrec(), MdcDetector::Layer(), MdcMcHitBuilder::makeMdcTruth(), TTrackManager::makeTds(), MdcHit::MdcHit(), MdcDedxRecon::mdctrackrec(), MdcxTrackFinder::MdcxHitsToHots(), MdcxCosmicSewer::MdcxHitsToHots(), KalFitAlg::order_rechits(), MdcBuilder::pack(), MdcNavigation::poca(), PrintMcInfo::printDigi(), MdcPrintSvc::printDigi(), PrintMcInfo::printHit(), MdcPrintSvc::printMdcMcHitCol(), MdcPrintSvc::printRecMdcTrack(), MdcxTrackFinder::printTrack(), MdcxHit::process(), McTestAlg::RetrieveMdc(), MdcROOTGeo::SetHits(), MdcCalRecHit::setKalHit(), MdcAliRecHit::setKalHit(), MdcCalRecHit::setRecHit(), MdcAliRecHit::setRecHit(), MdcMergeDups::testByOverlapHit(), RecMdcTrackCnv::TObjectToDataObject(), RecMdcKalTrackCnv::TObjectToDataObject(), RecMdcDedxCnv::TObjectToDataObject(), FTFinder::updateMdc(), and MdcDetector::Wire().
00049 { 00050 return (id.get_value() & MdcID::LAYER_MASK) >> MdcID::LAYER_INDEX; 00051 }
int MdcID::layer_max | ( | const Identifier & | id | ) |
Max/Min values for each field (error returns -999).
Definition at line 59 of file MdcID.cxx.
References AXIAL_LAYER_MAX, is_axial(), and STEREO_LAYER_MAX.
00059 { 00060 if (is_axial(id)) { 00061 return AXIAL_LAYER_MAX; 00062 } else { 00063 return STEREO_LAYER_MAX; 00064 } 00065 }
Identifier BesDetectorID::mdc | ( | void | ) | const [inherited] |
Definition at line 53 of file BesDetectorID.cxx.
References BesDetectorID::m_MdcId, and BesDetectorID::MDC_INDEX.
00053 { 00054 Identifier id = Identifier( m_MdcId << MDC_INDEX ); 00055 return id; 00056 }
int BesDetectorID::mdc_field_value | ( | ) | const [inline, protected, inherited] |
Provide efficient access to individual field values.
Definition at line 105 of file BesDetectorID.h.
References BesDetectorID::m_MdcId.
00105 {return (m_MdcId);}
Identifier BesDetectorID::mrpc | ( | void | ) | const [inherited] |
Definition at line 78 of file BesDetectorID.cxx.
References BesDetectorID::m_MrpcId, and BesDetectorID::MRPC_INDEX.
00078 { 00079 Identifier id = Identifier( m_MrpcId << MRPC_INDEX ); 00080 return id; 00081 }
int BesDetectorID::mrpc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 120 of file BesDetectorID.h.
References BesDetectorID::m_MrpcId.
00120 {return (m_MrpcId);}
Identifier BesDetectorID::muc | ( | void | ) | const [inherited] |
Definition at line 68 of file BesDetectorID.cxx.
References BesDetectorID::m_MucId, and BesDetectorID::MUC_INDEX.
00068 { 00069 Identifier id = Identifier( m_MucId << MUC_INDEX ); 00070 return id; 00071 }
int BesDetectorID::muc_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 114 of file BesDetectorID.h.
References BesDetectorID::m_MucId.
00114 {return (m_MucId);}
Identifier BesDetectorID::tof | ( | void | ) | const [inherited] |
Definition at line 58 of file BesDetectorID.cxx.
References BesDetectorID::m_TofId, and BesDetectorID::TOF_INDEX.
00058 { 00059 Identifier id = Identifier( m_TofId << TOF_INDEX ); 00060 return id; 00061 }
int BesDetectorID::tof_field_value | ( | ) | const [inline, protected, inherited] |
Definition at line 108 of file BesDetectorID.h.
References BesDetectorID::m_TofId.
00108 {return (m_TofId);}
bool MdcID::values_ok | ( | const unsigned int | wireType, | |
const unsigned int | layer, | |||
const unsigned int | wire | |||
) | [static] |
Definition at line 12 of file MdcID.cxx.
References AXIAL_WIRE, INNER_AXIAL_LAYER_MAX, INNER_STEREO_LAYER_MAX, LAYER_MAX, OUTER_STEREO_LAYER_MAX, and STEREO_WIRE.
Referenced by wire_id().
00015 { 00016 // Check values 00017 if ( wireType != AXIAL_WIRE && wireType != STEREO_WIRE ) return false; 00018 00019 if ( wireType == STEREO_WIRE ) { 00020 if ( layer < INNER_STEREO_LAYER_MAX 00021 || layer < ( INNER_STEREO_LAYER_MAX 00022 + INNER_AXIAL_LAYER_MAX 00023 + OUTER_STEREO_LAYER_MAX ) 00024 && layer >= (INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX )) 00025 return true; 00026 } 00027 00028 if ( wireType == AXIAL_WIRE ) { 00029 if ( layer >= INNER_STEREO_LAYER_MAX 00030 && layer < ( INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX ) 00031 || layer >= ( INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX 00032 + OUTER_STEREO_LAYER_MAX ) && layer < LAYER_MAX ) 00033 00034 return true; 00035 } 00036 00037 std::cout << " ++ MdcID::values_ok++ wiretype = " << wireType << " layer = " << layer << " wire = " << wire << std::endl; 00038 00039 return false; 00040 }
int MdcID::wire | ( | const Identifier & | id | ) | [static] |
Definition at line 54 of file MdcID.cxx.
References WIRE_INDEX, and WIRE_MASK.
Referenced by MdcCalib::calDetEffi(), BesEvent::ConstructMdcTrackFromRec(), MdcConverter::convert(), MdcHoughFinder::digiToHots(), HoughValidUpdate::digiToHots(), MdcHoughFinder::digiToHots2(), HoughValidUpdate::digiToHots2(), MdcROOTGeo::DrawHits(), MdcTrkRecon::dumpDigi(), MdcMergeDups::dumpRecMdcTrack(), MdcxTrackFinder::dumpTdsHits(), MdcxTrackFinder::dumpTdsTrack(), MdcTrkRecon::dumpTdsTrack(), ValidRecMdcTrackAlg::execute(), BesTrigL1::execute(), TrkReco::execute(), MdcxCosmicSewer::execute(), MdcHoughFinder::execute(), HoughValidUpdate::execute(), MdcDedxRecon::execute(), KalFitAlg::execute(), EsTimeAlg::execute(), EventPreSelect::execute(), BhabhaPreSelect::execute(), EFSectorHits::execute(), MdcCalRecTrk::fgNoiseRatio(), MdcTrkRecon::fillEvent(), MdcNavigation::fillEvent(), MdcNavigation::fillInit(), MdcxTrackFinder::fillMcTruth(), MdcTrkRecon::fillMcTruth(), MdcNavigation::fillRecHits(), MdcNavigation::fillRecTrack(), TrkReco::FillTuple(), DedxCalibEvent::genNtuple(), MdcCalib::getCellTrkPass(), KalFitTrack::getDriftDist(), MdcRawDataProvider::getMdcDigiVec(), MdcROOTGeo::IsHit(), MdcDedxRecon::kaltrackrec(), MdcMcHitBuilder::makeMdcTruth(), TTrackManager::makeTds(), MdcHit::MdcHit(), MdcDedxRecon::mdctrackrec(), MdcxTrackFinder::MdcxHitsToHots(), MdcxCosmicSewer::MdcxHitsToHots(), MdcBuilder::pack(), MdcNavigation::poca(), PrintMcInfo::printDigi(), MdcPrintSvc::printDigi(), PrintMcInfo::printHit(), MdcPrintSvc::printMdcMcHitCol(), MdcPrintSvc::printRecMdcTrack(), MdcxTrackFinder::printTrack(), MdcxHit::process(), McTestAlg::RetrieveMdc(), MdcROOTGeo::SetHits(), MdcCalRecHit::setKalHit(), MdcAliRecHit::setKalHit(), MdcCalRecHit::setRecHit(), MdcAliRecHit::setRecHit(), RecMdcTrackCnv::TObjectToDataObject(), RecMdcKalTrackCnv::TObjectToDataObject(), RecMdcDedxCnv::TObjectToDataObject(), FTFinder::updateMdc(), and MdcDetector::Wire().
00054 { 00055 return (id.get_value() & MdcID::WIRE_MASK) >> MdcID::WIRE_INDEX; 00056 }
Identifier MdcID::wire_id | ( | int | layer, | |
int | wire | |||
) | [static] |
Definition at line 90 of file MdcID.cxx.
References AXIAL_WIRE, INNER_AXIAL_LAYER_MAX, INNER_STEREO_LAYER_MAX, OUTER_STEREO_LAYER_MAX, STEREO_WIRE, and wire_id().
00092 { 00093 if ( layer < INNER_STEREO_LAYER_MAX 00094 || layer < (INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX + OUTER_STEREO_LAYER_MAX) 00095 && layer >= (INNER_STEREO_LAYER_MAX + INNER_AXIAL_LAYER_MAX ) 00096 ) 00097 return MdcID::wire_id ( STEREO_WIRE, layer, wire ); 00098 else return MdcID::wire_id (AXIAL_WIRE, layer, wire ); 00099 00100 }
Identifier MdcID::wire_id | ( | int | wireType, | |
int | layer, | |||
int | wire | |||
) | [static] |
For a single wire.
Definition at line 77 of file MdcID.cxx.
References LAYER_INDEX, BesDetectorID::MDC_ID, BesDetectorID::MDC_INDEX, values_ok(), WIRE_INDEX, and WIRETYPE_INDEX.
Referenced by RawDataMdcMcHitCnv::createObj(), TTrackManager::makeTds(), FTFinder::makeTds(), BesRawDataWriter::SaveMdcDigits(), BesMcTruthWriter::SaveMdcTruth(), and wire_id().
00080 { 00081 assert ( values_ok(wireType, layer, wire) ); 00082 int value = (BesDetectorID::MDC_ID << MDC_INDEX) | 00083 (wireType << WIRETYPE_INDEX) | 00084 (layer << LAYER_INDEX) | 00085 (wire << WIRE_INDEX); 00086 return Identifier(value); 00087 }
int MdcID::wire_max | ( | const Identifier & | id | ) |
Definition at line 68 of file MdcID.cxx.
References AXIAL_WIRE_MAX, is_axial(), and STEREO_WIRE_MAX.
00068 { 00069 if (is_axial(id)) { 00070 return AXIAL_WIRE_MAX; 00071 } else { 00072 return STEREO_WIRE_MAX; 00073 } 00074 }
const unsigned int MdcID::AXIAL_LAYER_MAX = 18 [static, private] |
const unsigned int MdcID::AXIAL_WIRE = 0 [static, private] |
Definition at line 68 of file MdcID.h.
Referenced by getAXIAL_WIRE(), getIntID(), is_axial(), values_ok(), and wire_id().
const unsigned int MdcID::AXIAL_WIRE_MAX = 287 [static, private] |
const unsigned int BesDetectorID::EMC_ID = 0x30 [static, protected, inherited] |
Definition at line 74 of file BesDetectorID.h.
Referenced by EmcID::crystal_id(), EmcID::getIntID(), and BesDetectorID::is_emc().
const unsigned int BesDetectorID::EMC_INDEX = 24 [static, protected, inherited] |
Definition at line 75 of file BesDetectorID.h.
Referenced by EmcID::crystal_id(), BesDetectorID::emc(), EmcID::getIntID(), and BesDetectorID::is_emc().
const unsigned int BesDetectorID::EMC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int BesDetectorID::HLT_ID = 0x50 [static, protected, inherited] |
Definition at line 82 of file BesDetectorID.h.
Referenced by HltID::data_type_id(), HltID::getIntID(), and BesDetectorID::is_hlt().
const unsigned int BesDetectorID::HLT_INDEX = 24 [static, protected, inherited] |
Definition at line 83 of file BesDetectorID.h.
Referenced by HltID::data_type_id(), HltID::getIntID(), BesDetectorID::hlt(), and BesDetectorID::is_hlt().
const unsigned int BesDetectorID::HLT_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int MdcID::INNER_AXIAL_LAYER_MAX = 12 [static, private] |
const unsigned int MdcID::INNER_STEREO_LAYER_MAX = 8 [static, private] |
const unsigned int MdcID::LAYER_INDEX = 9 [static, private] |
const unsigned int MdcID::LAYER_MASK = 0x00007E00 [static, private] |
const unsigned int MdcID::LAYER_MAX = 43 [static, private] |
const unsigned int BesDetectorID::MDC_ID = 0x10 [static, protected, inherited] |
Definition at line 66 of file BesDetectorID.h.
Referenced by getIntID(), BesDetectorID::is_mdc(), and wire_id().
const unsigned int BesDetectorID::MDC_INDEX = 24 [static, protected, inherited] |
Definition at line 67 of file BesDetectorID.h.
Referenced by getIntID(), BesDetectorID::is_mdc(), BesDetectorID::mdc(), and wire_id().
const unsigned int BesDetectorID::MDC_MASK = 0xFF000000 [static, protected, inherited] |
Definition at line 68 of file BesDetectorID.h.
Referenced by getIntID(), and BesDetectorID::is_mdc().
const unsigned int BesDetectorID::MRPC_ID = 0x70 [static, protected, inherited] |
const unsigned int BesDetectorID::MRPC_INDEX = 24 [static, protected, inherited] |
Definition at line 87 of file BesDetectorID.h.
Referenced by BesDetectorID::is_mrpc(), and BesDetectorID::mrpc().
const unsigned int BesDetectorID::MRPC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int BesDetectorID::MUC_ID = 0x40 [static, protected, inherited] |
Definition at line 78 of file BesDetectorID.h.
Referenced by MucID::channel_id(), MucID::getIntID(), and BesDetectorID::is_muc().
const unsigned int BesDetectorID::MUC_INDEX = 24 [static, protected, inherited] |
Definition at line 79 of file BesDetectorID.h.
Referenced by MucID::channel_id(), MucID::getIntID(), BesDetectorID::is_muc(), and BesDetectorID::muc().
const unsigned int BesDetectorID::MUC_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int MdcID::OUTER_AXIAL_LAYER_MAX = 7 [static, private] |
const unsigned int MdcID::OUTER_STEREO_LAYER_MAX = 16 [static, private] |
const unsigned int MdcID::STEREO_LAYER_MAX = 23 [static, private] |
const unsigned int MdcID::STEREO_WIRE = 1 [static, private] |
Definition at line 69 of file MdcID.h.
Referenced by getIntID(), getSTEREO_WIRE(), values_ok(), and wire_id().
const unsigned int MdcID::STEREO_WIRE_MAX = 239 [static, private] |
const unsigned int BesDetectorID::TOF_ID = 0x20 [static, protected, inherited] |
Definition at line 70 of file BesDetectorID.h.
Referenced by TofID::cell_id(), TofID::getIntID(), and BesDetectorID::is_tof().
const unsigned int BesDetectorID::TOF_INDEX = 24 [static, protected, inherited] |
Definition at line 71 of file BesDetectorID.h.
Referenced by TofID::cell_id(), TofID::getIntID(), BesDetectorID::is_tof(), and BesDetectorID::tof().
const unsigned int BesDetectorID::TOF_MASK = 0xFF000000 [static, protected, inherited] |
const unsigned int MdcID::WIRE_INDEX = 0 [static, private] |
const unsigned int MdcID::WIRE_MASK = 0x000001FF [static, private] |
const unsigned int MdcID::WIRETYPE_INDEX = 15 [static, private] |
const unsigned int MdcID::WIRETYPE_MASK = 0x00008000 [static, private] |