#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 |
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 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 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 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 * | cellGeomPtr (uint32_t index) const override |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
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 diffTreeTool::index, CaloGenericDetId::isEE(), and HcalDigiParam_cfi::zside.
Referenced by numberOfAlignments().
CCGFloat EcalEndcapGeometry::avgAbsZFrontFaceCenter | ( | ) | const |
Definition at line 500 of file EcalEndcapGeometry.cc.
References cellGeomPtr(), CaloCellGeometry::getPosition(), mps_fire::i, m_avgZ, m_cellVec, m_check, and PV3DBase< T, PVType, FrameType >::z().
Referenced by setNumberOfCrystalPerModule().
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 520 of file EcalEndcapGeometry.cc.
References m_cellVec, and CaloCellGeometry::param().
Referenced by avgAbsZFrontFaceCenter(), initializeParms(), and numberOfAlignments().
|
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 HcalDigiParam_cfi::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, CaloCellGeometry::getCorners(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), 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().
|
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 78 of file EcalEndcapGeometry.h.
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 80 of file EcalEndcapGeometry.cc.
References cellGeomPtr(), EEDetId::detIdFromDenseIndex(), CaloCellGeometry::getPosition(), 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, PV3DBase< T, PVType, FrameType >::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 82 of file EcalEndcapGeometry.h.
References alignmentTransformIndexGlobal(), alignmentTransformIndexLocal(), cellGeomPtr(), detIdFromLocalAlignmentIndex(), connectstrParser::f1, connectstrParser::f2, connectstrParser::f3, mps_fire::i, diffTreeTool::index, localCorners(), newCell(), 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.
|
inlinestatic |
Definition at line 80 of file EcalEndcapGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().
|
inline |
Definition at line 65 of file EcalEndcapGeometry.h.
References _nncrys, avgAbsZFrontFaceCenter(), PFRecoTauDiscriminationAgainstElectronDeadECAL_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 113 of file EcalEndcapGeometry.h.
Referenced by getNumberOfCrystalPerModule(), and setNumberOfCrystalPerModule().
|
private |
number of modules
Definition at line 110 of file EcalEndcapGeometry.h.
Referenced by getNumberOfModules(), and setNumberOfModules().
|
mutableprivate |
Definition at line 130 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter().
Definition at line 126 of file EcalEndcapGeometry.h.
Referenced by getClosestBarrelCells(), and ~EcalEndcapGeometry().
|
mutableprivate |
Definition at line 128 of file EcalEndcapGeometry.h.
Referenced by getClosestBarrelCells(), and ~EcalEndcapGeometry().
|
private |
Definition at line 133 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter(), cellGeomPtr(), getCells(), initializeParms(), and newCell().
|
mutableprivate |
Definition at line 131 of file EcalEndcapGeometry.h.
Referenced by avgAbsZFrontFaceCenter().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by initializeParms().
|
private |
Definition at line 119 of file EcalEndcapGeometry.h.
Referenced by getCells(), initializeParms(), xindex(), and yindex().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by getCells(), initializeParms(), xindex(), and yindex().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), and initializeParms().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), initializeParms(), and xindex().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), and initializeParms().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), and initializeParms().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), getCells(), initializeParms(), and yindex().
|
private |
Definition at line 117 of file EcalEndcapGeometry.h.
Referenced by EcalEndcapGeometry(), and initializeParms().
|
private |
Definition at line 115 of file EcalEndcapGeometry.h.
Referenced by gId(), and initializeParms().
|
private |
Definition at line 115 of file EcalEndcapGeometry.h.
Referenced by getCells(), gId(), and initializeParms().