#include <EcalEndcapGeometry.h>
Public Member Functions | |
CCGFloat | avgAbsZFrontFaceCenter () const |
EcalEndcapGeometry () | |
CaloSubdetectorGeometry::DetIdSet | getCells (const GlobalPoint &r, double dR) const override |
Get a list of all cells within a dR of the given cell. More... | |
const OrderedListOfEBDetId * | getClosestBarrelCells (EEDetId id) const |
DetId | getClosestCell (const GlobalPoint &r) const override |
int | getNumberOfCrystalPerModule () const |
int | getNumberOfModules () const |
void | initializeParms () override |
void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override |
unsigned int | numberOfParametersPerShape () const override |
unsigned int | numberOfShapes () const override |
bool | present (const DetId &id) const override |
is this detid present in the geometry? More... | |
void | setNumberOfCrystalPerModule (const int nncrys) |
void | setNumberOfModules (const int nnmods) |
~EcalEndcapGeometry () override | |
Public Member Functions inherited from CaloSubdetectorGeometry | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
CaloSubdetectorGeometry (const CaloSubdetectorGeometry &)=delete | |
avoid copies More... | |
CaloCellGeometry::CornersMgr * | cornersMgr () |
CCGFloat | deltaEta (const DetId &detId) const |
CCGFloat | deltaPhi (const DetId &detId) const |
virtual void | fillDefaultNamedParameters () const |
virtual CellSet | getCellSet (const GlobalPoint &r, double dR) const |
virtual std::shared_ptr< const CaloCellGeometry > | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. Should return false if not found. More... | |
virtual void | getSummary (TrVec &trVector, IVec &iVector, DimVec &dimVector, IVec &dinsVector) 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... | |
virtual unsigned int | numberOfTransformParms () const |
CaloSubdetectorGeometry & | operator= (const CaloSubdetectorGeometry &)=delete |
ParMgr * | parMgr () |
const ParMgr * | parMgrConst () const |
ParVecVec & | parVecVec () |
const ParVecVec & | parVecVec () const |
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 DetId | detIdFromLocalAlignmentIndex (unsigned int iLoc) |
static std::string | hitString () |
static void | localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref) |
static unsigned int | numberOfAlignments () |
static std::string | producerTag () |
Protected Member Functions | |
const CaloCellGeometry * | getGeometryRawPtr (uint32_t index) const override |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
virtual std::shared_ptr< const CaloCellGeometry > | cellGeomPtr (uint32_t index) const |
virtual unsigned int | indexFor (const DetId &id) const |
virtual unsigned int | sizeForDenseIndex (const DetId &id) const |
Private Member Functions | |
EEDetId | gId (float x, float y, float z) const |
unsigned int | xindex (CCGFloat x, CCGFloat z) const |
unsigned int | yindex (CCGFloat y, CCGFloat z) const |
Static Private Member Functions | |
static int | myPhi (int i) |
Private Attributes | |
int | _nncrys |
number of crystals per module More... | |
int | _nnmods |
number of modules More... | |
CCGFloat | m_avgZ |
std::atomic< EZMgrFL< EBDetId > * > | m_borderMgr |
std::atomic< VecOrdListEBDetIdPtr * > | m_borderPtrVec |
CellVec | m_cellVec |
std::atomic< bool > | m_check |
CCGFloat | m_del |
unsigned int | m_nref |
CCGFloat | m_wref |
CCGFloat | m_xhi [2] |
CCGFloat | m_xlo [2] |
CCGFloat | m_xoff [2] |
CCGFloat | m_yhi [2] |
CCGFloat | m_ylo [2] |
CCGFloat | m_yoff [2] |
CCGFloat | zeN |
CCGFloat | zeP |
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 20 of file EcalEndcapGeometry.h.
Definition at line 31 of file EcalEndcapGeometry.h.
Definition at line 32 of file EcalEndcapGeometry.h.
Definition at line 26 of file EcalEndcapGeometry.h.
typedef std::vector<TruncatedPyramid> EcalEndcapGeometry::CellVec |
Definition at line 24 of file EcalEndcapGeometry.h.
typedef EEDetId EcalEndcapGeometry::DetIdType |
Definition at line 41 of file EcalEndcapGeometry.h.
Definition at line 30 of file EcalEndcapGeometry.h.
Definition at line 39 of file EcalEndcapGeometry.h.
Definition at line 35 of file EcalEndcapGeometry.h.
Definition at line 33 of file EcalEndcapGeometry.h.
Definition at line 27 of file EcalEndcapGeometry.h.
Definition at line 28 of file EcalEndcapGeometry.h.
typedef std::vector<OrderedListOfEBDetId*> EcalEndcapGeometry::VecOrdListEBDetIdPtr |
Definition at line 37 of file EcalEndcapGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 43 of file EcalEndcapGeometry.h.
anonymous enum |
anonymous enum |
EcalEndcapGeometry::EcalEndcapGeometry | ( | void | ) |
Definition at line 14 of file EcalEndcapGeometry.cc.
References m_xhi, m_xlo, m_xoff, m_yhi, m_ylo, and m_yoff.
Referenced by numberOfParametersPerShape().
|
override |
Definition at line 42 of file EcalEndcapGeometry.cc.
References m_borderMgr, m_borderPtrVec, and findQualityFiles::v.
Referenced by numberOfParametersPerShape().
|
static |
Definition at line 74 of file EcalEndcapGeometry.cc.
References DetId::Ecal.
Referenced by numberOfAlignments().
|
static |
Definition at line 57 of file EcalEndcapGeometry.cc.
References CaloGenericDetId::isEE(), and ecaldqm::zside().
Referenced by numberOfAlignments().
CCGFloat EcalEndcapGeometry::avgAbsZFrontFaceCenter | ( | ) | const |
Definition at line 500 of file EcalEndcapGeometry.cc.
References CaloSubdetectorGeometry::cellGeomPtr(), mps_fire::i, m_avgZ, m_cellVec, and m_check.
Referenced by setNumberOfCrystalPerModule().
|
inlinestatic |
Definition at line 50 of file EcalEndcapGeometry.h.
|
static |
Definition at line 68 of file EcalEndcapGeometry.cc.
Referenced by numberOfAlignments(), FakeCaloAlignmentEP::produceEEAli(), and TestCaloAlignmentEP::produceEEAli().
|
overridevirtual |
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 351 of file EcalEndcapGeometry.cc.
References funct::abs(), reco::deltaR2(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), CaloCellGeometry::etaPos(), CaloSubdetectorGeometry::getCells(), triggerObjects_cff::id, m_cellVec, m_nref, M_PI, m_wref, m_xhi, m_xlo, m_yhi, m_ylo, phi, PV3DBase< T, PVType, FrameType >::phi(), CaloCellGeometry::phiPos(), corrVsCorr::rx, corrVsCorr::ry, funct::tan(), EEDetId::validDetId(), PV3DBase< T, PVType, FrameType >::x(), xindex(), geometryCSVtoXML::xx, PV3DBase< T, PVType, FrameType >::y(), yindex(), geometryCSVtoXML::yy, PV3DBase< T, PVType, FrameType >::z(), zeP, and geometryCSVtoXML::zz.
Referenced by setNumberOfCrystalPerModule().
const EcalEndcapGeometry::OrderedListOfEBDetId * EcalEndcapGeometry::getClosestBarrelCells | ( | EEDetId | id | ) | const |
Definition at line 430 of file EcalEndcapGeometry.cc.
References degrees(), CaloSubdetectorGeometry::getGeometry(), mps_fire::i, m_borderMgr, m_borderPtrVec, myPhi(), phi, and ecaldqm::zside().
Referenced by setNumberOfCrystalPerModule(), spr::simpleMove(), and PFECALHashNavigator::stdsimplemove().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 239 of file EcalEndcapGeometry.cc.
References patCaloMETCorrections_cff::A, TtFullHadDaughter::B, patCaloMETCorrections_cff::C, SoftLeptonByDistance_cfi::distance, MillePedeFileConverter_cfg::e, CaloSubdetectorGeometry::getGeometry(), gId(), mps_fire::i, EEDetId::ix(), EEDetId::iy(), PFRecoTauDiscriminationByIsolation_cfi::offset, point, EEDetId::validDetId(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, PV3DBase< T, PVType, FrameType >::z(), and EEDetId::zside().
Referenced by CaloGeometryHelper::getClosestCell(), and setNumberOfCrystalPerModule().
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 519 of file EcalEndcapGeometry.cc.
References m_cellVec, and CaloCellGeometry::param().
Referenced by numberOfAlignments().
|
inline |
Definition at line 61 of file EcalEndcapGeometry.h.
References _nncrys.
|
inline |
|
private |
Definition at line 203 of file EcalEndcapGeometry.cc.
References mps_fire::i, gen::k, EEDetId::validDetId(), xindex(), yindex(), zeN, and zeP.
Referenced by getClosestCell().
|
inlinestatic |
Definition at line 79 of file EcalEndcapGeometry.h.
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 80 of file EcalEndcapGeometry.cc.
References CaloSubdetectorGeometry::cellGeomPtr(), EEDetId::detIdFromDenseIndex(), mps_fire::i, EEDetId::ix(), EEDetId::iy(), m_cellVec, m_del, m_nref, m_wref, m_xhi, m_xlo, m_xoff, m_yhi, m_ylo, m_yoff, AlCaHLTBitMon_ParallelJobs::p, x, y, z, zeN, zeP, and geometryCSVtoXML::zz.
Referenced by setNumberOfCrystalPerModule().
|
static |
Definition at line 477 of file EcalEndcapGeometry.cc.
References TruncatedPyramid::localCorners().
Referenced by numberOfAlignments().
|
inlinestaticprivate |
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 486 of file EcalEndcapGeometry.cc.
References CaloSubdetectorGeometry::addValidID(), CaloSubdetectorGeometry::cornersMgr(), and m_cellVec.
Referenced by numberOfAlignments().
|
inlinestatic |
Definition at line 83 of file EcalEndcapGeometry.h.
References alignmentTransformIndexGlobal(), alignmentTransformIndexLocal(), detIdFromLocalAlignmentIndex(), connectstrParser::f1, connectstrParser::f2, connectstrParser::f3, getGeometryRawPtr(), mps_fire::i, localCorners(), newCell(), present(), and MetAnalyzer::pv().
Referenced by FakeCaloAlignmentEP::produceEEAli(), and TestCaloAlignmentEP::produceEEAli().
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 53 of file EcalEndcapGeometry.h.
References EcalEndcapGeometry(), k_NumberOfParametersPerShape, and ~EcalEndcapGeometry().
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 52 of file EcalEndcapGeometry.h.
References k_NumberOfShapes.
|
overridevirtual |
is this detid present in the geometry?
Reimplemented from CaloSubdetectorGeometry.
Definition at line 526 of file EcalEndcapGeometry.cc.
References DetId::Ecal, EcalEndcap, EEDetId::ix(), EEDetId::iy(), EEDetId::validDetId(), and EEDetId::zside().
Referenced by spr::extraIds(), and numberOfAlignments().
|
inlinestatic |
Definition at line 81 of file EcalEndcapGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().
|
inline |
Definition at line 65 of file EcalEndcapGeometry.h.
References _nncrys, avgAbsZFrontFaceCenter(), PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, getCells(), getClosestBarrelCells(), getClosestCell(), initializeParms(), and alignCSCRings::r.
|
inline |
Definition at line 180 of file EcalEndcapGeometry.cc.
References mps_fire::i, m_nref, m_wref, and m_xlo.
Referenced by getCells(), and gId().
Definition at line 192 of file EcalEndcapGeometry.cc.
References mps_fire::i, m_nref, m_wref, and m_ylo.
Referenced by getCells(), and gId().
|
private |
number of crystals per module
Definition at line 116 of file EcalEndcapGeometry.h.
Referenced by getNumberOfCrystalPerModule(), and setNumberOfCrystalPerModule().
|
private |
number of modules
Definition at line 113 of file EcalEndcapGeometry.h.
Referenced by getNumberOfModules(), and setNumberOfModules().
|
mutableprivate |
Definition at line 133 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter().
Definition at line 129 of file EcalEndcapGeometry.h.
Referenced by getClosestBarrelCells(), and ~EcalEndcapGeometry().
|
mutableprivate |
Definition at line 131 of file EcalEndcapGeometry.h.
Referenced by getClosestBarrelCells(), and ~EcalEndcapGeometry().
|
private |
Definition at line 136 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter(), getCells(), getGeometryRawPtr(), initializeParms(), and newCell().
|
mutableprivate |
Definition at line 134 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by initializeParms().
|
private |
Definition at line 122 of file EcalEndcapGeometry.h.
Referenced by getCells(), initializeParms(), xindex(), and yindex().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by getCells(), initializeParms(), xindex(), and yindex().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), and initializeParms().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), initializeParms(), and xindex().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), and initializeParms().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), and initializeParms().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), initializeParms(), and yindex().
|
private |
Definition at line 120 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), and initializeParms().
|
private |
Definition at line 118 of file EcalEndcapGeometry.h.
Referenced by gId(), and initializeParms().
|
private |
Definition at line 118 of file EcalEndcapGeometry.h.
Referenced by getCells(), gId(), and initializeParms().