#include <AHCalDetId.h>
Public Member Functions | |
AHCalDetId () | |
AHCalDetId (uint32_t rawid) | |
AHCalDetId (int row, int col, int depth) | |
AHCalDetId (const DetId &id) | |
int | depth () const |
std::pair< double, double > | getXY () const |
get the local coordinate in the plane and along depth More... | |
double | getZ () const |
int | icol () const |
get the column number More... | |
int | icolAbs () const |
int | irow () const |
get the row number More... | |
int | irowAbs () const |
AHCalDetId & | operator= (const DetId &id) |
HcalSubdetector | subdet () const |
get the subdetector More... | |
int | zside () const |
get the z-side of the cell (1/-1) More... | |
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... | |
Public Attributes | |
const double | deltaX_ = 3.0 |
const double | deltaY_ = 3.0 |
const double | deltaZ_ = 8.1 |
const double | zFirst_ = 1.76 |
Static Public Attributes | |
static const int | MaxDepth = 12 |
get the layer number More... | |
static const AHCalDetId | Undefined |
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_ |
Cell identifier class for the HCAL subdetectors, precision readout cells only
Definition at line 13 of file AHCalDetId.h.
AHCalDetId::AHCalDetId | ( | ) |
Create a null cellid
Definition at line 7 of file AHCalDetId.cc.
AHCalDetId::AHCalDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 9 of file AHCalDetId.cc.
AHCalDetId::AHCalDetId | ( | int | row, |
int | col, | ||
int | depth | ||
) |
Constructor from subdetector, signed tower ieta,iphi,and depth
Definition at line 11 of file AHCalDetId.cc.
References icol(), DetId::id_, irow(), HcalDetId::kHcalDepthMask2, HcalDetId::kHcalDepthOffset2, HcalDetId::kHcalEtaMask2, HcalDetId::kHcalEtaOffset2, HcalDetId::kHcalIdFormat2, HcalDetId::kHcalPhiMask2, and HcalDetId::kHcalZsideMask2.
AHCalDetId::AHCalDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 22 of file AHCalDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Hcal, HcalOther, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
int AHCalDetId::depth | ( | void | ) | const |
Definition at line 46 of file AHCalDetId.cc.
References DetId::id_, HcalDetId::kHcalDepthMask2, and HcalDetId::kHcalDepthOffset2.
Referenced by HGCalTBAnalyzer::analyzeSimHits(), getZ(), and AHCalSD::unpackIndex().
std::pair< double, double > AHCalDetId::getXY | ( | ) | const |
get the local coordinate in the plane and along depth
Definition at line 50 of file AHCalDetId.cc.
References cuy::col, deltaX_, deltaY_, icol(), and irow().
Referenced by HGCalTBAnalyzer::analyzeSimHits().
double AHCalDetId::getZ | ( | ) | const |
Definition at line 59 of file AHCalDetId.cc.
References deltaZ_, depth(), and zFirst_.
Referenced by HGCalTBAnalyzer::analyzeSimHits().
int AHCalDetId::icol | ( | ) | const |
get the column number
Definition at line 40 of file AHCalDetId.cc.
References DetId::id_, HcalDetId::kHcalPhiMask2, and relativeConstraints::value.
Referenced by AHCalDetId(), HGCalTBAnalyzer::analyzeSimHits(), getXY(), irowAbs(), and AHCalSD::unpackIndex().
|
inline |
Definition at line 40 of file AHCalDetId.h.
References DetId::id_, and HcalDetId::kHcalPhiMask2.
Referenced by HGCalTBAnalyzer::analyzeSimHits().
int AHCalDetId::irow | ( | ) | const |
get the row number
Definition at line 34 of file AHCalDetId.cc.
References DetId::id_, HcalDetId::kHcalEtaMask2, HcalDetId::kHcalEtaOffset2, and relativeConstraints::value.
Referenced by AHCalDetId(), HGCalTBAnalyzer::analyzeSimHits(), getXY(), AHCalSD::unpackIndex(), and zside().
|
inline |
Definition at line 35 of file AHCalDetId.h.
References icol(), DetId::id_, HcalDetId::kHcalEtaMask2, and HcalDetId::kHcalEtaOffset2.
Referenced by HGCalTBAnalyzer::analyzeSimHits().
|
inline |
Assignment from a generic cell id
Definition at line 24 of file AHCalDetId.h.
References DetId::id_.
|
inline |
get the subdetector
Definition at line 30 of file AHCalDetId.h.
References HcalOther.
Referenced by AHCalDetId().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 32 of file AHCalDetId.h.
References irow().
Referenced by HGCalTBAnalyzer::analyzeSimHits().
const double AHCalDetId::deltaX_ = 3.0 |
Definition at line 49 of file AHCalDetId.h.
Referenced by getXY().
const double AHCalDetId::deltaY_ = 3.0 |
Definition at line 50 of file AHCalDetId.h.
Referenced by getXY().
const double AHCalDetId::deltaZ_ = 8.1 |
Definition at line 51 of file AHCalDetId.h.
Referenced by getZ().
|
static |
get the layer number
Definition at line 42 of file AHCalDetId.h.
Referenced by HGCalTBAnalyzer::analyze(), and HGCalTBAnalyzer::beginRun().
|
static |
Definition at line 48 of file AHCalDetId.h.
const double AHCalDetId::zFirst_ = 1.76 |
Definition at line 52 of file AHCalDetId.h.
Referenced by getZ().