Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pseudo strip (in EB == strip) [2:0] channel in pseudostrip Index starts from 1. More...
#include <EcalTriggerElectronicsId.h>
Public Member Functions | |
int | channelId () const |
get the channel id More... | |
EcalTriggerElectronicsId () | |
EcalTriggerElectronicsId (int tccid, int towerid, int pseudostripid, int channelid) | |
EcalTriggerElectronicsId (uint32_t) | |
int | linearIndex () const |
get a fast, compact, unique index for linear lookups (maximum value = 1048575) More... | |
int | operator!= (const EcalTriggerElectronicsId &id) const |
uint32_t | operator() () |
int | operator< (const EcalTriggerElectronicsId &id) const |
Compare the id to another id for use in a map. More... | |
int | operator== (const EcalTriggerElectronicsId &id) const |
int | pseudoStripId () const |
get the tower id More... | |
uint32_t | rawId () const |
EcalSubdetector | subdet () const |
get the subdet More... | |
int | tccId () const |
get the DCC (Ecal Local DCC value not global one) id More... | |
int | ttId () const |
get the tower id More... | |
int | zside () const |
get the zside() +1 / -1 More... | |
Static Public Attributes | |
static const int | MAX_CHANNELID = 5 |
static const int | MAX_PSEUDOSTRIPID = 5 |
static const int | MAX_TCCID = 108 |
static const int | MAX_TCCID_EBM = 54 |
static const int | MAX_TCCID_EBP = 72 |
static const int | MAX_TCCID_EEM = 36 |
static const int | MAX_TCCID_EEP = 108 |
static const int | MAX_TTID = 68 |
static const int | MIN_CHANNELID = 1 |
static const int | MIN_PSEUDOSTRIPID = 1 |
static const int | MIN_TCCID = 1 |
static const int | MIN_TCCID_EBM = 37 |
static const int | MIN_TCCID_EBP = 55 |
static const int | MIN_TCCID_EEM = 1 |
static const int | MIN_TCCID_EEP = 73 |
static const int | MIN_TTID = 1 |
static const int | TCCID_PHI0_EBM = 37 |
static const int | TCCID_PHI0_EBP = 55 |
static const int | TCCID_PHI0_EEM_IN = 1 |
static const int | TCCID_PHI0_EEM_OUT = 19 |
static const int | TCCID_PHI0_EEP_IN = 91 |
static const int | TCCID_PHI0_EEP_OUT = 73 |
Private Attributes | |
uint32_t | EcalTriggerElectronicsId_ |
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pseudo strip (in EB == strip) [2:0] channel in pseudostrip Index starts from 1.
Definition at line 18 of file EcalTriggerElectronicsId.h.
EcalTriggerElectronicsId::EcalTriggerElectronicsId | ( | ) |
Default constructor – invalid value
Definition at line 6 of file EcalTriggerElectronicsId.cc.
References EcalTriggerElectronicsId_.
EcalTriggerElectronicsId::EcalTriggerElectronicsId | ( | uint32_t | id | ) |
from raw
Definition at line 8 of file EcalTriggerElectronicsId.cc.
References EcalTriggerElectronicsId_, and triggerObjects_cff::id.
EcalTriggerElectronicsId::EcalTriggerElectronicsId | ( | int | tccid, |
int | towerid, | ||
int | pseudostripid, | ||
int | channelid | ||
) |
Constructor from tcc,tt,pseudostrip,channel
Definition at line 10 of file EcalTriggerElectronicsId.cc.
References EcalTriggerElectronicsId_, Exception, MAX_CHANNELID, MAX_PSEUDOSTRIPID, MAX_TCCID, MAX_TTID, MIN_CHANNELID, MIN_PSEUDOSTRIPID, MIN_TCCID, and MIN_TTID.
|
inline |
get the channel id
Definition at line 37 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
Referenced by EcalTPGParamBuilder::analyze().
|
inline |
get a fast, compact, unique index for linear lookups (maximum value = 1048575)
Definition at line 39 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
|
inline |
Non-Equality operator
Definition at line 77 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
|
inline |
|
inline |
Compare the id to another id for use in a map.
Definition at line 81 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
|
inline |
Equality operator
Definition at line 73 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
|
inline |
get the tower id
Definition at line 35 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
Referenced by EcalTPGParamBuilder::analyze(), EcalTrigPrimFunctionalAlgo::findStripNr(), and EcalElectronicsMapping::MapItem::pseudoStripId().
|
inline |
Definition at line 28 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
Referenced by EcalTPGParamBuilder::analyze(), EcalTrivialConditionRetriever::getMappingFromConfiguration(), EcalMappingElectronicsHandler::getNewObjects(), ecaldqm::binning::idFromName(), EcalFenixStrip::process(), and EcalEBTrigPrimTestAlgo::run().
EcalSubdetector EcalTriggerElectronicsId::subdet | ( | ) | const |
get the subdet
Definition at line 32 of file EcalTriggerElectronicsId.cc.
References EcalBarrel, EcalEndcap, MAX_TCCID_EBM, MAX_TCCID_EBP, MIN_TCCID_EBM, MIN_TCCID_EBP, and tccId().
Referenced by EcalElectronicsMapping::getTriggerElectronicsId(), and EcalTPCondAnalyzer::printSTRIP().
|
inline |
get the DCC (Ecal Local DCC value not global one) id
Definition at line 31 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
Referenced by ecaldqm::binning::channelName(), ecaldqm::TrigPrimTask::runOnRealTPs(), subdet(), EcalElectronicsMapping::MapItem::tccId(), and zside().
|
inline |
get the tower id
Definition at line 33 of file EcalTriggerElectronicsId.h.
References EcalTriggerElectronicsId_.
Referenced by ecaldqm::binning::channelName(), ecaldqm::TrigPrimTask::runOnRealTPs(), and EcalElectronicsMapping::MapItem::ttId().
int EcalTriggerElectronicsId::zside | ( | ) | const |
get the zside() +1 / -1
Definition at line 19 of file EcalTriggerElectronicsId.cc.
References MAX_TCCID_EBM, MAX_TCCID_EBP, MAX_TCCID_EEM, MAX_TCCID_EEP, MIN_TCCID_EBM, MIN_TCCID_EBP, MIN_TCCID_EEM, MIN_TCCID_EEP, and tccId().
|
private |
Definition at line 86 of file EcalTriggerElectronicsId.h.
Referenced by channelId(), EcalTriggerElectronicsId(), linearIndex(), operator!=(), operator()(), operator<(), operator==(), pseudoStripId(), rawId(), tccId(), and ttId().
|
static |
Definition at line 53 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 51 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 47 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId(), EcalElectronicsMapper::fillMaps(), and EcalElectronicsMapper::resetPointers().
|
static |
Definition at line 59 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 61 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 57 of file EcalTriggerElectronicsId.h.
Referenced by EcalElectronicsMapper::fillMaps(), and zside().
|
static |
Definition at line 63 of file EcalTriggerElectronicsId.h.
Referenced by EcalElectronicsMapper::fillMaps(), and zside().
|
static |
Definition at line 49 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 54 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 52 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 48 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 58 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 60 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 56 of file EcalTriggerElectronicsId.h.
Referenced by EcalElectronicsMapper::fillMaps(), and zside().
|
static |
Definition at line 62 of file EcalTriggerElectronicsId.h.
Referenced by EcalElectronicsMapper::fillMaps(), and zside().
|
static |
Definition at line 50 of file EcalTriggerElectronicsId.h.
Referenced by EcalTriggerElectronicsId().
|
static |
Definition at line 69 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 70 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 65 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 66 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 67 of file EcalTriggerElectronicsId.h.
|
static |
Definition at line 68 of file EcalTriggerElectronicsId.h.