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

#include <TofID.h>

Inheritance diagram for TofID:

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

 TofID ()
 constructor
 ~TofID ()
 destructor
int phi_module_max (const Identifier &id)
 Max/Min values for each field (error returns -999).
int layer_max (const Identifier &id)
 TofID ()
 constructor
 ~TofID ()
 destructor
int phi_module_max (const Identifier &id)
 Max/Min values for each field (error returns -999).
int layer_max (const Identifier &id)
 TofID ()
 constructor
 ~TofID ()
 destructor
int phi_module_max (const Identifier &id)
 Max/Min values for each field (error returns -999).
int layer_max (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 cell_id (int barrel_ec, int layer, int phi_module, int end)
 For a single crystal.
static Identifier cell_id (int value)
static value_type getIntID (int barrel_ec, int layer, int phi_module, int end)
static Identifier cell_id (int barrel_ec, int endcap, int module, int strip, int end)
 For a single MRPC.
static value_type getIntID (int barrel_ec, int endcap, int module, int strip, int end)
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getPHI_BARREL_MAX ()
static value_type getPHI_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int end)
static value_type getBARREL_EC_MRPC ()
static value_type getENDCAP_MRPC_MAX ()
static value_type getMODULE_MRPC_MAX ()
static value_type getSTRIP_MRPC_MAX ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int endcap, const unsigned int module, const unsigned int strip, const unsigned int end)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static bool is_barrel (const unsigned int barrel_ec)
static int barrel_ec (const Identifier &id)
 Values of different levels (failure returns 0).
static int layer (const Identifier &id)
static int phi_module (const Identifier &id)
static int end (const Identifier &id)
static bool is_scin (const Identifier &id)
static bool is_scin (const unsigned int barrel_ec)
static bool is_mrpc (const Identifier &id)
static bool is_mrpc (const unsigned int barrel_ec)
static int endcap (const Identifier &id)
static int module (const Identifier &id)
static int strip (const Identifier &id)
static Identifier cell_id (int barrel_ec, int layer, int phi_module, int end)
 For a single crystal.
static Identifier cell_id (int value)
static value_type getIntID (int barrel_ec, int layer, int phi_module, int end)
static Identifier cell_id (int barrel_ec, int endcap, int module, int strip, int end)
 For a single MRPC.
static value_type getIntID (int barrel_ec, int endcap, int module, int strip, int end)
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getPHI_BARREL_MAX ()
static value_type getPHI_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int end)
static value_type getBARREL_EC_MRPC ()
static value_type getENDCAP_MRPC_MAX ()
static value_type getMODULE_MRPC_MAX ()
static value_type getSTRIP_MRPC_MAX ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int endcap, const unsigned int module, const unsigned int strip, const unsigned int end)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static bool is_barrel (const unsigned int barrel_ec)
static int barrel_ec (const Identifier &id)
 Values of different levels (failure returns 0).
static int layer (const Identifier &id)
static int phi_module (const Identifier &id)
static int end (const Identifier &id)
static bool is_scin (const Identifier &id)
static bool is_scin (const unsigned int barrel_ec)
static bool is_mrpc (const Identifier &id)
static bool is_mrpc (const unsigned int barrel_ec)
static int endcap (const Identifier &id)
static int module (const Identifier &id)
static int strip (const Identifier &id)
static Identifier cell_id (int barrel_ec, int layer, int phi_module, int end)
 For a single crystal.
static Identifier cell_id (int value)
static value_type getIntID (int barrel_ec, int layer, int phi_module, int end)
static Identifier cell_id (int barrel_ec, int endcap, int module, int strip, int end)
 For a single MRPC.
static value_type getIntID (int barrel_ec, int endcap, int module, int strip, int end)
static value_type getLAYER_BARREL_MAX ()
static value_type getLAYER_ENDCAP_MAX ()
static value_type getPHI_BARREL_MAX ()
static value_type getPHI_ENDCAP_MAX ()
static value_type getBARREL_EC_MAX ()
static value_type getBARREL_EC_MIN ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int end)
static value_type getBARREL_EC_MRPC ()
static value_type getENDCAP_MRPC_MAX ()
static value_type getMODULE_MRPC_MAX ()
static value_type getSTRIP_MRPC_MAX ()
static bool values_ok (const unsigned int barrel_ec, const unsigned int endcap, const unsigned int module, const unsigned int strip, const unsigned int end)
static bool is_barrel (const Identifier &id)
 Test for barrel.
static bool is_barrel (const unsigned int barrel_ec)
static int barrel_ec (const Identifier &id)
 Values of different levels (failure returns 0).
static int layer (const Identifier &id)
static int phi_module (const Identifier &id)
static int end (const Identifier &id)
static bool is_scin (const Identifier &id)
static bool is_scin (const unsigned int barrel_ec)
static bool is_mrpc (const Identifier &id)
static bool is_mrpc (const unsigned int barrel_ec)
static int endcap (const Identifier &id)
static int module (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

◆ TofID() [1/3]

TofID::TofID ( void )

constructor

Definition at line 5 of file TofID.cxx.

5{}

◆ ~TofID() [1/3]

TofID::~TofID ( void )

destructor

Definition at line 7 of file TofID.cxx.

7{}

◆ TofID() [2/3]

TofID::TofID ( )

constructor

◆ ~TofID() [2/3]

TofID::~TofID ( )

destructor

◆ TofID() [3/3]

TofID::TofID ( )

constructor

◆ ~TofID() [3/3]

TofID::~TofID ( )

destructor

Member Function Documentation

◆ barrel_ec() [1/3]

◆ barrel_ec() [2/3]

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

Values of different levels (failure returns 0).

◆ barrel_ec() [3/3]

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

Values of different levels (failure returns 0).

◆ cell_id() [1/9]

Identifier TofID::cell_id ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

For a single MRPC.

Definition at line 137 of file TofID.cxx.

137 {
138 assert( values_ok( barrel_ec, endcap, module, strip, end ) );
139 unsigned int value = ( BesDetectorID::TOF_ID << TOF_INDEX ) |
140 ( barrel_ec << BARREL_EC_INDEX ) | ( endcap << ENDCAP_INDEX ) |
141 ( module << MODULE_INDEX ) | ( strip << STRIP_INDEX ) |
142 ( end << END_INDEX );
143 return Identifier( value );
144}
static int endcap(const Identifier &id)
Definition TofID.cxx:108
static int strip(const Identifier &id)
Definition TofID.cxx:120
static bool values_ok(const unsigned int barrel_ec, const unsigned int layer, const unsigned int phi_module, const unsigned int end)
Definition TofID.cxx:10
static int end(const Identifier &id)
Definition TofID.cxx:71
static int barrel_ec(const Identifier &id)
Values of different levels (failure returns 0).
Definition TofID.cxx:54
static int module(const Identifier &id)
Definition TofID.cxx:114

◆ cell_id() [2/9]

Identifier TofID::cell_id ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

For a single MRPC.

◆ cell_id() [3/9]

Identifier TofID::cell_id ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

For a single MRPC.

◆ cell_id() [4/9]

Identifier TofID::cell_id ( int barrel_ec,
int layer,
int phi_module,
int end )
static

For a single crystal.

Definition at line 126 of file TofID.cxx.

126 {
127 assert( values_ok( barrel_ec, layer, phi_module, end ) );
128 unsigned int value = ( BesDetectorID::TOF_ID << TOF_INDEX ) |
129 ( barrel_ec << BARREL_EC_INDEX ) | ( layer << LAYER_INDEX ) |
130 ( phi_module << PHI_INDEX ) | ( end << END_INDEX );
131 return Identifier( value );
132}
static int phi_module(const Identifier &id)
Definition TofID.cxx:65
static int layer(const Identifier &id)
Definition TofID.cxx:59

Referenced by PmtData::adc(), RawDataTofMcHitCnv::createObj(), TofCheckDigi::FillCol(), TofShower::getNeighbors(), BesRawDataWriter::SaveTofDigits(), BesMcTruthWriter::SaveTofTruth(), TofTrack::setTofData(), TofRawDataProvider::tofDataMapEmc(), TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapTof().

◆ cell_id() [5/9]

Identifier TofID::cell_id ( int barrel_ec,
int layer,
int phi_module,
int end )
static

For a single crystal.

◆ cell_id() [6/9]

Identifier TofID::cell_id ( int barrel_ec,
int layer,
int phi_module,
int end )
static

For a single crystal.

◆ cell_id() [7/9]

Identifier TofID::cell_id ( int value)
static

Definition at line 134 of file TofID.cxx.

134{ return Identifier( value ); }

◆ cell_id() [8/9]

Identifier TofID::cell_id ( int value)
static

◆ cell_id() [9/9]

Identifier TofID::cell_id ( int value)
static

◆ end() [1/3]

◆ end() [2/3]

int TofID::end ( const Identifier & id)
static

◆ end() [3/3]

int TofID::end ( const Identifier & id)
static

◆ endcap() [1/3]

int TofID::endcap ( const Identifier & id)
static

Definition at line 108 of file TofID.cxx.

108 {
109 if ( ( TofID::is_scin( id ) ) ) { return -999; }
110 return ( ( id.get_value() & TofID::ENDCAP_MASK ) >> TofID::ENDCAP_INDEX );
111}
static bool is_scin(const Identifier &id)
Definition TofID.cxx:88

Referenced by cell_id(), TofShower::energyCalib(), EsTimeAlg::execute(), TofCheckDigi::FillCol(), TofShower::findShower(), getIntID(), TofShower::getNeighbors(), TofTrack::match(), TofROOTGeo::SetHits(), TofData::setIdentify(), TofRawDataProvider::tofDataMapFull(), and values_ok().

◆ endcap() [2/3]

int TofID::endcap ( const Identifier & id)
static

◆ endcap() [3/3]

int TofID::endcap ( const Identifier & id)
static

◆ getBARREL_EC_MAX() [1/3]

unsigned int TofID::getBARREL_EC_MAX ( )
static

Definition at line 170 of file TofID.cxx.

170{ return BARREL_EC_MAX; }

Referenced by TofBuilder::initialize().

◆ getBARREL_EC_MAX() [2/3]

value_type TofID::getBARREL_EC_MAX ( )
static

◆ getBARREL_EC_MAX() [3/3]

value_type TofID::getBARREL_EC_MAX ( )
static

◆ getBARREL_EC_MIN() [1/3]

unsigned int TofID::getBARREL_EC_MIN ( )
static

Definition at line 172 of file TofID.cxx.

172{ return BARREL_EC_MIN; }

Referenced by TofBuilder::initialize().

◆ getBARREL_EC_MIN() [2/3]

value_type TofID::getBARREL_EC_MIN ( )
static

◆ getBARREL_EC_MIN() [3/3]

value_type TofID::getBARREL_EC_MIN ( )
static

◆ getBARREL_EC_MRPC() [1/3]

unsigned int TofID::getBARREL_EC_MRPC ( )
static

Definition at line 174 of file TofID.cxx.

174{ return BARREL_EC_MRPC; }

◆ getBARREL_EC_MRPC() [2/3]

value_type TofID::getBARREL_EC_MRPC ( )
static

◆ getBARREL_EC_MRPC() [3/3]

value_type TofID::getBARREL_EC_MRPC ( )
static

◆ getENDCAP_MRPC_MAX() [1/3]

unsigned int TofID::getENDCAP_MRPC_MAX ( )
static

Definition at line 176 of file TofID.cxx.

176{ return ENDCAP_MRPC_MAX; }

◆ getENDCAP_MRPC_MAX() [2/3]

value_type TofID::getENDCAP_MRPC_MAX ( )
static

◆ getENDCAP_MRPC_MAX() [3/3]

value_type TofID::getENDCAP_MRPC_MAX ( )
static

◆ getIntID() [1/6]

unsigned int TofID::getIntID ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

Definition at line 155 of file TofID.cxx.

155 {
156 unsigned int value = ( BesDetectorID::TOF_ID << TOF_INDEX ) |
157 ( barrel_ec << BARREL_EC_INDEX ) | ( endcap << ENDCAP_INDEX ) |
158 ( module << MODULE_INDEX ) | ( strip << STRIP_INDEX ) |
159 ( end << END_INDEX );
160 return value;
161}

◆ getIntID() [2/6]

value_type TofID::getIntID ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

◆ getIntID() [3/6]

value_type TofID::getIntID ( int barrel_ec,
int endcap,
int module,
int strip,
int end )
static

◆ getIntID() [4/6]

unsigned int TofID::getIntID ( int barrel_ec,
int layer,
int phi_module,
int end )
static

Definition at line 147 of file TofID.cxx.

147 {
148 unsigned int value = ( BesDetectorID::TOF_ID << TOF_INDEX ) |
149 ( barrel_ec << BARREL_EC_INDEX ) | ( layer << LAYER_INDEX ) |
150 ( phi_module << PHI_INDEX ) | ( end << END_INDEX );
151 return value;
152}

Referenced by TofBuilder::initialize(), TofTrack::setTofData(), and TofRawDataProvider::tofDataMapFull().

◆ getIntID() [5/6]

value_type TofID::getIntID ( int barrel_ec,
int layer,
int phi_module,
int end )
static

◆ getIntID() [6/6]

value_type TofID::getIntID ( int barrel_ec,
int layer,
int phi_module,
int end )
static

◆ getLAYER_BARREL_MAX() [1/3]

unsigned int TofID::getLAYER_BARREL_MAX ( )
static

Definition at line 163 of file TofID.cxx.

163{ return LAYER_BARREL_MAX; }

Referenced by TofBuilder::initialize().

◆ getLAYER_BARREL_MAX() [2/3]

value_type TofID::getLAYER_BARREL_MAX ( )
static

◆ getLAYER_BARREL_MAX() [3/3]

value_type TofID::getLAYER_BARREL_MAX ( )
static

◆ getLAYER_ENDCAP_MAX() [1/3]

unsigned int TofID::getLAYER_ENDCAP_MAX ( )
static

Definition at line 165 of file TofID.cxx.

165{ return LAYER_ENDCAP_MAX; }

Referenced by TofBuilder::initialize().

◆ getLAYER_ENDCAP_MAX() [2/3]

value_type TofID::getLAYER_ENDCAP_MAX ( )
static

◆ getLAYER_ENDCAP_MAX() [3/3]

value_type TofID::getLAYER_ENDCAP_MAX ( )
static

◆ getMODULE_MRPC_MAX() [1/3]

unsigned int TofID::getMODULE_MRPC_MAX ( )
static

Definition at line 178 of file TofID.cxx.

178{ return MODULE_MRPC_MAX; }

◆ getMODULE_MRPC_MAX() [2/3]

value_type TofID::getMODULE_MRPC_MAX ( )
static

◆ getMODULE_MRPC_MAX() [3/3]

value_type TofID::getMODULE_MRPC_MAX ( )
static

◆ getPHI_BARREL_MAX() [1/3]

unsigned int TofID::getPHI_BARREL_MAX ( )
static

◆ getPHI_BARREL_MAX() [2/3]

value_type TofID::getPHI_BARREL_MAX ( )
static

◆ getPHI_BARREL_MAX() [3/3]

value_type TofID::getPHI_BARREL_MAX ( )
static

◆ getPHI_ENDCAP_MAX() [1/3]

unsigned int TofID::getPHI_ENDCAP_MAX ( )
static

Definition at line 169 of file TofID.cxx.

169{ return PHI_ENDCAP_MAX; }

◆ getPHI_ENDCAP_MAX() [2/3]

value_type TofID::getPHI_ENDCAP_MAX ( )
static

◆ getPHI_ENDCAP_MAX() [3/3]

value_type TofID::getPHI_ENDCAP_MAX ( )
static

◆ getSTRIP_MRPC_MAX() [1/3]

unsigned int TofID::getSTRIP_MRPC_MAX ( )
static

Definition at line 180 of file TofID.cxx.

180{ return STRIP_MRPC_MAX; }

◆ getSTRIP_MRPC_MAX() [2/3]

value_type TofID::getSTRIP_MRPC_MAX ( )
static

◆ getSTRIP_MRPC_MAX() [3/3]

value_type TofID::getSTRIP_MRPC_MAX ( )
static

◆ is_barrel() [1/6]

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

Test for barrel.

Definition at line 40 of file TofID.cxx.

40 {
41 unsigned int pos = ( id.get_value() & TofID::BARREL_EC_MASK ) >> TofID::BARREL_EC_INDEX;
42 return ( pos == BARREL_EC_MAX || pos == BARREL_EC_MIN || pos == BARREL_EC_MRPC ) ? false
43 : true;
44}

Referenced by EmcRecTofDigitCalib::Convert(), TofCheckDigi::FillCol(), layer_max(), phi_module_max(), BesRawDataWriter::SaveTofDigits(), BesMcTruthWriter::SaveTofTruth(), and TofRawDataProvider::tofDataMapFull().

◆ is_barrel() [2/6]

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

Test for barrel.

◆ is_barrel() [3/6]

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

Test for barrel.

◆ is_barrel() [4/6]

bool TofID::is_barrel ( const unsigned int barrel_ec)
static

Definition at line 46 of file TofID.cxx.

46 {
47 return ( barrel_ec == BARREL_EC_MAX || barrel_ec == BARREL_EC_MIN ||
48 barrel_ec == BARREL_EC_MRPC )
49 ? false
50 : true;
51}

◆ is_barrel() [5/6]

bool TofID::is_barrel ( const unsigned int barrel_ec)
static

◆ is_barrel() [6/6]

bool TofID::is_barrel ( const unsigned int barrel_ec)
static

◆ is_mrpc() [1/6]

bool TofID::is_mrpc ( const Identifier & id)
static

◆ is_mrpc() [2/6]

bool TofID::is_mrpc ( const Identifier & id)
static

◆ is_mrpc() [3/6]

bool TofID::is_mrpc ( const Identifier & id)
static

◆ is_mrpc() [4/6]

bool TofID::is_mrpc ( const unsigned int barrel_ec)
static

Definition at line 103 of file TofID.cxx.

103 {
104 return ( barrel_ec == BARREL_EC_MRPC ) ? true : false;
105}

◆ is_mrpc() [5/6]

bool TofID::is_mrpc ( const unsigned int barrel_ec)
static

◆ is_mrpc() [6/6]

bool TofID::is_mrpc ( const unsigned int barrel_ec)
static

◆ is_scin() [1/6]

bool TofID::is_scin ( const Identifier & id)
static

Definition at line 88 of file TofID.cxx.

88 {
89 unsigned int pos = ( id.get_value() & TofID::BARREL_EC_MASK ) >> TofID::BARREL_EC_INDEX;
90 return ( pos == BARREL_EC_MRPC ) ? false : true;
91}

Referenced by endcap(), TofShower::energyCalib(), TofCheckDigi::FillCol(), TofCheckDigi::FillCol(), TofShower::getNeighbors(), module(), BesRawDataWriter::SaveTofDigits(), BesMcTruthWriter::SaveTofTruth(), Adc::setValue(), strip(), TofRawDataProvider::tofDataMapFull(), and TofRawDataProvider::tofDataMapOnlineMode().

◆ is_scin() [2/6]

bool TofID::is_scin ( const Identifier & id)
static

◆ is_scin() [3/6]

bool TofID::is_scin ( const Identifier & id)
static

◆ is_scin() [4/6]

bool TofID::is_scin ( const unsigned int barrel_ec)
static

Definition at line 93 of file TofID.cxx.

93 {
94 return ( barrel_ec < BARREL_EC_MRPC ) ? true : false;
95}

◆ is_scin() [5/6]

bool TofID::is_scin ( const unsigned int barrel_ec)
static

◆ is_scin() [6/6]

bool TofID::is_scin ( const unsigned int barrel_ec)
static

◆ layer() [1/3]

◆ layer() [2/3]

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

◆ layer() [3/3]

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

◆ layer_max() [1/3]

int TofID::layer_max ( const Identifier & id)

Definition at line 76 of file TofID.cxx.

76 {
77 if ( is_barrel( id ) ) { return LAYER_BARREL_MAX; }
78 else { return LAYER_ENDCAP_MAX; }
79}
static bool is_barrel(const Identifier &id)
Test for barrel.
Definition TofID.cxx:40

◆ layer_max() [2/3]

int TofID::layer_max ( const Identifier & id)

◆ layer_max() [3/3]

int TofID::layer_max ( const Identifier & id)

◆ module() [1/3]

int TofID::module ( const Identifier & id)
static

Definition at line 114 of file TofID.cxx.

114 {
115 if ( ( TofID::is_scin( id ) ) ) { return -999; }
116 return ( ( id.get_value() & TofID::MODULE_MASK ) >> TofID::MODULE_INDEX );
117}

Referenced by cell_id(), TofShower::energyCalib(), EventAssemblyAlg::execute(), TofCheckDigi::FillCol(), TofShower::findShower(), getIntID(), TofShower::getNeighbors(), TofTrack::match(), TofROOTGeo::SetHits(), TofData::setIdentify(), TofRawDataProvider::tofDataMapFull(), and values_ok().

◆ module() [2/3]

int TofID::module ( const Identifier & id)
static

◆ module() [3/3]

int TofID::module ( const Identifier & id)
static

◆ phi_module() [1/3]

◆ phi_module() [2/3]

int TofID::phi_module ( const Identifier & id)
static

◆ phi_module() [3/3]

int TofID::phi_module ( const Identifier & id)
static

◆ phi_module_max() [1/3]

int TofID::phi_module_max ( const Identifier & id)

Max/Min values for each field (error returns -999).

Definition at line 82 of file TofID.cxx.

82 {
83 if ( is_barrel( id ) ) { return PHI_BARREL_MAX; }
84 else { return PHI_ENDCAP_MAX; }
85}

◆ phi_module_max() [2/3]

int TofID::phi_module_max ( const Identifier & id)

Max/Min values for each field (error returns -999).

◆ phi_module_max() [3/3]

int TofID::phi_module_max ( const Identifier & id)

Max/Min values for each field (error returns -999).

◆ strip() [1/3]

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

Definition at line 120 of file TofID.cxx.

120 {
121 if ( ( TofID::is_scin( id ) ) ) { return -999; }
122 return ( ( id.get_value() & TofID::STRIP_MASK ) >> TofID::STRIP_INDEX );
123}

Referenced by cell_id(), TofShower::energyCalib(), TofCheckDigi::FillCol(), TofShower::findShower(), getIntID(), TofShower::getNeighbors(), TofTrack::match(), TofROOTGeo::SetHits(), TofData::setIdentify(), TofRawDataProvider::tofDataMapFull(), and values_ok().

◆ strip() [2/3]

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

◆ strip() [3/3]

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

◆ values_ok() [1/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int endcap,
const unsigned int module,
const unsigned int strip,
const unsigned int end )
static

Definition at line 27 of file TofID.cxx.

29 {
30 if ( barrel_ec != BARREL_EC_MRPC ) return false;
31 if ( endcap > ENDCAP_MRPC_MAX ) return false;
32 if ( module > MODULE_MRPC_MAX ) return false;
33 if ( strip > STRIP_MRPC_MAX ) return false;
34 if ( end > 1 ) return false;
35
36 return true;
37}

◆ values_ok() [2/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int endcap,
const unsigned int module,
const unsigned int strip,
const unsigned int end )
static

◆ values_ok() [3/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int endcap,
const unsigned int module,
const unsigned int strip,
const unsigned int end )
static

◆ values_ok() [4/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int layer,
const unsigned int phi_module,
const unsigned int end )
static

Definition at line 10 of file TofID.cxx.

11 {
12 if ( barrel_ec > BARREL_EC_MAX ) return false;
13 if ( BARREL_EC_MIN == barrel_ec || BARREL_EC_MIN == barrel_ec )
14 {
15 if ( layer > LAYER_ENDCAP_MAX ) return false;
16 }
17 else
18 {
19 if ( layer > LAYER_BARREL_MAX ) return false;
20 }
21 if ( end > 1 ) return false;
22
23 return true;
24}

Referenced by cell_id(), and cell_id().

◆ values_ok() [5/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int layer,
const unsigned int phi_module,
const unsigned int end )
static

◆ values_ok() [6/6]

bool TofID::values_ok ( const unsigned int barrel_ec,
const unsigned int layer,
const unsigned int phi_module,
const unsigned int end )
static

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