#include <HcalGeometry.h>
Public Types | |
enum | { k_NumberOfCellsForCorners = HcalDetId::kSizeForDenseIndexing } |
enum | { k_NumberOfShapes = 87 } |
enum | { k_NumberOfParametersPerShape = 5 } |
typedef HcalGeometryRecord | AlignedRecord |
typedef HcalAlignmentRcd | AlignmentRecord |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef HcalDetId | DetIdType |
typedef std::vector < IdealObliquePrism > | HBCellVec |
typedef std::vector < IdealObliquePrism > | HECellVec |
typedef std::vector< IdealZPrism > | HFCellVec |
typedef std::vector < IdealObliquePrism > | HOCellVec |
typedef PHcalRcd | PGeometryRecord |
typedef CaloCellGeometry::Pt3D | Pt3D |
typedef CaloCellGeometry::Pt3DVec | Pt3DVec |
Public Types inherited from CaloSubdetectorGeometry | |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::set< DetId > | DetIdSet |
typedef std::vector< CCGFloat > | DimVec |
typedef std::vector< unsigned int > | IVec |
typedef CaloCellGeometry::ParMgr | ParMgr |
typedef CaloCellGeometry::ParVec | ParVec |
typedef CaloCellGeometry::ParVecVec | ParVecVec |
typedef std::vector< CCGFloat > | TrVec |
Public Member Functions | |
virtual CaloSubdetectorGeometry::DetIdSet | getCells (const GlobalPoint &r, double dR) const |
Get a list of all cells within a dR of the given cell. More... | |
virtual DetId | getClosestCell (const GlobalPoint &r) const |
virtual const std::vector < DetId > & | getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const |
Get a list of valid detector ids (for the given subdetector) More... | |
HcalGeometry () | |
HcalGeometry (const HcalTopology *topology) | |
virtual void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual | ~HcalGeometry () |
The HcalGeometry will delete all its cell geometries at destruction time. More... | |
Public Member Functions inherited from CaloSubdetectorGeometry | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
CaloCellGeometry::CornersMgr * | cornersMgr () |
CCGFloat | deltaEta (const DetId &detId) const |
CCGFloat | deltaPhi (const DetId &detId) const |
virtual void | fillDefaultNamedParameters () const |
virtual const CaloCellGeometry * | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. Should return false if not found. More... | |
void | getSummary (TrVec &trVector, IVec &iVector, DimVec &dimVector) const |
virtual void | initializeParms () |
virtual unsigned int | numberOfTransformParms () const |
ParMgr * | parMgr () |
const ParMgr * | parMgrConst () const |
ParVecVec & | parVecVec () |
const ParVecVec & | parVecVec () const |
virtual bool | present (const DetId &id) const |
is this detid present in the geometry? More... | |
virtual | ~CaloSubdetectorGeometry () |
The base class DOES assume that it owns the CaloCellGeometry objects. More... | |
Static Public Member Functions | |
static unsigned int | alignmentTransformIndexGlobal (const DetId &id) |
static unsigned int | alignmentTransformIndexLocal (const DetId &id) |
static std::string | dbString () |
static void | localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref) |
static unsigned int | numberOfAlignments () |
static unsigned int | numberOfBarrelAlignments () |
static unsigned int | numberOfEndcapAlignments () |
static unsigned int | numberOfForwardAlignments () |
static unsigned int | numberOfOuterAlignments () |
static std::string | producerTag () |
Protected Member Functions | |
virtual const CaloCellGeometry * | cellGeomPtr (uint32_t index) const |
Private Member Functions | |
int | etaRing (HcalSubdetector bc, double abseta) const |
helper methods for getClosestCell More... | |
void | fillDetIds () const |
void | init () |
int | phiBin (double phi, int etaring) const |
Private Attributes | |
std::vector< DetId > | m_emptyIds |
HBCellVec | m_hbCellVec |
std::vector< DetId > | m_hbIds |
HECellVec | m_heCellVec |
std::vector< DetId > | m_heIds |
HFCellVec | m_hfCellVec |
std::vector< DetId > | m_hfIds |
HOCellVec | m_hoCellVec |
std::vector< DetId > | m_hoIds |
bool | m_ownsTopology |
const HcalTopology * | theTopology |
Additional Inherited Members | |
Static Protected Member Functions inherited from CaloSubdetectorGeometry | |
static CCGFloat | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
Protected Attributes inherited from CaloSubdetectorGeometry | |
ParVecVec | m_parVecVec |
std::vector< DetId > | m_validIds |
Definition at line 12 of file HcalGeometry.h.
Definition at line 26 of file HcalGeometry.h.
Definition at line 25 of file HcalGeometry.h.
Definition at line 21 of file HcalGeometry.h.
typedef HcalDetId HcalGeometry::DetIdType |
Definition at line 28 of file HcalGeometry.h.
typedef std::vector<IdealObliquePrism> HcalGeometry::HBCellVec |
Definition at line 16 of file HcalGeometry.h.
typedef std::vector<IdealObliquePrism> HcalGeometry::HECellVec |
Definition at line 17 of file HcalGeometry.h.
typedef std::vector<IdealZPrism> HcalGeometry::HFCellVec |
Definition at line 19 of file HcalGeometry.h.
typedef std::vector<IdealObliquePrism> HcalGeometry::HOCellVec |
Definition at line 18 of file HcalGeometry.h.
Definition at line 27 of file HcalGeometry.h.
Definition at line 22 of file HcalGeometry.h.
Definition at line 23 of file HcalGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 30 of file HcalGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfShapes |
Definition at line 32 of file HcalGeometry.h.
anonymous enum |
HcalGeometry::HcalGeometry | ( | ) |
HcalGeometry::HcalGeometry | ( | const HcalTopology * | topology | ) |
|
virtual |
The HcalGeometry will delete all its cell geometries at destruction time.
Definition at line 26 of file HcalGeometry.cc.
References m_ownsTopology, and theTopology.
|
static |
Definition at line 342 of file HcalGeometry.cc.
References DetId::Hcal.
|
static |
Definition at line 297 of file HcalGeometry.cc.
References getHLTprescales::index, CaloGenericDetId::isHB(), CaloGenericDetId::isHcal(), CaloGenericDetId::isHE(), CaloGenericDetId::isHF(), CaloGenericDetId::isHO(), numberOfAlignments(), numberOfBarrelAlignments(), numberOfEndcapAlignments(), numberOfForwardAlignments(), and relativeConstraints::ring.
|
protectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 412 of file HcalGeometry.cc.
References cropTnPTrees::din, getHLTprescales::index, m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and CaloCellGeometry::param().
|
inlinestatic |
Definition at line 36 of file HcalGeometry.h.
|
private |
helper methods for getClosestCell
Definition at line 167 of file HcalGeometry.cc.
References HcalTopology::firstHFRing(), HcalForward, HcalTopology::lastHERing(), HcalTopology::lastHFRing(), theHBHEEtaBounds, theHFEtaBounds, and theTopology.
Referenced by getCells(), and getClosestCell().
|
private |
Definition at line 42 of file HcalGeometry.cc.
References CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, errorMatrix2Lands_multiChannel::id, m_emptyIds, m_hbIds, m_heIds, m_hfIds, m_hoIds, and python.multivaluedict::sort().
Referenced by getValidDetIds().
|
virtual |
Get a list of all cells within a dR of the given cell.
The default implementation makes a loop over all cell geometries. Cleverer implementations are suggested to use rough conversions between eta/phi and ieta/iphi and test on the boundaries.
Reimplemented from CaloSubdetectorGeometry.
Definition at line 219 of file HcalGeometry.cc.
References reco::deltaR2(), PV3DBase< T, PVType, FrameType >::eta(), eta(), etaRing(), HcalTopology::firstHFRing(), CaloSubdetectorGeometry::getCells(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalTopology::lastHFRing(), M_PI, AlCaHLTBitMon_ParallelJobs::p, phi, PV3DBase< T, PVType, FrameType >::phi(), phiBin(), theHFEtaBounds, theTopology, and HcalDetId::validDetId().
|
virtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 94 of file HcalGeometry.cc.
References abs, PV3DBase< T, PVType, FrameType >::eta(), etaRing(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), HcalBarrel, HcalEmpty, HcalEndcap, HcalForward, HcalTopology::incrementDepth(), HcalTopology::lastHBRing(), HcalTopology::lastHERing(), HcalTopology::lastHFRing(), PV3DBase< T, PVType, FrameType >::mag(), PV3DBase< T, PVType, FrameType >::phi(), phiBin(), theHBHEEtaBounds, theTopology, and PV3DBase< T, PVType, FrameType >::z().
|
virtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented from CaloSubdetectorGeometry.
Definition at line 82 of file HcalGeometry.cc.
References fillDetIds(), CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, m_emptyIds, m_hbIds, m_heIds, m_hfIds, and m_hoIds.
|
private |
Definition at line 33 of file HcalGeometry.cc.
References HcalDetId::kHBSize, HcalDetId::kHESize, HcalDetId::kHFSize, HcalDetId::kHOSize, m_hbCellVec, m_heCellVec, m_hfCellVec, and m_hoCellVec.
Referenced by HcalGeometry().
|
static |
Definition at line 348 of file HcalGeometry.cc.
References HcalDetId::detIdFromDenseIndex(), CaloGenericDetId::isHF(), IdealZPrism::localCorners(), and IdealObliquePrism::localCorners().
|
virtual |
Implements CaloSubdetectorGeometry.
Definition at line 366 of file HcalGeometry.cc.
References CaloSubdetectorGeometry::cornersMgr(), CaloGenericDetId::denseIndex(), cropTnPTrees::din, getHLTprescales::index, CaloGenericDetId::isHB(), CaloGenericDetId::isHcal(), CaloGenericDetId::isHE(), CaloGenericDetId::isHO(), m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and CaloSubdetectorGeometry::m_validIds.
|
inlinestatic |
Definition at line 69 of file HcalGeometry.h.
References numberOfBarrelAlignments(), numberOfEndcapAlignments(), numberOfForwardAlignments(), and numberOfOuterAlignments().
Referenced by alignmentTransformIndexLocal(), and HcalAlignmentEP::produceHcalAli().
|
inlinestatic |
Definition at line 61 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), FakeCaloAlignmentEP::produceHBAli(), TestCaloAlignmentEP::produceHBAli(), and HcalAlignmentEP::produceHcalAli().
|
inlinestatic |
Definition at line 63 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHEAli(), and TestCaloAlignmentEP::produceHEAli().
|
inlinestatic |
Definition at line 67 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHFAli(), and TestCaloAlignmentEP::produceHFAli().
|
inlinestatic |
Definition at line 65 of file HcalGeometry.h.
Referenced by numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHOAli(), and TestCaloAlignmentEP::produceHOAli().
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 39 of file HcalGeometry.h.
References k_NumberOfParametersPerShape.
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 38 of file HcalGeometry.h.
References k_NumberOfShapes.
|
private |
Definition at line 190 of file HcalGeometry.cc.
References HcalTopology::firstHFQuadPhiRing(), M_PI, HcalTopology::nPhiBins(), and theTopology.
Referenced by getCells(), and getClosestCell().
|
inlinestatic |
Definition at line 59 of file HcalGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), HcalHardcodeGeometryEP::HcalHardcodeGeometryEP(), and CaloGeometryBuilder::produceAligned().
|
mutableprivate |
Definition at line 110 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 113 of file HcalGeometry.h.
Referenced by cellGeomPtr(), init(), and newCell().
|
mutableprivate |
Definition at line 106 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 114 of file HcalGeometry.h.
Referenced by cellGeomPtr(), init(), and newCell().
|
mutableprivate |
Definition at line 107 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 116 of file HcalGeometry.h.
Referenced by cellGeomPtr(), init(), and newCell().
|
mutableprivate |
Definition at line 109 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 115 of file HcalGeometry.h.
Referenced by cellGeomPtr(), init(), and newCell().
|
mutableprivate |
Definition at line 108 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 111 of file HcalGeometry.h.
Referenced by ~HcalGeometry().
|
private |
Definition at line 104 of file HcalGeometry.h.
Referenced by etaRing(), getCells(), getClosestCell(), phiBin(), and ~HcalGeometry().