BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MucID Class Reference

#include <MucID.h>

Inheritance diagram for MucID:

Public Types

typedef Identifier::size_type size_type
typedef Identifier::value_type value_type
typedef Identifier::size_type size_type
typedef Identifier::value_type value_type
typedef Identifier::size_type size_type
typedef Identifier::value_type value_type

Public Member Functions

 MucID ()
 constructor
 ~MucID ()
 destructor
int segment_max (const Identifier &id)
 Max/Min values for each field.
int layer_max (const Identifier &id)
int channel_max (const Identifier &id)
int getSegNum (const Identifier &id)
int getGapNum (const Identifier &id)
int getStripNum (const Identifier &id)
 MucID ()
 constructor
 ~MucID ()
 destructor
int segment_max (const Identifier &id)
 Max/Min values for each field.
int layer_max (const Identifier &id)
int channel_max (const Identifier &id)
int getSegNum (const Identifier &id)
int getGapNum (const Identifier &id)
int getStripNum (const Identifier &id)
 MucID ()
 constructor
 ~MucID ()
 destructor
int segment_max (const Identifier &id)
 Max/Min values for each field.
int layer_max (const Identifier &id)
int channel_max (const Identifier &id)
int getSegNum (const Identifier &id)
int getGapNum (const Identifier &id)
int getStripNum (const Identifier &id)
Public Member Functions inherited from BesDetectorID
 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
 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

Static Public Member Functions

static Identifier channel_id (int barrel_ec, int segment, int layer, int channel)
 For a single crystal.
static value_type getIntID (int barrel_ec, int segment, int layer, int channel)
static value_type getSEGMENT_BARREL_MAX ()
static value_type getSEGMENT_ENDCAP_MAX ()
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getCHANNEL_BARREL_MAX ()
static value_type getCHANNEL_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static value_type getPartNum ()
static value_type getSegNum (int part)
static value_type getGapNum (int part)
static value_type getStripNum (int part, int seg, int gap)
static value_type getSegMax ()
static value_type getGapMax ()
static value_type getStripMax ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int segment, const unsigned int layer, const unsigned int channel)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static int barrel_ec (const Identifier &id)
 Values of different levels.
static int segment (const Identifier &id)
static int layer (const Identifier &id)
static int channel (const Identifier &id)
static int part (const Identifier &id)
static int seg (const Identifier &id)
static int gap (const Identifier &id)
static int strip (const Identifier &id)
static Identifier channel_id (int barrel_ec, int segment, int layer, int channel)
 For a single crystal.
static value_type getIntID (int barrel_ec, int segment, int layer, int channel)
static value_type getSEGMENT_BARREL_MAX ()
static value_type getSEGMENT_ENDCAP_MAX ()
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getCHANNEL_BARREL_MAX ()
static value_type getCHANNEL_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static value_type getPartNum ()
static value_type getSegNum (int part)
static value_type getGapNum (int part)
static value_type getStripNum (int part, int seg, int gap)
static value_type getSegMax ()
static value_type getGapMax ()
static value_type getStripMax ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int segment, const unsigned int layer, const unsigned int channel)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static int barrel_ec (const Identifier &id)
 Values of different levels.
static int segment (const Identifier &id)
static int layer (const Identifier &id)
static int channel (const Identifier &id)
static int part (const Identifier &id)
static int seg (const Identifier &id)
static int gap (const Identifier &id)
static int strip (const Identifier &id)
static Identifier channel_id (int barrel_ec, int segment, int layer, int channel)
 For a single crystal.
static value_type getIntID (int barrel_ec, int segment, int layer, int channel)
static value_type getSEGMENT_BARREL_MAX ()
static value_type getSEGMENT_ENDCAP_MAX ()
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getCHANNEL_BARREL_MAX ()
static value_type getCHANNEL_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static value_type getPartNum ()
static value_type getSegNum (int part)
static value_type getGapNum (int part)
static value_type getStripNum (int part, int seg, int gap)
static value_type getSegMax ()
static value_type getGapMax ()
static value_type getStripMax ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int segment, const unsigned int layer, const unsigned int channel)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static int barrel_ec (const Identifier &id)
 Values of different levels.
static int segment (const Identifier &id)
static int layer (const Identifier &id)
static int channel (const Identifier &id)
static int part (const Identifier &id)
static int seg (const Identifier &id)
static int gap (const Identifier &id)
static int strip (const Identifier &id)

Additional Inherited Members

Protected Member Functions inherited from BesDetectorID
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
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 inherited from BesDetectorID
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

Member Typedef Documentation

◆ size_type [1/3]

◆ size_type [2/3]

◆ size_type [3/3]

◆ value_type [1/3]

◆ value_type [2/3]

◆ value_type [3/3]

Constructor & Destructor Documentation

◆ MucID() [1/3]

MucID::MucID ( void )

constructor

Definition at line 7 of file MucID.cxx.

7{}

◆ ~MucID() [1/3]

MucID::~MucID ( void )

destructor

Definition at line 9 of file MucID.cxx.

9{}

◆ MucID() [2/3]

MucID::MucID ( )

constructor

◆ ~MucID() [2/3]

MucID::~MucID ( )

destructor

◆ MucID() [3/3]

MucID::MucID ( )

constructor

◆ ~MucID() [3/3]

MucID::~MucID ( )

destructor

Member Function Documentation

◆ barrel_ec() [1/3]

int MucID::barrel_ec ( const Identifier & id)
static

Values of different levels.

Definition at line 38 of file MucID.cxx.

38 {
39 return ( ( id.get_value() & MucID::BARREL_EC_MASK ) >> MucID::BARREL_EC_INDEX );
40}

Referenced by channel_id(), DQA_MUC::execute(), MucRecRoadFinder::execute(), MucRecTrkExt::execute(), ExtMucKal::GapHit(), getIntID(), PrintMcInfo::printDigi(), PrintMcInfo::printHit(), MucCalibMgr::ReadEvent(), and values_ok().

◆ barrel_ec() [2/3]

int MucID::barrel_ec ( const Identifier & id)
static

Values of different levels.

◆ barrel_ec() [3/3]

int MucID::barrel_ec ( const Identifier & id)
static

Values of different levels.

◆ channel() [1/3]

int MucID::channel ( const Identifier & id)
static

Definition at line 68 of file MucID.cxx.

68 {
69 return ( id.get_value() & MucID::CHANNEL_MASK ) >> MucID::CHANNEL_INDEX;
70}

Referenced by channel_id(), DQA_MUC::execute(), MucRecRoadFinder::execute(), MucRecTrkExt::execute(), getIntID(), MucCalibMgr::ReadEvent(), and values_ok().

◆ channel() [2/3]

int MucID::channel ( const Identifier & id)
static

◆ channel() [3/3]

int MucID::channel ( const Identifier & id)
static

◆ channel_id() [1/3]

Identifier MucID::channel_id ( int barrel_ec,
int segment,
int layer,
int channel )
static

For a single crystal.

Definition at line 114 of file MucID.cxx.

114 {
115 assert( values_ok( barrel_ec, segment, layer, channel ) );
116 value_type value = ( MUC_ID << MUC_INDEX ) | ( barrel_ec << BARREL_EC_INDEX ) |
117 ( segment << SEGMENT_INDEX ) | ( layer << LAYER_INDEX ) |
118 ( channel << CHANNEL_INDEX );
119 return Identifier( value );
120}
static int barrel_ec(const Identifier &id)
Values of different levels.
Definition MucID.cxx:38
static int layer(const Identifier &id)
Definition MucID.cxx:58
static bool values_ok(const unsigned int barrel_ec, const unsigned int segment, const unsigned int layer, const unsigned int channel)
Definition MucID.cxx:12
static int channel(const Identifier &id)
Definition MucID.cxx:68
static int segment(const Identifier &id)
Definition MucID.cxx:48

Referenced by RawDataMucMcHitCnv::createObj(), MucGeoGeneral::FindIntersectGaps(), MucGeoGeneral::FindIntersectStrips(), MucGeoGeneral::FindIntersectStrips(), MucGeoGeneral::GetGap(), MucGeoGeneral::GetGap(), MucRecHitContainer::GetHitByIdentifier(), MucGeoGeneral::GetStrip(), MucGeoGeneral::InitFromASCII(), MucGeoGeneral::InitFromXML(), MucRecHit::MucRecHit(), BesRawDataWriter::SaveMucDigits(), and BesMcTruthWriter::SaveMucTruth().

◆ channel_id() [2/3]

Identifier MucID::channel_id ( int barrel_ec,
int segment,
int layer,
int channel )
static

For a single crystal.

◆ channel_id() [3/3]

Identifier MucID::channel_id ( int barrel_ec,
int segment,
int layer,
int channel )
static

For a single crystal.

◆ channel_max() [1/3]

int MucID::channel_max ( const Identifier & id)

Definition at line 102 of file MucID.cxx.

102 {
103 if ( this->is_barrel( id ) ) { return CHANNEL_BARREL_NUM_MAX - 1; }
104 else { return CHANNEL_ENDCAP_NUM_MAX - 1; }
105}
static bool is_barrel(const Identifier &id)
Test for barrel.
Definition MucID.cxx:32

◆ channel_max() [2/3]

int MucID::channel_max ( const Identifier & id)

◆ channel_max() [3/3]

int MucID::channel_max ( const Identifier & id)

◆ gap() [1/3]

int MucID::gap ( const Identifier & id)
static

◆ gap() [2/3]

int MucID::gap ( const Identifier & id)
static

◆ gap() [3/3]

int MucID::gap ( const Identifier & id)
static

◆ getBARREL_EC_MAX() [1/3]

unsigned int MucID::getBARREL_EC_MAX ( )
static

Definition at line 194 of file MucID.cxx.

194{ return BARREL_EC_NUM - 1; }

◆ getBARREL_EC_MAX() [2/3]

value_type MucID::getBARREL_EC_MAX ( )
static

◆ getBARREL_EC_MAX() [3/3]

value_type MucID::getBARREL_EC_MAX ( )
static

◆ getBARREL_EC_MIN() [1/3]

unsigned int MucID::getBARREL_EC_MIN ( )
static

Definition at line 197 of file MucID.cxx.

197{ return 0; }

◆ getBARREL_EC_MIN() [2/3]

value_type MucID::getBARREL_EC_MIN ( )
static

◆ getBARREL_EC_MIN() [3/3]

value_type MucID::getBARREL_EC_MIN ( )
static

◆ getCHANNEL_BARREL_MAX() [1/3]

unsigned int MucID::getCHANNEL_BARREL_MAX ( )
static

Definition at line 188 of file MucID.cxx.

188{ return CHANNEL_BARREL_NUM_MAX; }

◆ getCHANNEL_BARREL_MAX() [2/3]

value_type MucID::getCHANNEL_BARREL_MAX ( )
static

◆ getCHANNEL_BARREL_MAX() [3/3]

value_type MucID::getCHANNEL_BARREL_MAX ( )
static

◆ getCHANNEL_ENDCAP_MAX() [1/3]

unsigned int MucID::getCHANNEL_ENDCAP_MAX ( )
static

Definition at line 191 of file MucID.cxx.

191{ return CHANNEL_ENDCAP_NUM_MAX; }

◆ getCHANNEL_ENDCAP_MAX() [2/3]

value_type MucID::getCHANNEL_ENDCAP_MAX ( )
static

◆ getCHANNEL_ENDCAP_MAX() [3/3]

value_type MucID::getCHANNEL_ENDCAP_MAX ( )
static

◆ getGapMax() [1/3]

◆ getGapMax() [2/3]

value_type MucID::getGapMax ( )
static

◆ getGapMax() [3/3]

value_type MucID::getGapMax ( )
static

◆ getGapNum() [1/6]

int MucID::getGapNum ( const Identifier & id)

Definition at line 96 of file MucID.cxx.

96 {
97 if ( this->is_barrel( id ) ) { return LAYER_BARREL_NUM; }
98 else { return LAYER_ENDCAP_NUM; }
99}

◆ getGapNum() [2/6]

int MucID::getGapNum ( const Identifier & id)

◆ getGapNum() [3/6]

int MucID::getGapNum ( const Identifier & id)

◆ getGapNum() [4/6]

◆ getGapNum() [5/6]

value_type MucID::getGapNum ( int part)
static

◆ getGapNum() [6/6]

value_type MucID::getGapNum ( int part)
static

◆ getIntID() [1/3]

unsigned int MucID::getIntID ( int barrel_ec,
int segment,
int layer,
int channel )
static

Definition at line 123 of file MucID.cxx.

123 {
124 value_type value = ( MUC_ID << MUC_INDEX ) | ( barrel_ec << BARREL_EC_INDEX ) |
125 ( segment << SEGMENT_INDEX ) | ( layer << LAYER_INDEX ) |
126 ( channel << CHANNEL_INDEX );
127 return value;
128}

Referenced by MucBuilder::initialize().

◆ getIntID() [2/3]

value_type MucID::getIntID ( int barrel_ec,
int segment,
int layer,
int channel )
static

◆ getIntID() [3/3]

value_type MucID::getIntID ( int barrel_ec,
int segment,
int layer,
int channel )
static

◆ getLAYER_BARREL_MAX() [1/3]

unsigned int MucID::getLAYER_BARREL_MAX ( )
static

Definition at line 182 of file MucID.cxx.

182{ return LAYER_BARREL_NUM - 1; }

◆ getLAYER_BARREL_MAX() [2/3]

value_type MucID::getLAYER_BARREL_MAX ( )
static

◆ getLAYER_BARREL_MAX() [3/3]

value_type MucID::getLAYER_BARREL_MAX ( )
static

◆ getLAYER_ENDCAP_MAX() [1/3]

unsigned int MucID::getLAYER_ENDCAP_MAX ( )
static

Definition at line 185 of file MucID.cxx.

185{ return LAYER_ENDCAP_NUM - 1; }

◆ getLAYER_ENDCAP_MAX() [2/3]

value_type MucID::getLAYER_ENDCAP_MAX ( )
static

◆ getLAYER_ENDCAP_MAX() [3/3]

value_type MucID::getLAYER_ENDCAP_MAX ( )
static

◆ getPartNum() [1/3]

◆ getPartNum() [2/3]

value_type MucID::getPartNum ( )
static

◆ getPartNum() [3/3]

value_type MucID::getPartNum ( )
static

◆ getSegMax() [1/3]

unsigned int MucID::getSegMax ( )
static

Definition at line 158 of file MucID.cxx.

158 {
159 if ( SEGMENT_BARREL_NUM > SEGMENT_ENDCAP_NUM ) return SEGMENT_BARREL_NUM;
160 else return SEGMENT_ENDCAP_NUM;
161}

Referenced by MucGeoGeneral::Init().

◆ getSegMax() [2/3]

value_type MucID::getSegMax ( )
static

◆ getSegMax() [3/3]

value_type MucID::getSegMax ( )
static

◆ getSEGMENT_BARREL_MAX() [1/3]

unsigned int MucID::getSEGMENT_BARREL_MAX ( )
static

Definition at line 176 of file MucID.cxx.

176{ return SEGMENT_BARREL_NUM - 1; }

◆ getSEGMENT_BARREL_MAX() [2/3]

value_type MucID::getSEGMENT_BARREL_MAX ( )
static

◆ getSEGMENT_BARREL_MAX() [3/3]

value_type MucID::getSEGMENT_BARREL_MAX ( )
static

◆ getSEGMENT_ENDCAP_MAX() [1/3]

unsigned int MucID::getSEGMENT_ENDCAP_MAX ( )
static

Definition at line 179 of file MucID.cxx.

179{ return SEGMENT_ENDCAP_NUM - 1; }

◆ getSEGMENT_ENDCAP_MAX() [2/3]

value_type MucID::getSEGMENT_ENDCAP_MAX ( )
static

◆ getSEGMENT_ENDCAP_MAX() [3/3]

value_type MucID::getSEGMENT_ENDCAP_MAX ( )
static

◆ getSegNum() [1/6]

int MucID::getSegNum ( const Identifier & id)

Definition at line 84 of file MucID.cxx.

84 {
85 if ( is_barrel( id ) ) { return SEGMENT_BARREL_NUM; }
86 else { return SEGMENT_ENDCAP_NUM; }
87}

◆ getSegNum() [2/6]

int MucID::getSegNum ( const Identifier & id)

◆ getSegNum() [3/6]

int MucID::getSegNum ( const Identifier & id)

◆ getSegNum() [4/6]

◆ getSegNum() [5/6]

value_type MucID::getSegNum ( int part)
static

◆ getSegNum() [6/6]

value_type MucID::getSegNum ( int part)
static

◆ getStripMax() [1/3]

unsigned int MucID::getStripMax ( )
static

Definition at line 170 of file MucID.cxx.

170 {
171 if ( CHANNEL_BARREL_NUM_MAX > CHANNEL_ENDCAP_NUM_MAX ) return CHANNEL_BARREL_NUM_MAX;
172 else return CHANNEL_ENDCAP_NUM_MAX;
173}

◆ getStripMax() [2/3]

value_type MucID::getStripMax ( )
static

◆ getStripMax() [3/3]

value_type MucID::getStripMax ( )
static

◆ getStripNum() [1/6]

int MucID::getStripNum ( const Identifier & id)

Definition at line 108 of file MucID.cxx.

108 {
109 if ( this->is_barrel( id ) ) { return CHANNEL_BARREL_LAYER_NUM[this->gap( id )]; }
110 else { return CHANNEL_ENDCAP_NUM_MAX; }
111}
static int gap(const Identifier &id)
Definition MucID.cxx:63

◆ getStripNum() [2/6]

int MucID::getStripNum ( const Identifier & id)

◆ getStripNum() [3/6]

int MucID::getStripNum ( const Identifier & id)

◆ getStripNum() [4/6]

unsigned int MucID::getStripNum ( int part,
int seg,
int gap )
static

Definition at line 148 of file MucID.cxx.

148 {
149 if ( part == 1 )
150 {
151 if ( seg == 2 ) return CHANNEL_BARREL_LAYER_NUM[gap];
152 else return CHANNEL_BARREL_LAYER_NUM[gap];
153 }
154 else { return CHANNEL_ENDCAP_NUM_MAX; }
155}
static int seg(const Identifier &id)
Definition MucID.cxx:53

Referenced by MucRecHitContainer::AddHit().

◆ getStripNum() [5/6]

value_type MucID::getStripNum ( int part,
int seg,
int gap )
static

◆ getStripNum() [6/6]

value_type MucID::getStripNum ( int part,
int seg,
int gap )
static

◆ is_barrel() [1/3]

bool MucID::is_barrel ( const Identifier & id)
static

Test for barrel.

Definition at line 32 of file MucID.cxx.

32 {
33 unsigned int pos = ( id.get_value() & MucID::BARREL_EC_MASK ) >> MucID::BARREL_EC_INDEX;
34 return ( pos == 0 || pos == BARREL_EC_NUM - 1 ) ? false : true;
35}

Referenced by channel_max(), getGapNum(), getSegNum(), getStripNum(), layer_max(), and segment_max().

◆ is_barrel() [2/3]

bool MucID::is_barrel ( const Identifier & id)
static

Test for barrel.

◆ is_barrel() [3/3]

bool MucID::is_barrel ( const Identifier & id)
static

Test for barrel.

◆ layer() [1/3]

int MucID::layer ( const Identifier & id)
static

Definition at line 58 of file MucID.cxx.

58 {
59 return ( id.get_value() & MucID::LAYER_MASK ) >> MucID::LAYER_INDEX;
60}

Referenced by channel_id(), DQA_MUC::execute(), MucRecRoadFinder::execute(), MucRecTrkExt::execute(), ExtMucKal::GapHit(), getIntID(), PrintMcInfo::printDigi(), PrintMcInfo::printHit(), MucCalibMgr::ReadEvent(), and values_ok().

◆ layer() [2/3]

int MucID::layer ( const Identifier & id)
static

◆ layer() [3/3]

int MucID::layer ( const Identifier & id)
static

◆ layer_max() [1/3]

int MucID::layer_max ( const Identifier & id)

Definition at line 90 of file MucID.cxx.

90 {
91 if ( this->is_barrel( id ) ) { return LAYER_BARREL_NUM - 1; }
92 else { return LAYER_ENDCAP_NUM - 1; }
93}

◆ layer_max() [2/3]

int MucID::layer_max ( const Identifier & id)

◆ layer_max() [3/3]

int MucID::layer_max ( const Identifier & id)

◆ part() [1/3]

int MucID::part ( const Identifier & id)
static

◆ part() [2/3]

int MucID::part ( const Identifier & id)
static

◆ part() [3/3]

int MucID::part ( const Identifier & id)
static

◆ seg() [1/3]

◆ seg() [2/3]

int MucID::seg ( const Identifier & id)
static

◆ seg() [3/3]

int MucID::seg ( const Identifier & id)
static

◆ segment() [1/3]

int MucID::segment ( const Identifier & id)
static

Definition at line 48 of file MucID.cxx.

48 {
49 return ( id.get_value() & MucID::SEGMENT_MASK ) >> MucID::SEGMENT_INDEX;
50}

Referenced by channel_id(), DQA_MUC::execute(), MucRecRoadFinder::execute(), MucRecTrkExt::execute(), ExtMucKal::GapHit(), getIntID(), PrintMcInfo::printDigi(), PrintMcInfo::printHit(), MucCalibMgr::ReadEvent(), and values_ok().

◆ segment() [2/3]

int MucID::segment ( const Identifier & id)
static

◆ segment() [3/3]

int MucID::segment ( const Identifier & id)
static

◆ segment_max() [1/3]

int MucID::segment_max ( const Identifier & id)

Max/Min values for each field.

Definition at line 78 of file MucID.cxx.

78 {
79 if ( is_barrel( id ) ) { return SEGMENT_BARREL_NUM - 1; }
80 else { return SEGMENT_ENDCAP_NUM - 1; }
81}

◆ segment_max() [2/3]

int MucID::segment_max ( const Identifier & id)

Max/Min values for each field.

◆ segment_max() [3/3]

int MucID::segment_max ( const Identifier & id)

Max/Min values for each field.

◆ strip() [1/3]

int MucID::strip ( const Identifier & id)
static

◆ strip() [2/3]

int MucID::strip ( const Identifier & id)
static

◆ strip() [3/3]

int MucID::strip ( const Identifier & id)
static

◆ values_ok() [1/3]

bool MucID::values_ok ( const unsigned int barrel_ec,
const unsigned int segment,
const unsigned int layer,
const unsigned int channel )
static

Definition at line 12 of file MucID.cxx.

13 {
14 // Check values
15 if ( barrel_ec >= BARREL_EC_NUM ) return false;
16 if ( barrel_ec == 0 || barrel_ec == BARREL_EC_NUM - 1 )
17 {
18 if ( segment >= SEGMENT_ENDCAP_NUM ) return false;
19 if ( layer >= LAYER_ENDCAP_NUM ) return false;
20 if ( channel >= CHANNEL_ENDCAP_NUM_MAX ) return false;
21 }
22 else
23 {
24 if ( segment >= SEGMENT_BARREL_NUM ) return false;
25 if ( layer >= LAYER_BARREL_NUM ) return false;
26 if ( channel >= CHANNEL_BARREL_LAYER_NUM[layer] ) return false;
27 }
28 return true;
29}

Referenced by channel_id().

◆ values_ok() [2/3]

bool MucID::values_ok ( const unsigned int barrel_ec,
const unsigned int segment,
const unsigned int layer,
const unsigned int channel )
static

◆ values_ok() [3/3]

bool MucID::values_ok ( const unsigned int barrel_ec,
const unsigned int segment,
const unsigned int layer,
const unsigned int channel )
static

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