![]() |
![]() |
#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 HcalDetId | DetIdType |
typedef PHcalRcd | PGeometryRecord |
![]() | |
typedef std::vector< const CaloCellGeometry * > | CellCont |
typedef std::set< DetId > | DetIdSet |
typedef std::vector< double > | DimVec |
typedef std::vector< unsigned int > | IVec |
typedef CaloCellGeometry::ParMgr | ParMgr |
typedef CaloCellGeometry::ParVec | ParVec |
typedef CaloCellGeometry::ParVecVec | ParVecVec |
typedef std::vector< double > | 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 unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual | ~HcalGeometry () |
The HcalGeometry will delete all its cell geometries at destruction time. More... | |
![]() | |
void | addCell (const DetId &id, CaloCellGeometry *ccg) |
Add a cell to the geometry. More... | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
const CellCont & | cellGeometries () const |
the cells More... | |
CaloCellGeometry::CornersMgr * | cornersMgr () |
double | deltaEta (const DetId &detId) const |
double | 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 std::vector < HepGeom::Point3D< double > > | localCorners (const double *pv, unsigned int i, HepGeom::Point3D< double > &ref) |
static CaloCellGeometry * | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, CaloCellGeometry::CornersMgr *mgr, const double *parm, const DetId &detId) |
static unsigned int | numberOfAlignments () |
static unsigned int | numberOfBarrelAlignments () |
static unsigned int | numberOfEndcapAlignments () |
static unsigned int | numberOfForwardAlignments () |
static unsigned int | numberOfOuterAlignments () |
static std::string | producerTag () |
Private Member Functions | |
int | etaRing (HcalSubdetector bc, double abseta) const |
helper methods for getClosestCell More... | |
void | fillDetIds () const |
int | phiBin (double phi, int etaring) const |
Private Attributes | |
std::vector< DetId > | m_emptyIds |
std::vector< DetId > | m_hbIds |
std::vector< DetId > | m_heIds |
std::vector< DetId > | m_hfIds |
std::vector< DetId > | m_hoIds |
bool | m_ownsTopology |
const HcalTopology * | theTopology |
Additional Inherited Members | |
![]() | |
static double | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
![]() | |
ParVecVec | m_parVecVec |
Definition at line 10 of file HcalGeometry.h.
Definition at line 15 of file HcalGeometry.h.
Definition at line 14 of file HcalGeometry.h.
typedef HcalDetId HcalGeometry::DetIdType |
Definition at line 17 of file HcalGeometry.h.
Definition at line 16 of file HcalGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 19 of file HcalGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfShapes |
Definition at line 21 of file HcalGeometry.h.
anonymous enum |
HcalGeometry::HcalGeometry | ( | ) |
Definition at line 9 of file HcalGeometry.cc.
HcalGeometry::HcalGeometry | ( | const HcalTopology * | topology | ) |
Definition at line 15 of file HcalGeometry.cc.
|
virtual |
The HcalGeometry will delete all its cell geometries at destruction time.
Definition at line 22 of file HcalGeometry.cc.
References m_ownsTopology, and theTopology.
|
static |
Definition at line 326 of file HcalGeometry.cc.
References DetId::Hcal.
|
static |
Definition at line 281 of file HcalGeometry.cc.
References getHLTprescales::index, CaloGenericDetId::isHB(), CaloGenericDetId::isHcal(), CaloGenericDetId::isHE(), CaloGenericDetId::isHF(), CaloGenericDetId::isHO(), numberOfAlignments(), numberOfBarrelAlignments(), numberOfEndcapAlignments(), numberOfForwardAlignments(), and relativeConstraints::ring.
|
inlinestatic |
Definition at line 25 of file HcalGeometry.h.
|
private |
helper methods for getClosestCell
Definition at line 151 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 29 of file HcalGeometry.cc.
References CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, 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 203 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, L1TEmulatorMonitor_cff::p, phi, PV3DBase< T, PVType, FrameType >::phi(), phiBin(), theHFEtaBounds, theTopology, and HcalDetId::validDetId().
|
virtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 81 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 69 of file HcalGeometry.cc.
References fillDetIds(), CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, m_emptyIds, m_hbIds, m_heIds, m_hfIds, and m_hoIds.
|
static |
Definition at line 332 of file HcalGeometry.cc.
References HcalDetId::detIdFromDenseIndex(), CaloGenericDetId::isHF(), calogeom::IdealZPrism::localCorners(), and calogeom::IdealObliquePrism::localCorners().
|
static |
Definition at line 349 of file HcalGeometry.cc.
References CaloGenericDetId::isHcal(), and CaloGenericDetId::isHF().
|
inlinestatic |
Definition at line 58 of file HcalGeometry.h.
References numberOfBarrelAlignments(), numberOfEndcapAlignments(), numberOfForwardAlignments(), and numberOfOuterAlignments().
Referenced by alignmentTransformIndexLocal(), and HcalAlignmentEP::produceHcalAli().
|
inlinestatic |
Definition at line 50 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), FakeCaloAlignmentEP::produceHBAli(), TestCaloAlignmentEP::produceHBAli(), and HcalAlignmentEP::produceHcalAli().
|
inlinestatic |
Definition at line 52 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHEAli(), and TestCaloAlignmentEP::produceHEAli().
|
inlinestatic |
Definition at line 56 of file HcalGeometry.h.
Referenced by alignmentTransformIndexLocal(), numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHFAli(), and TestCaloAlignmentEP::produceHFAli().
|
inlinestatic |
Definition at line 54 of file HcalGeometry.h.
Referenced by numberOfAlignments(), HcalAlignmentEP::produceHcalAli(), FakeCaloAlignmentEP::produceHOAli(), and TestCaloAlignmentEP::produceHOAli().
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 28 of file HcalGeometry.h.
References k_NumberOfParametersPerShape.
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 27 of file HcalGeometry.h.
References k_NumberOfShapes.
|
private |
Definition at line 174 of file HcalGeometry.cc.
References HcalTopology::firstHFQuadPhiRing(), M_PI, HcalTopology::nPhiBins(), and theTopology.
Referenced by getCells(), and getClosestCell().
|
inlinestatic |
Definition at line 48 of file HcalGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), HcalHardcodeGeometryEP::HcalHardcodeGeometryEP(), and CaloGeometryBuilder::produceAligned().
|
mutableprivate |
Definition at line 95 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 91 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 92 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 94 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 93 of file HcalGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 96 of file HcalGeometry.h.
Referenced by ~HcalGeometry().
|
private |
Definition at line 89 of file HcalGeometry.h.
Referenced by etaRing(), getCells(), getClosestCell(), phiBin(), and ~HcalGeometry().