Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bits [17:18] : 2 bits for diamond plane 0,1,2,3 Bits [12:16] : 5 bits for Diamond channel numbers 1,2,3,..16 Bits [0:11] : unspecified yet. More...
#include <CTPPSDiamondDetId.h>
Public Member Functions | |
uint32_t | channel () const |
void | channelName (std::string &name, NameFlag flag=nFull) const |
CTPPSDiamondDetId (uint32_t id) | |
Construct from a raw id. More... | |
CTPPSDiamondDetId (const CTPPSDetId &id) | |
CTPPSDiamondDetId (uint32_t Arm, uint32_t Station, uint32_t RomanPot=0, uint32_t Plane=0, uint32_t Channel=0) | |
Construct from hierarchy indeces. More... | |
CTPPSDiamondDetId | getPlaneId () const |
uint32_t | plane () const |
void | planeName (std::string &name, NameFlag flag=nFull) const |
void | setChannel (uint32_t channel) |
void | setPlane (uint32_t channel) |
Public Member Functions inherited from CTPPSDetId | |
uint32_t | arm () const |
void | armName (std::string &name, NameFlag flag=nFull) const |
CTPPSDetId (uint32_t id) | |
Construct from a raw id. More... | |
CTPPSDetId (uint32_t SubDet, uint32_t Arm, uint32_t Station, uint32_t RomanPot=0) | |
Construct from hierarchy indeces. More... | |
CTPPSDetId | getArmId () const |
CTPPSDetId | getRPId () const |
CTPPSDetId | getStationId () const |
uint32_t | rp () const |
void | rpName (std::string &name, NameFlag flag=nFull) const |
void | setArm (uint32_t arm) |
void | setRP (uint32_t rp) |
void | setStation (uint32_t station) |
uint32_t | station () const |
void | stationName (std::string &name, NameFlag flag=nFull) const |
void | subDetectorName (std::string &name, NameFlag flag=nFull) const |
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 Member Functions | |
static bool | check (unsigned int raw) |
returns true if the raw ID is a PPS-timing one More... | |
Static Public Attributes | |
static const uint32_t | lowMaskChannel = 0xFFF |
static const uint32_t | lowMaskPlane = 0x1FFFF |
static const uint32_t | maskChannel = 0x1F |
static const uint32_t | maskPlane = 0x3 |
static const uint32_t | maxChannel = 31 |
static const uint32_t | maxPlane = 3 |
static const uint32_t | startDetBit = 12 |
static const uint32_t | startPlaneBit = 17 |
Static Public Attributes inherited from CTPPSDetId | |
static const uint32_t | lowMaskArm = 0xFFFFFF |
static const uint32_t | lowMaskRP = 0x7FFFF |
static const uint32_t | lowMaskStation = 0x3FFFFF |
static const uint32_t | maskArm = 0x1 |
static const uint32_t | maskRP = 0x7 |
static const uint32_t | maskStation = 0x3 |
static const uint32_t | maxArm = 1 |
static const uint32_t | maxRP = 6 |
static const uint32_t | maxStation = 2 |
static const uint32_t | startArmBit = 24 |
static const uint32_t | startRPBit = 19 |
static const uint32_t | startStationBit = 22 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Public Types inherited from CTPPSDetId | |
enum | NameFlag { nShort, nFull, nPath } |
type of name returned by *Name functions More... | |
enum | SubDetector { sdTrackingStrip = 3, sdTrackingPixel = 4, sdTimingDiamond = 5, sdTimingFastSilicon = 6 } |
CTPPS sub-detectors. More... | |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6, VeryForward =7 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bits [17:18] : 2 bits for diamond plane 0,1,2,3 Bits [12:16] : 5 bits for Diamond channel numbers 1,2,3,..16 Bits [0:11] : unspecified yet.
Definition at line 25 of file CTPPSDiamondDetId.h.
|
explicit |
Construct from a raw id.
Definition at line 20 of file CTPPSDiamondDetId.cc.
References channel(), check(), Exception, and DetId::subdetId().
Referenced by CTPPSDiamondDetId(), and getPlaneId().
|
inline |
CTPPSDiamondDetId::CTPPSDiamondDetId | ( | uint32_t | Arm, |
uint32_t | Station, | ||
uint32_t | RomanPot = 0 , |
||
uint32_t | Plane = 0 , |
||
uint32_t | Channel = 0 |
||
) |
Construct from hierarchy indeces.
Definition at line 33 of file CTPPSDiamondDetId.cc.
References Exception, DetId::id_, CTPPSDetId::maskArm, maskChannel, maskPlane, CTPPSDetId::maskRP, CTPPSDetId::maskStation, CTPPSDetId::maxArm, maxChannel, maxPlane, CTPPSDetId::maxRP, CTPPSDetId::maxStation, convertSQLiteXML::ok, CTPPSDetId::startArmBit, startDetBit, startPlaneBit, CTPPSDetId::startRPBit, and CTPPSDetId::startStationBit.
|
inline |
Definition at line 60 of file CTPPSDiamondDetId.h.
References DetId::id_.
Referenced by channelName(), CTPPSDiamondDetId(), and CTPPSGeometryInfo::PrintDetId().
Definition at line 92 of file CTPPSDiamondDetId.h.
References channel(), RemoveAddSevLevel::flag, CTPPSDetId::nFull, CTPPSDetId::nPath, CTPPSDetId::nShort, operator<<(), and planeName().
Referenced by CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots().
|
inlinestatic |
returns true if the raw ID is a PPS-timing one
Definition at line 42 of file CTPPSDiamondDetId.h.
References DetId::kDetOffset, DetId::kSubdetOffset, CTPPSDetId::sdTimingDiamond, and DetId::VeryForward.
Referenced by CTPPSDiamondDetId().
|
inline |
Definition at line 73 of file CTPPSDiamondDetId.h.
References CTPPSDiamondDetId(), and DetId::rawId().
|
inline |
Definition at line 49 of file CTPPSDiamondDetId.h.
References DetId::id_.
Referenced by planeName(), and CTPPSGeometryInfo::PrintDetId().
Definition at line 80 of file CTPPSDiamondDetId.h.
References RemoveAddSevLevel::flag, CTPPSDetId::nFull, CTPPSDetId::nPath, CTPPSDetId::nShort, plane(), and CTPPSDetId::rpName().
Referenced by channelName(), and CTPPSDiamondDQMSource::PlanePlots::PlanePlots().
|
inline |
Definition at line 65 of file CTPPSDiamondDetId.h.
References DetId::id_, maskChannel, and startDetBit.
Referenced by CTPPSDiamondDQMSource::analyze().
|
inline |
Definition at line 54 of file CTPPSDiamondDetId.h.
References DetId::id_, maskPlane, and startPlaneBit.
Referenced by CTPPSDiamondDQMSource::analyze().
|
static |
Definition at line 39 of file CTPPSDiamondDetId.h.
|
static |
Definition at line 38 of file CTPPSDiamondDetId.h.
|
static |
Definition at line 39 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId(), and setChannel().
|
static |
Definition at line 38 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId(), and setPlane().
|
static |
Definition at line 39 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId().
|
static |
Definition at line 38 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId().
|
static |
Definition at line 39 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId(), and setChannel().
|
static |
Definition at line 38 of file CTPPSDiamondDetId.h.
Referenced by CTPPSDiamondDetId(), and setPlane().