#include <EcalPnDiodeDetId.h>
Public Member Functions | |
EcalPnDiodeDetId () | |
EcalPnDiodeDetId (uint32_t rawid) | |
EcalPnDiodeDetId (int EcalSubDetectorId, int DCCId, int PnId) | |
Constructor from signed EcalSubDetectorId, DCCId, PnId. More... | |
EcalPnDiodeDetId (const DetId &id) | |
int | hashedIndex () const |
get a compact index for arrays [TODO: NEEDS WORK] More... | |
int | iDCCId () const |
get the DCCId More... | |
int | iEcalSubDetectorId () const |
get EcalSubDetectorId More... | |
int | iPnId () const |
get the PnId More... | |
EcalPnDiodeDetId & | operator= (const DetId &id) |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr 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 | MAX_DCCID = 54 |
static const int | MAX_PNID = 15 |
static const int | MIN_DCCID = 1 |
static const int | MIN_PNID = 1 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
DetId for an Calo Trigger tower Packing:
[31:28] Global det == ECAL [27:25] ECAL det == EcalLaserPnDiode [24:12] Not Used [10] SubDetectorId: EB (1) ,EE (2) [9:4] DCCId (relative to SubDetector. In barrel it is the SupermoduleId from 1-36) [3:0] PnId (In barrel from 1-10 according CMS IN-2005/021)
Definition at line 22 of file EcalPnDiodeDetId.h.
EcalPnDiodeDetId::EcalPnDiodeDetId | ( | ) |
EcalPnDiodeDetId::EcalPnDiodeDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value
Definition at line 6 of file EcalPnDiodeDetId.cc.
EcalPnDiodeDetId::EcalPnDiodeDetId | ( | int | EcalSubDetectorId, |
int | DCCId, | ||
int | PnId | ||
) |
Constructor from signed EcalSubDetectorId, DCCId, PnId.
Definition at line 8 of file EcalPnDiodeDetId.cc.
References EcalBarrel, EcalEndcap, Exception, DetId::id_, MAX_DCCID, MAX_PNID, MIN_DCCID, and MIN_PNID.
EcalPnDiodeDetId::EcalPnDiodeDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 15 of file EcalPnDiodeDetId.cc.
References DetId::det(), DetId::Ecal, EcalLaserPnDiode, Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
int EcalPnDiodeDetId::hashedIndex | ( | ) | const |
get a compact index for arrays [TODO: NEEDS WORK]
Definition at line 30 of file EcalPnDiodeDetId.cc.
References Exception.
|
inline |
get the DCCId
Definition at line 44 of file EcalPnDiodeDetId.h.
References DetId::id_.
Referenced by EcalTestPulseAnalyzer::analyze(), EcalLaserAnalyzer2::analyze(), EcalLaserAnalyzer::analyze(), ecaldqm::dccId(), ecaldqm::lmPNID(), ecaldqm::memChannelID(), and EcalDigiDisplay::readPNDigis().
|
inline |
get EcalSubDetectorId
Definition at line 42 of file EcalPnDiodeDetId.h.
References EcalBarrel, EcalEndcap, and DetId::id_.
|
inline |
get the PnId
Definition at line 46 of file EcalPnDiodeDetId.h.
References DetId::id_.
Referenced by EcalLaserAnalyzer::analyze(), EcalLaserAnalyzer2::analyze(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findBinCrystal_(), ecaldqm::lmPNID(), and ecaldqm::memChannelID().
EcalPnDiodeDetId & EcalPnDiodeDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 22 of file EcalPnDiodeDetId.cc.
References DetId::det(), DetId::Ecal, EcalLaserPnDiode, Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
static |
Definition at line 36 of file EcalPnDiodeDetId.h.
Referenced by EcalPnDiodeDetId().
|
static |
Definition at line 38 of file EcalPnDiodeDetId.h.
Referenced by EcalPnDiodeDetId().
|
static |
Definition at line 37 of file EcalPnDiodeDetId.h.
Referenced by EcalPnDiodeDetId().
|
static |
Definition at line 39 of file EcalPnDiodeDetId.h.
Referenced by EcalPnDiodeDetId().