#include <HcalCalibDetId.h>
Public Types | |
enum | CalibDetType { CalibrationBox = 1, HOCrosstalk = 2 } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
Public Member Functions | |
CalibDetType | calibFlavor () const |
get the flavor of this calibration detid More... | |
int | cboxChannel () const |
get the calibration box channel (if relevant) More... | |
std::string | cboxChannelString () const |
get the calibration box channel as a string (if relevant) More... | |
HcalCalibDetId () | |
HcalCalibDetId (uint32_t rawid) | |
HcalCalibDetId (const DetId &id) | |
HcalCalibDetId (HcalSubdetector subdet, int ieta, int iphi, int ctype) | |
HcalCalibDetId (int ieta, int iphi) | |
HcalSubdetector | hcalSubdet () const |
get the HcalSubdetector (if relevant) More... | |
int | ieta () const |
get the rbx name (if relevant) More... | |
int | iphi () const |
get the low-edge iphi (if relevant) More... | |
HcalCalibDetId & | operator= (const DetId &id) |
int | zside () const |
get the sign of ieta (+/-1) More... | |
Public Member Functions inherited from HcalOtherDetId | |
HcalOtherDetId (const DetId &id) | |
HcalOtherDetId & | operator= (const DetId &id) |
HcalOtherSubdetector | subdet () const |
get the category More... | |
Public Member Functions inherited from DetId | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static const int | cbox_HF_ScintillatorPIN = 8 |
static const int | cbox_HOCrosstalkPIN = 7 |
static const int | cbox_LaserMegatile = 2 |
static const int | cbox_MixerHigh = 0 |
constants More... | |
static const int | cbox_MixerLow = 1 |
static const int | cbox_RadDam_Layer0_RM1 = 5 |
static const int | cbox_RadDam_Layer0_RM4 = 3 |
static const int | cbox_RadDam_Layer7_RM1 = 6 |
static const int | cbox_RadDam_Layer7_RM4 = 4 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Member Functions inherited from HcalOtherDetId | |
HcalOtherDetId () | |
HcalOtherDetId (uint32_t rawid) | |
HcalOtherDetId (HcalOtherSubdetector subdet) | |
Constructor from signed ieta, iphi plus composite type and composite data. More... | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Contents of the HcalCalibDetId : [19:17] Calibration Category (1 = CalibUnit, 2 = HX)
For CalibUnit: [16:14] Subdetector [13:11] Ieta (-2 -> 2) [10:4] Iphi ("low edge") [3:0] Calibration channel type
For HX (HOCrosstalk) channels: [11] side (true = positive) [10:7] ieta [6:0] Iphi
Definition at line 27 of file HcalCalibDetId.h.
Type identifier within calibration det ids
Enumerator | |
---|---|
CalibrationBox | |
HOCrosstalk |
Definition at line 30 of file HcalCalibDetId.h.
HcalCalibDetId::HcalCalibDetId | ( | ) |
HcalCalibDetId::HcalCalibDetId | ( | uint32_t | rawid | ) |
HcalCalibDetId::HcalCalibDetId | ( | const DetId & | id | ) |
Create from a generic cell id
Definition at line 36 of file HcalCalibDetId.cc.
References TauDecayModes::dec, DetId::det(), edm::hlt::Exception, DetId::Hcal, HcalCalibration, HcalOther, DetId::id_, DetId::null(), DetId::rawId(), HcalOtherDetId::subdet(), and DetId::subdetId().
HcalCalibDetId::HcalCalibDetId | ( | HcalSubdetector | subdet, |
int | ieta, | ||
int | iphi, | ||
int | ctype | ||
) |
Construct a calibration box - channel detid
Definition at line 14 of file HcalCalibDetId.cc.
References CalibrationBox, and DetId::id_.
HcalCalibDetId::HcalCalibDetId | ( | int | ieta, |
int | iphi | ||
) |
Construct an HO Crosstalk id
Definition at line 29 of file HcalCalibDetId.cc.
References funct::abs(), HOCrosstalk, and DetId::id_.
|
inline |
get the flavor of this calibration detid
Definition at line 45 of file HcalCalibDetId.h.
References DetId::id_.
Referenced by cboxChannel(), HcalTopology::detId2denseIdCALIB(), reco::HcalNoiseInfoProducer::filldigis(), HLTHcalLaserFilter::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLogicalMap::getHcalFrontEndId(), hcalSubdet(), ieta(), HcalText2DetIdConverter::init(), iphi(), HcalLedAnalysis::ProcessCalibEvent(), and zside().
int HcalCalibDetId::cboxChannel | ( | ) | const |
get the calibration box channel (if relevant)
Definition at line 57 of file HcalCalibDetId.cc.
References calibFlavor(), CalibrationBox, and DetId::id_.
Referenced by cboxChannelString(), HcalTopology::detId2denseIdCALIB(), HcalText2DetIdConverter::init(), and CALIBLogicalMapEntry::printLMapLine().
std::string HcalCalibDetId::cboxChannelString | ( | ) | const |
get the calibration box channel as a string (if relevant)
Definition at line 77 of file HcalCalibDetId.cc.
References cbox_HF_ScintillatorPIN, cbox_HOCrosstalkPIN, cbox_LaserMegatile, cbox_MixerHigh, cbox_MixerLow, cbox_RadDam_Layer0_RM1, cbox_RadDam_Layer0_RM4, cbox_RadDam_Layer7_RM1, cbox_RadDam_Layer7_RM4, and cboxChannel().
Referenced by HcalLedAnalysis::ProcessCalibEvent().
HcalSubdetector HcalCalibDetId::hcalSubdet | ( | ) | const |
get the HcalSubdetector (if relevant)
Definition at line 61 of file HcalCalibDetId.cc.
References calibFlavor(), CalibrationBox, and DetId::id_.
Referenced by HcalTopology::detId2denseIdCALIB(), HLTHcalLaserFilter::filter(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalLaserHFFilter2012::filter(), HcalText2DetIdConverter::init(), CALIBLogicalMapEntry::printLMapLine(), and HcalLedAnalysis::ProcessCalibEvent().
int HcalCalibDetId::ieta | ( | ) | const |
get the rbx name (if relevant)
get the "ieta" identifier (if relevant)
Definition at line 65 of file HcalCalibDetId.cc.
References calibFlavor(), CalibrationBox, HOCrosstalk, DetId::id_, and zside().
Referenced by HcalTopology::detId2denseIdCALIB(), HcalText2DetIdConverter::init(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), and HcalLedAnalysis::ProcessCalibEvent().
int HcalCalibDetId::iphi | ( | ) | const |
get the low-edge iphi (if relevant)
Definition at line 69 of file HcalCalibDetId.cc.
References calibFlavor(), CalibrationBox, HOCrosstalk, and DetId::id_.
Referenced by HcalTopology::detId2denseIdCALIB(), HcalText2DetIdConverter::init(), HOHXLogicalMapEntry::printLMapLine(), CALIBLogicalMapEntry::printLMapLine(), and HcalLedAnalysis::ProcessCalibEvent().
HcalCalibDetId & HcalCalibDetId::operator= | ( | const DetId & | id | ) |
Definition at line 46 of file HcalCalibDetId.cc.
References TauDecayModes::dec, DetId::det(), edm::hlt::Exception, DetId::Hcal, HcalCalibration, HcalOther, DetId::id_, DetId::null(), DetId::rawId(), HcalOtherDetId::subdet(), and DetId::subdetId().
int HcalCalibDetId::zside | ( | ) | const |
get the sign of ieta (+/-1)
Definition at line 73 of file HcalCalibDetId.cc.
References calibFlavor(), HOCrosstalk, and DetId::id_.
Referenced by HcalTopology::detId2denseIdCALIB(), ieta(), and HOHXLogicalMapEntry::printLMapLine().
|
static |
Definition at line 73 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 72 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 67 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
|
static |
Definition at line 66 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 70 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 68 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 71 of file HcalCalibDetId.h.
Referenced by cboxChannelString().
|
static |
Definition at line 69 of file HcalCalibDetId.h.
Referenced by cboxChannelString().