#include <HGCScintillatorDetId.h>
Public Member Functions | |
HGCScintillatorDetId | geometryCell () const |
HGCScintillatorDetId () | |
HGCScintillatorDetId (uint32_t rawid) | |
HGCScintillatorDetId (int type, int layer, int ieta, int iphi) | |
HGCScintillatorDetId (const DetId &id) | |
int | ieta () const |
int | ietaAbs () const |
get the eta index More... | |
std::pair< int, int > | ietaphi () const |
int | iphi () const |
get the phi index More... | |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
bool | isHE () const |
int | layer () const |
get the layer # More... | |
HGCScintillatorDetId & | operator= (const DetId &id) |
ForwardSubdetector | subdet () const |
get the subdetector More... | |
int | type () const |
get the type More... | |
int | zside () const |
get the z-side of the cell (1/-1) 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 HGCScintillatorDetId | Undefined |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Static Private Attributes | |
static const int | kHGCalEtaMask = 0xFF |
static const int | kHGCalEtaOffset = 9 |
static const int | kHGCalLayerMask = 0x1F |
static const int | kHGCalLayerOffset = 17 |
static const int | kHGCalPhiMask = 0x1FF |
static const int | kHGCalPhiOffset = 0 |
static const int | kHGCalTypeMask = 0x1 |
static const int | kHGCalTypeOffset = 23 |
static const int | kHGCalZsideMask = 0x1 |
static const int | kHGCalZsideMask2 = 0x400000 |
static const int | kHGCalZsideOffset = 22 |
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 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 18 of file HGCScintillatorDetId.h.
HGCScintillatorDetId::HGCScintillatorDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCScintillatorDetId.cc.
Referenced by geometryCell().
HGCScintillatorDetId::HGCScintillatorDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 11 of file HGCScintillatorDetId.cc.
HGCScintillatorDetId::HGCScintillatorDetId | ( | int | type, |
int | layer, | ||
int | ieta, | ||
int | iphi | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 14 of file HGCScintillatorDetId.cc.
References DetId::id_, kHGCalEtaOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalPhiMask, kHGCalPhiOffset, kHGCalTypeMask, kHGCalTypeOffset, and kHGCalZsideMask2.
HGCScintillatorDetId::HGCScintillatorDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 23 of file HGCScintillatorDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalHSc, HGCHEB, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
Converter for a geometry cell id
Definition at line 34 of file HGCScintillatorDetId.h.
References HGCScintillatorDetId(), ieta(), layer(), and type().
|
inline |
Definition at line 50 of file HGCScintillatorDetId.h.
References ietaAbs(), and zside().
Referenced by geometryCell(), and ietaphi().
|
inline |
get the eta index
Definition at line 49 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalEtaMask, and kHGCalEtaOffset.
Referenced by ieta().
|
inline |
|
inline |
get the phi index
Definition at line 53 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalPhiMask, and kHGCalPhiOffset.
Referenced by ietaphi().
|
inline |
consistency check : no bits left => no overhead
Definition at line 57 of file HGCScintillatorDetId.h.
|
inline |
Definition at line 59 of file HGCScintillatorDetId.h.
|
inline |
Definition at line 58 of file HGCScintillatorDetId.h.
|
inline |
get the layer #
Definition at line 46 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by geometryCell(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
HGCScintillatorDetId & HGCScintillatorDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 33 of file HGCScintillatorDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalHSc, HGCHEB, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
get the subdetector
Definition at line 37 of file HGCScintillatorDetId.h.
References HGCHEB.
|
inline |
get the type
Definition at line 40 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by geometryCell(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 43 of file HGCScintillatorDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by ieta().
|
staticprivate |
Definition at line 68 of file HGCScintillatorDetId.h.
Referenced by ietaAbs().
|
staticprivate |
Definition at line 67 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and ietaAbs().
|
staticprivate |
Definition at line 70 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and layer().
|
staticprivate |
Definition at line 69 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and layer().
|
staticprivate |
Definition at line 66 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and iphi().
|
staticprivate |
Definition at line 65 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and iphi().
|
staticprivate |
Definition at line 75 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and type().
|
staticprivate |
Definition at line 74 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId(), and type().
|
staticprivate |
Definition at line 72 of file HGCScintillatorDetId.h.
Referenced by zside().
|
staticprivate |
Definition at line 73 of file HGCScintillatorDetId.h.
Referenced by HGCScintillatorDetId().
|
staticprivate |
Definition at line 71 of file HGCScintillatorDetId.h.
Referenced by zside().
|
static |
Definition at line 61 of file HGCScintillatorDetId.h.