#include <EcalBarrelGeometry.h>
Public Types | |
enum | { k_NumberOfCellsForCorners = EBDetId::kSizeForDenseIndexing } |
enum | { k_NumberOfShapes = 17 } |
enum | { k_NumberOfParametersPerShape = 11 } |
typedef EcalBarrelGeometryRecord | AlignedRecord |
typedef EBAlignmentRcd | AlignmentRecord |
typedef EBDetId | DetIdType |
typedef IdealGeometryRecord | IdealRecord |
typedef EcalBarrelNumberingScheme | NumberingScheme |
typedef EZArrayFL< EEDetId > | OrderedListOfEEDetId |
typedef PEcalBarrelRcd | PGeometryRecord |
typedef std::vector < OrderedListOfEEDetId * > | VecOrdListEEDetIdPtr |
Public Types inherited from CaloSubdetectorGeometry | |
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 | |
double | avgRadiusXYFrontFaceCenter () const |
EcalBarrelGeometry () | |
int | getBasketSizeInPhi () const |
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 |
const OrderedListOfEEDetId * | getClosestEndcapCells (EBDetId id) const |
const std::vector< int > & | getEtaBaskets () const |
int | getNumXtalsEtaDirection () const |
int | getNumXtalsPhiDirection () const |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
void | setBasketSizeInPhi (const int &PhiBaskets) |
void | setEtaBaskets (const std::vector< int > &EtaBaskets) |
void | setNumXtalsEtaDirection (const int &nnxtalEta) |
void | setNumXtalsPhiDirection (const int &nnxtalPhi) |
virtual | ~EcalBarrelGeometry () |
Public Member Functions inherited from CaloSubdetectorGeometry | |
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 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 |
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 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 std::string | producerTag () |
Private Attributes | |
std::vector< int > | _EtaBaskets |
int | _nnxtalEta |
int | _nnxtalPhi |
int | _PhiBaskets |
EZMgrFL< EEDetId > * | m_borderMgr |
VecOrdListEEDetIdPtr * | m_borderPtrVec |
double | m_radius |
Additional Inherited Members | |
Static Protected Member Functions inherited from CaloSubdetectorGeometry | |
static double | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
Protected Attributes inherited from CaloSubdetectorGeometry | |
ParVecVec | m_parVecVec |
Definition at line 16 of file EcalBarrelGeometry.h.
Definition at line 21 of file EcalBarrelGeometry.h.
Definition at line 22 of file EcalBarrelGeometry.h.
typedef EBDetId EcalBarrelGeometry::DetIdType |
Definition at line 31 of file EcalBarrelGeometry.h.
Definition at line 20 of file EcalBarrelGeometry.h.
Definition at line 29 of file EcalBarrelGeometry.h.
Definition at line 25 of file EcalBarrelGeometry.h.
Definition at line 23 of file EcalBarrelGeometry.h.
typedef std::vector<OrderedListOfEEDetId*> EcalBarrelGeometry::VecOrdListEEDetIdPtr |
Definition at line 27 of file EcalBarrelGeometry.h.
anonymous enum |
Enumerator | |
---|---|
k_NumberOfCellsForCorners |
Definition at line 33 of file EcalBarrelGeometry.h.
anonymous enum |
anonymous enum |
EcalBarrelGeometry::EcalBarrelGeometry | ( | ) |
Definition at line 15 of file EcalBarrelGeometry.cc.
References _EtaBaskets.
|
virtual |
Definition at line 28 of file EcalBarrelGeometry.cc.
References m_borderMgr, and m_borderPtrVec.
|
static |
Definition at line 54 of file EcalBarrelGeometry.cc.
References DetId::Ecal.
|
static |
Definition at line 36 of file EcalBarrelGeometry.cc.
References getHLTprescales::index, CaloGenericDetId::isEB(), and ecalpyutils::ism().
double EcalBarrelGeometry::avgRadiusXYFrontFaceCenter | ( | ) | const |
Definition at line 456 of file EcalBarrelGeometry.cc.
References CaloSubdetectorGeometry::cellGeometries(), i, and m_radius.
|
inlinestatic |
Definition at line 39 of file EcalBarrelGeometry.h.
|
static |
Definition at line 48 of file EcalBarrelGeometry.cc.
References EBDetId::SMCRYSTALMODE.
Referenced by FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inline |
Definition at line 54 of file EcalBarrelGeometry.h.
References _PhiBaskets.
Referenced by ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction().
|
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 287 of file EcalBarrelGeometry.cc.
References abs, reco::deltaR2(), PV3DBase< T, PVType, FrameType >::eta(), eta(), CaloSubdetectorGeometry::getCells(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), M_PI, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, convertSQLiteXML::ok, L1TEmulatorMonitor_cff::p, phi, PV3DBase< T, PVType, FrameType >::phi(), and PV3DBase< T, PVType, FrameType >::z().
|
virtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 60 of file EcalBarrelGeometry.cc.
References _nnxtalPhi, funct::A, newFWLiteAna::bin, funct::C, cmsDriverOptions::counter, PV3DBase< T, PVType, FrameType >::eta(), eta(), EBDetId::ETAPHIMODE, CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), i, EBDetId::ieta(), EBDetId::iphi(), M_PI, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, PV3DBase< T, PVType, FrameType >::phi(), point, CaloSubdetectorGeometry::present(), x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by spr::chargeIsolationEcal(), CaloGeometryHelper::getClosestCell(), and spr::propagateCALO().
const EcalBarrelGeometry::OrderedListOfEEDetId * EcalBarrelGeometry::getClosestEndcapCells | ( | EBDetId | id | ) | const |
Definition at line 370 of file EcalBarrelGeometry.cc.
References i, EEDetId::idOuterRing(), EEDetId::iquadrant(), EEDetId::ix(), EEDetId::iy(), gen::k, m_borderMgr, m_borderPtrVec, and EEDetId::validDetId().
Referenced by spr::simpleMove(), and PFRecHitProducerECAL::stdsimplemove().
|
inline |
Definition at line 52 of file EcalBarrelGeometry.h.
References _EtaBaskets.
Referenced by ClusterShapeAlgo::Calculate_BarrelBasketEnergyFraction().
|
inline |
|
inline |
|
inlinestatic |
Definition at line 74 of file EcalBarrelGeometry.h.
|
static |
Definition at line 432 of file EcalBarrelGeometry.cc.
References EBDetId::kSizeForDenseIndexing, TruncatedPyramid::localCornersReflection(), and TruncatedPyramid::localCornersSwap().
|
static |
Definition at line 445 of file EcalBarrelGeometry.cc.
|
inlinestatic |
Definition at line 78 of file EcalBarrelGeometry.h.
Referenced by FakeCaloAlignmentEP::produceEBAli(), and TestCaloAlignmentEP::produceEBAli().
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 42 of file EcalBarrelGeometry.h.
References k_NumberOfParametersPerShape.
|
inlinevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 41 of file EcalBarrelGeometry.h.
References k_NumberOfShapes.
|
inlinestatic |
Definition at line 76 of file EcalBarrelGeometry.h.
Referenced by PCaloGeometryBuilder::beginRun(), and CaloGeometryBuilder::produceAligned().
|
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 108 of file EcalBarrelGeometry.h.
Referenced by EcalBarrelGeometry(), getEtaBaskets(), and setEtaBaskets().
|
private |
number of crystals in eta direction
Definition at line 99 of file EcalBarrelGeometry.h.
Referenced by getNumXtalsEtaDirection(), and setNumXtalsEtaDirection().
|
private |
number of crystals in phi direction
Definition at line 102 of file EcalBarrelGeometry.h.
Referenced by getClosestCell(), getNumXtalsPhiDirection(), and setNumXtalsPhiDirection().
|
private |
size of one basket in phi
Definition at line 111 of file EcalBarrelGeometry.h.
Referenced by getBasketSizeInPhi(), and setBasketSizeInPhi().
Definition at line 113 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
mutableprivate |
Definition at line 115 of file EcalBarrelGeometry.h.
Referenced by getClosestEndcapCells(), and ~EcalBarrelGeometry().
|
mutableprivate |
Definition at line 117 of file EcalBarrelGeometry.h.
Referenced by avgRadiusXYFrontFaceCenter().