#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 28 of file EcalBarrelGeometry.h.
Definition at line 29 of file EcalBarrelGeometry.h.
Definition at line 23 of file EcalBarrelGeometry.h.
typedef std::vector<TruncatedPyramid> EcalBarrelGeometry::CellVec |
Definition at line 21 of file EcalBarrelGeometry.h.
typedef EBDetId EcalBarrelGeometry::DetIdType |
Definition at line 38 of file EcalBarrelGeometry.h.
Definition at line 27 of file EcalBarrelGeometry.h.
Definition at line 36 of file EcalBarrelGeometry.h.
Definition at line 32 of file EcalBarrelGeometry.h.
Definition at line 30 of file EcalBarrelGeometry.h.
Definition at line 24 of file EcalBarrelGeometry.h.
Definition at line 25 of file EcalBarrelGeometry.h.
typedef std::vector<OrderedListOfEEDetId*> EcalBarrelGeometry::VecOrdListEEDetIdPtr |
Definition at line 34 of file EcalBarrelGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 40 of file EcalBarrelGeometry.h.
anonymous enum |
anonymous enum |
EcalBarrelGeometry::EcalBarrelGeometry | ( | ) |
Definition at line 20 of file EcalBarrelGeometry.cc.
References _EtaBaskets.
|
override |
Definition at line 33 of file EcalBarrelGeometry.cc.
References m_borderMgr, m_borderPtrVec, and findQualityFiles::v.
|
static |
Definition at line 59 of file EcalBarrelGeometry.cc.
References DetId::Ecal.
|
static |
Definition at line 45 of file EcalBarrelGeometry.cc.
References cms::cuda::assert(), CaloGenericDetId::isEB(), and ecalpyutils::ism().
CCGFloat EcalBarrelGeometry::avgRadiusXYFrontFaceCenter | ( | ) | const |
Definition at line 419 of file EcalBarrelGeometry.cc.
References CaloSubdetectorGeometry::cellGeomPtr(), mps_fire::i, m_cellVec, m_check, and m_radius.
|
inlinestatic |
Definition at line 46 of file EcalBarrelGeometry.h.
|
static |
Definition at line 55 of file EcalBarrelGeometry.cc.
References EBDetId::SMCRYSTALMODE.
Referenced by FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inline |
Definition at line 61 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 266 of file EcalBarrelGeometry.cc.
References funct::abs(), reco::deltaR2(), Calorimetry_cff::dp, HGC3DClusterGenMatchSelector_cfi::dR, PVValHelper::eta, CaloCellGeometry::etaPos(), f, CaloSubdetectorGeometry::getCells(), l1ctLayer2EG_cff::id, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, m_cellVec, M_PI, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, convertSQLiteXML::ok, phi, CaloCellGeometry::phiPos(), alignCSCRings::r, and pfClustersFromCombinedCaloHF_cfi::scale.
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 63 of file EcalBarrelGeometry.cc.
References _nnxtalPhi, A, B, newFWLiteAna::bin, correctionTermsCaloMet_cff::C, filterCSVwithJSON::copy, HLT_2022v15_cff::distance, MillePedeFileConverter_cfg::e, PVValHelper::eta, EBDetId::ETAPHIMODE, CaloSubdetectorGeometry::getGeometry(), mps_fire::i, EBDetId::ieta(), createfilelist::int, EBDetId::iphi(), M_PI, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, point, present(), alignCSCRings::r, x, y, and z.
Referenced by CaloGeometryHelper::getClosestCell().
const EcalBarrelGeometry::OrderedListOfEEDetId * EcalBarrelGeometry::getClosestEndcapCells | ( | EBDetId | id | ) | const |
Definition at line 338 of file EcalBarrelGeometry.cc.
References mps_fire::i, EEDetId::idOuterRing(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, EEDetId::iquadrant(), EEDetId::ix(), EEDetId::iy(), dqmdumpme::k, m_borderMgr, m_borderPtrVec, and EEDetId::validDetId().
Referenced by spr::simpleMove(), and PFECALHashNavigator::stdsimplemove().
|
inline |
Definition at line 59 of file EcalBarrelGeometry.h.
References _EtaBaskets.
Referenced by ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction().
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 435 of file EcalBarrelGeometry.cc.
References m_cellVec, and CaloCellGeometry::param().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 81 of file EcalBarrelGeometry.h.
|
static |
Definition at line 401 of file EcalBarrelGeometry.cc.
References mps_fire::i, EBDetId::kSizeForDenseIndexing, TruncatedPyramid::localCornersReflection(), and TruncatedPyramid::localCornersSwap().
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 412 of file EcalBarrelGeometry.cc.
References CaloSubdetectorGeometry::addValidID(), CaloSubdetectorGeometry::cornersMgr(), DeadROC_duringRun::f1, DeadROC_duringRun::f2, and m_cellVec.
|
inlinestatic |
Definition at line 85 of file EcalBarrelGeometry.h.
Referenced by FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 49 of file EcalBarrelGeometry.h.
References k_NumberOfParametersPerShape.
|
inlineoverridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 48 of file EcalBarrelGeometry.h.
References k_NumberOfShapes.
|
overridevirtual |
is this detid present in the geometry?
Reimplemented from CaloSubdetectorGeometry.
Definition at line 441 of file EcalBarrelGeometry.cc.
References DetId::Ecal, EcalBarrel, EBDetId::ieta(), EBDetId::iphi(), and EBDetId::validDetId().
Referenced by spr::extraIds(), and getClosestCell().
|
inlinestatic |
Definition at line 83 of file EcalBarrelGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), CaloGeometryBuilder::CaloGeometryBuilder(), and PCaloGeometryBuilder::PCaloGeometryBuilder().
|
inline |
|
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 118 of file EcalBarrelGeometry.h.
Referenced by EcalBarrelGeometry(), getEtaBaskets(), and setEtaBaskets().
|
private |
number of crystals in eta direction
Definition at line 109 of file EcalBarrelGeometry.h.
Referenced by getNumXtalsEtaDirection(), and setNumXtalsEtaDirection().
|
private |
number of crystals in phi direction
Definition at line 112 of file EcalBarrelGeometry.h.
Referenced by getClosestCell(), getNumXtalsPhiDirection(), and setNumXtalsPhiDirection().
|
private |
size of one basket in phi
Definition at line 121 of file EcalBarrelGeometry.h.
Referenced by getBasketSizeInPhi(), and setBasketSizeInPhi().
Definition at line 123 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
mutableprivate |
Definition at line 125 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
private |
Definition at line 129 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter(), getCells(), getGeometryRawPtr(), and newCell().
|
mutableprivate |
Definition at line 127 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter().
|
mutableprivate |
Definition at line 126 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter().