#include <EcalBarrelGeometry.h>
Public Member Functions | |
CCGFloat | avgRadiusXYFrontFaceCenter () const |
EcalBarrelGeometry () | |
int | getBasketSizeInPhi () const |
CaloSubdetectorGeometry::DetIdSet | getCells (const GlobalPoint &r, double dR) const override |
Get a list of all cells within a dR of the given cell. More... | |
DetId | getClosestCell (const GlobalPoint &r) const override |
const OrderedListOfEEDetId * | getClosestEndcapCells (EBDetId id) const |
const std::vector< int > & | getEtaBaskets () const |
int | getNumXtalsEtaDirection () const |
int | getNumXtalsPhiDirection () const |
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 | setBasketSizeInPhi (const int &PhiBaskets) |
void | setEtaBaskets (const std::vector< int > &EtaBaskets) |
void | setNumXtalsEtaDirection (const int &nnxtalEta) |
void | setNumXtalsPhiDirection (const int &nnxtalPhi) |
~EcalBarrelGeometry () 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 void | initializeParms () |
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 Attributes | |
std::vector< int > | _EtaBaskets |
int | _nnxtalEta |
int | _nnxtalPhi |
int | _PhiBaskets |
std::atomic< EZMgrFL< EEDetId > * > | m_borderMgr |
std::atomic< VecOrdListEEDetIdPtr * > | m_borderPtrVec |
CellVec | m_cellVec |
std::atomic< bool > | m_check |
CCGFloat | m_radius |
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 19 of file EcalBarrelGeometry.h.
Definition at line 30 of file EcalBarrelGeometry.h.
Definition at line 31 of file EcalBarrelGeometry.h.
Definition at line 25 of file EcalBarrelGeometry.h.
typedef std::vector<TruncatedPyramid> EcalBarrelGeometry::CellVec |
Definition at line 23 of file EcalBarrelGeometry.h.
typedef EBDetId EcalBarrelGeometry::DetIdType |
Definition at line 40 of file EcalBarrelGeometry.h.
Definition at line 29 of file EcalBarrelGeometry.h.
Definition at line 38 of file EcalBarrelGeometry.h.
Definition at line 34 of file EcalBarrelGeometry.h.
Definition at line 32 of file EcalBarrelGeometry.h.
Definition at line 26 of file EcalBarrelGeometry.h.
Definition at line 27 of file EcalBarrelGeometry.h.
typedef std::vector<OrderedListOfEEDetId*> EcalBarrelGeometry::VecOrdListEEDetIdPtr |
Definition at line 36 of file EcalBarrelGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 42 of file EcalBarrelGeometry.h.
anonymous enum |
anonymous enum |
EcalBarrelGeometry::EcalBarrelGeometry | ( | ) |
Definition at line 20 of file EcalBarrelGeometry.cc.
References _EtaBaskets.
Referenced by numberOfParametersPerShape().
|
override |
Definition at line 35 of file EcalBarrelGeometry.cc.
References m_borderMgr, m_borderPtrVec, and findQualityFiles::v.
Referenced by numberOfParametersPerShape().
|
static |
Definition at line 69 of file EcalBarrelGeometry.cc.
References DetId::Ecal.
Referenced by numberOfAlignments().
|
static |
Definition at line 51 of file EcalBarrelGeometry.cc.
References CaloGenericDetId::isEB(), and ecalpyutils::ism().
Referenced by numberOfAlignments().
CCGFloat EcalBarrelGeometry::avgRadiusXYFrontFaceCenter | ( | ) | const |
Definition at line 476 of file EcalBarrelGeometry.cc.
References CaloSubdetectorGeometry::cellGeomPtr(), mps_fire::i, m_cellVec, m_check, and m_radius.
Referenced by setBasketSizeInPhi().
|
inlinestatic |
Definition at line 48 of file EcalBarrelGeometry.h.
|
static |
Definition at line 63 of file EcalBarrelGeometry.cc.
References EBDetId::SMCRYSTALMODE.
Referenced by numberOfAlignments(), FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inline |
Definition at line 63 of file EcalBarrelGeometry.h.
References _PhiBaskets.
Referenced by ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction().
|
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 302 of file EcalBarrelGeometry.cc.
References funct::abs(), constexpr, reco::deltaR2(), PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), CaloCellGeometry::etaPos(), f, CaloSubdetectorGeometry::getCells(), triggerObjects_cff::id, m_cellVec, M_PI, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, convertSQLiteXML::ok, phi, PV3DBase< T, PVType, FrameType >::phi(), CaloCellGeometry::phiPos(), Scenarios_cff::scale, and PV3DBase< T, PVType, FrameType >::z().
Referenced by setBasketSizeInPhi().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 75 of file EcalBarrelGeometry.cc.
References _nnxtalPhi, patCaloMETCorrections_cff::A, TtFullHadDaughter::B, stringResolutionProvider_cfi::bin, patCaloMETCorrections_cff::C, constexpr, popcon2dropbox::copy(), SoftLeptonByDistance_cfi::distance, MillePedeFileConverter_cfg::e, PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), EBDetId::ETAPHIMODE, CaloSubdetectorGeometry::getGeometry(), mps_fire::i, EBDetId::ieta(), createfilelist::int, EBDetId::iphi(), M_PI, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, PV3DBase< T, PVType, FrameType >::phi(), point, present(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by CaloGeometryHelper::getClosestCell(), and setBasketSizeInPhi().
const EcalBarrelGeometry::OrderedListOfEEDetId * EcalBarrelGeometry::getClosestEndcapCells | ( | EBDetId | id | ) | const |
Definition at line 382 of file EcalBarrelGeometry.cc.
References mps_fire::i, EEDetId::idOuterRing(), EEDetId::iquadrant(), EEDetId::ix(), EEDetId::iy(), gen::k, m_borderMgr, m_borderPtrVec, and EEDetId::validDetId().
Referenced by setBasketSizeInPhi(), spr::simpleMove(), and PFECALHashNavigator::stdsimplemove().
|
inline |
Definition at line 61 of file EcalBarrelGeometry.h.
References _EtaBaskets.
Referenced by ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction().
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 496 of file EcalBarrelGeometry.cc.
References m_cellVec, and CaloCellGeometry::param().
Referenced by numberOfAlignments().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 84 of file EcalBarrelGeometry.h.
|
static |
Definition at line 443 of file EcalBarrelGeometry.cc.
References EBDetId::kSizeForDenseIndexing, TruncatedPyramid::localCornersReflection(), and TruncatedPyramid::localCornersSwap().
Referenced by numberOfAlignments().
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 463 of file EcalBarrelGeometry.cc.
References CaloSubdetectorGeometry::addValidID(), CaloSubdetectorGeometry::cornersMgr(), and m_cellVec.
Referenced by numberOfAlignments().
|
inlinestatic |
Definition at line 88 of file EcalBarrelGeometry.h.
References alignmentTransformIndexGlobal(), alignmentTransformIndexLocal(), detIdFromLocalAlignmentIndex(), connectstrParser::f1, connectstrParser::f2, connectstrParser::f3, getGeometryRawPtr(), mps_fire::i, localCorners(), newCell(), present(), and MetAnalyzer::pv().
Referenced by FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 51 of file EcalBarrelGeometry.h.
References EcalBarrelGeometry(), k_NumberOfParametersPerShape, and ~EcalBarrelGeometry().
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 50 of file EcalBarrelGeometry.h.
References k_NumberOfShapes.
|
overridevirtual |
is this detid present in the geometry?
Reimplemented from CaloSubdetectorGeometry.
Definition at line 503 of file EcalBarrelGeometry.cc.
References DetId::Ecal, EcalBarrel, EBDetId::ieta(), EBDetId::iphi(), and EBDetId::validDetId().
Referenced by spr::extraIds(), getClosestCell(), and numberOfAlignments().
|
inlinestatic |
Definition at line 86 of file EcalBarrelGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().
|
inline |
Definition at line 71 of file EcalBarrelGeometry.h.
References _PhiBaskets, avgRadiusXYFrontFaceCenter(), getCells(), getClosestCell(), getClosestEndcapCells(), and alignCSCRings::r.
|
inline |
|
inline |
|
inline |
|
private |
size of the baskets in the eta direction. This is needed to find out whether two adjacent crystals lie in the same basked ('module') or not (e.g. this can be used for correcting cluster energies etc.)
Definition at line 126 of file EcalBarrelGeometry.h.
Referenced by EcalBarrelGeometry(), getEtaBaskets(), and setEtaBaskets().
|
private |
number of crystals in eta direction
Definition at line 117 of file EcalBarrelGeometry.h.
Referenced by getNumXtalsEtaDirection(), and setNumXtalsEtaDirection().
|
private |
number of crystals in phi direction
Definition at line 120 of file EcalBarrelGeometry.h.
Referenced by getClosestCell(), getNumXtalsPhiDirection(), and setNumXtalsPhiDirection().
|
private |
size of one basket in phi
Definition at line 129 of file EcalBarrelGeometry.h.
Referenced by getBasketSizeInPhi(), and setBasketSizeInPhi().
Definition at line 131 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
mutableprivate |
Definition at line 133 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
private |
Definition at line 137 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter(), getCells(), getGeometryRawPtr(), and newCell().
|
mutableprivate |
Definition at line 135 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter().
|
mutableprivate |
Definition at line 134 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter().