#include <CaloCellGeometry.h>
Public Types | |
typedef float | CCGFloat |
typedef EZMgrFL< GlobalPoint > | CornersMgr |
typedef EZArrayFL< GlobalPoint > | CornersVec |
typedef EZMgrFL< CCGFloat > | ParMgr |
typedef EZArrayFL< CCGFloat > | ParVec |
typedef std::vector< ParVec > | ParVecVec |
typedef HepGeom::Point3D < CCGFloat > | Pt3D |
typedef std::vector< Pt3D > | Pt3DVec |
using | RepCorners = std::array< RhoEtaPhi, k_cornerSize > |
typedef HepGeom::Transform3D | Tr3D |
Public Member Functions | |
bool | emptyCorners () const |
float | etaPos () const |
float | etaSpan () const |
const GlobalPoint & | getBackPoint () const |
CornersVec const & | getCorners () const |
Returns the corner points of this cell's volume. More... | |
RepCorners const & | getCornersREP () const |
const GlobalPoint & | getPosition () const |
Returns the position of reference for this cell. More... | |
virtual void | getTransform (Tr3D &tr, Pt3DVec *lptr) const |
--------— only needed by specific utility; overloaded when needed -— More... | |
bool | inside (const GlobalPoint &point) const |
Returns true if the specified point is inside this cell. More... | |
const CCGFloat * | param () const |
float | phiPos () const |
float | phiSpan () const |
RhoEtaPhi const & | repPos () const |
float | rhoPos () const |
virtual void | vocalCorners (Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref) const =0 |
virtual | ~CaloCellGeometry () |
Static Public Member Functions | |
static const CCGFloat * | checkParmPtr (const std::vector< CCGFloat > &vd, ParVecVec &pvv) |
static const CCGFloat * | getParmPtr (const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv) |
Static Public Attributes | |
static constexpr unsigned int | k_cornerSize = 8 |
static const CCGFloat | k_ScaleFromDDDtoGeant |
Protected Member Functions | |
CaloCellGeometry (CornersVec::const_reference gp, CornersMgr *mgr, const CCGFloat *par) | |
CaloCellGeometry (const CornersVec &cv, const CCGFloat *par) | |
CaloCellGeometry (void) | |
virtual void | initCorners (CornersVec &)=0 |
void | initSpan () |
Private Member Functions | |
void | initBack () |
void | initReps () |
Private Attributes | |
GlobalPoint | m_backPoint |
CornersVec | m_corners |
float | m_dEta |
float | m_dPhi |
const CCGFloat * | m_parms |
GlobalPoint | m_refPoint |
RhoEtaPhi | m_rep |
std::array< RhoEtaPhi, k_cornerSize > | m_repCorners |
Abstract base class for an individual cell's geometry.
The base class declares a pure virtual function and also writes a definition (body) to force conscious acceptance of default behaviour.
If a derived class doesn't choose to override a normal virtual, it just inherits the base version's behaviour by default. If you want to provide a default behaviour but not let derived classes just inherit it "silently" like this, you can make it pure virtual but still provide a default that the derived class author has to call deliberately if he wants it:
Definition at line 53 of file CaloCellGeometry.h.
typedef float CaloCellGeometry::CCGFloat |
Definition at line 57 of file CaloCellGeometry.h.
typedef EZMgrFL< GlobalPoint > CaloCellGeometry::CornersMgr |
Definition at line 63 of file CaloCellGeometry.h.
typedef EZArrayFL< GlobalPoint > CaloCellGeometry::CornersVec |
Definition at line 62 of file CaloCellGeometry.h.
typedef EZMgrFL< CCGFloat > CaloCellGeometry::ParMgr |
Definition at line 67 of file CaloCellGeometry.h.
typedef EZArrayFL<CCGFloat> CaloCellGeometry::ParVec |
Definition at line 65 of file CaloCellGeometry.h.
typedef std::vector<ParVec> CaloCellGeometry::ParVecVec |
Definition at line 66 of file CaloCellGeometry.h.
Definition at line 59 of file CaloCellGeometry.h.
typedef std::vector<Pt3D> CaloCellGeometry::Pt3DVec |
Definition at line 60 of file CaloCellGeometry.h.
using CaloCellGeometry::RepCorners = std::array<RhoEtaPhi,k_cornerSize> |
Definition at line 71 of file CaloCellGeometry.h.
typedef HepGeom::Transform3D CaloCellGeometry::Tr3D |
Definition at line 58 of file CaloCellGeometry.h.
|
virtual |
Definition at line 26 of file CaloCellGeometry.cc.
|
protected |
Definition at line 31 of file CaloCellGeometry.cc.
|
protected |
Definition at line 40 of file CaloCellGeometry.cc.
|
protected |
Definition at line 19 of file CaloCellGeometry.cc.
|
static |
Definition at line 119 of file CaloCellGeometry.cc.
References assert(), EZArrayFL< T >::begin(), cuy::ii, j, EZArrayFL< T >::size(), and findQualityFiles::v.
Referenced by getParmPtr().
|
inline |
Definition at line 99 of file CaloCellGeometry.h.
References EZArrayFL< T >::empty(), and m_corners.
Referenced by operator<<().
|
inline |
Definition at line 89 of file CaloCellGeometry.h.
References RhoEtaPhi::eta(), and m_rep.
Referenced by FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), ECAL2DPositionCalcWithDepthCorr::calculateAndSetPositionActual(), EcalEndcapGeometry::getCells(), EcalBarrelGeometry::getCells(), EcalBarrelGeometry::getClosestCell(), CosmicClusterAlgo::makeClusters(), HybridClusterAlgo::makeClusters(), HLTRechitInRegionsProducer< T1 >::produce(), and HLTRecHitInAllL1RegionsProducer< RecHitType >::produce().
|
inline |
Definition at line 92 of file CaloCellGeometry.h.
References m_dEta.
Referenced by reco::makeSpecific().
|
inline |
Definition at line 85 of file CaloCellGeometry.h.
References m_backPoint.
Referenced by CaloTowersCreationAlgo::emCrystalShwrPos(), and CaloTowersCreationAlgo::hadShwPosFromCells().
|
inline |
Returns the corner points of this cell's volume.
Definition at line 79 of file CaloCellGeometry.h.
References assert(), m_corners, and EZArrayFL< T >::uninitialized().
Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), DiJetAnalyzer::analyze(), GammaJetAnalysis::analyze(), FlatTrd::backCtr(), TruncatedPyramid::backCtr(), CaloGeometryHelper::buildCrystalArray(), HFClusterAlgo::clusterize(), CaloSubdetectorGeometry::deltaEta(), CaloSubdetectorGeometry::deltaPhi(), EcalEndcapGeometry::getClosestCell(), reco::PFRecHit::getCornersXYZ(), HCaloDetIdAssociator::getDetIdPoints(), CaloDetIdAssociator::getDetIdPoints(), getTransform(), initBack(), initReps(), initSpan(), inside(), operator<<(), EcalGeomPhiSymHelper::setup(), and ValidateGeometry::validateCaloGeometry().
|
inline |
Definition at line 80 of file CaloCellGeometry.h.
References m_repCorners.
Referenced by reco::PFRecHit::getCornersREP().
|
static |
Definition at line 146 of file CaloCellGeometry.cc.
References checkParmPtr(), and i.
Referenced by HGCalGeometryLoader::buildGeom(), HcalHardcodeGeometryLoader::fillHBHO(), HcalFlexiHardcodeGeometryLoader::fillHBHO(), HcalHardcodeGeometryLoader::fillHE(), HcalFlexiHardcodeGeometryLoader::fillHE(), HcalHardcodeGeometryLoader::fillHF(), HcalFlexiHardcodeGeometryLoader::fillHF(), CaloTowerHardcodeGeometryLoader::makeCell(), CastorHardcodeGeometryLoader::makeCell(), ZdcHardcodeGeometryLoader::makeCell(), HcalDDDGeometryLoader::makeCell(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), and CaloGeometryDBEP< T, U >::produceAligned().
|
inline |
Returns the position of reference for this cell.
Definition at line 84 of file CaloCellGeometry.h.
References m_refPoint.
Referenced by PreshowerHitMaker::addHit(), EcalTPGParamBuilder::analyze(), HcalRecHitsValidation::analyze(), CaloTowerConstituentsMapBuilder::assignEEtoHE(), CaloTowersCreationAlgo::assignHitEcal(), EcalEndcapGeometry::avgAbsZFrontFaceCenter(), EcalBarrelGeometry::avgRadiusXYFrontFaceCenter(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), CaloRecoTauAlgorithm::buildCaloTau(), CaloGeometryHelper::buildCrystalArray(), SuperClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), ECAL2DPositionCalcWithDepthCorr::calculateAndSetPositionActual(), CaloTowersCreationAlgo::convert(), EcalClusterToolsT< noZS >::covariances(), DistanceToCell::DistanceToCell(), EcalHitMaker::EcalHitMaker(), InvRingCalib::EERingDef(), CaloTowersCreationAlgo::emCrystalShwrPos(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalRecHitsAnalyzer::fillHCal(), GlobalRecHitsProducer::fillHCal(), EcalDeadCellBoundaryEnergyFilter::filter(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), HcalGeometry::getCells(), CaloSubdetectorGeometry::getCells(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), CaloGeometryHelper::getClosestCell(), HcalGeometry::getClosestCell(), CaloSubdetectorGeometry::getClosestCell(), EcalEndcapGeometry::getClosestCell(), EcalPreshowerGeometry::getClosestCellInPlane(), EcalClusterToolsT< noZS >::getEnergyDepTopology(), EcalHitMaker::getHits(), ParticleTowerProducer::getNearestTower(), CaloGeometry::getPosition(), HCaloDetIdAssociator::getPosition(), TruncatedPyramid::getPosition(), CaloDetIdAssociator::getPosition(), HGCalGeometry::getSummary(), CaloTowerGeometry::getSummary(), CaloSubdetectorGeometry::getSummary(), HcalGeometry::getSummary(), FlatTrd::getTransform(), TruncatedPyramid::getTransform(), getTransform(), CaloTowersCreationAlgo::hadShwPosFromCells(), CalorimetryManager::HDShowerSimulation(), IdealZDCTrapezoid::initCorners(), IdealObliquePrism::initCorners(), PreshowerStrip::initCorners(), IdealZPrism::initCorners(), IdealCastorTrapezoid::initCorners(), PhotonFixCMS::initialise(), CaloGeometryHelper::initialize(), EcalRingCalibrationTools::initializeFromGeometry(), EcalPreshowerGeometry::initializeParms(), EcalEndcapGeometry::initializeParms(), TruncatedPyramid::makeAxis(), HybridClusterAlgo::makeClusters(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::makeFilteredColl(), PreshowerPhiClusterAlgo::makeOneCluster(), PreshowerClusterAlgo::makeOneCluster(), EcalClusterToolsT< noZS >::meanClusterPosition(), DistanceToCell::operator()(), operator<<(), reco::PFRecHit::position(), ParticleTowerProducer::produce(), JetCrystalsAssociator::produce(), CalorimetryManager::reconstructHCAL(), ParticleTowerProducer::resetTowers(), EcalRecHitWorkerRecover::run(), EcalGeomPhiSymHelper::setup(), CaloHitRespoNew::timeOfFlight(), EcalHitResponse::timeOfFlight(), and CaloHitResponse::timeOfFlight().
--------— only needed by specific utility; overloaded when needed -—
Reimplemented in TruncatedPyramid, FlatTrd, and PreshowerStrip.
Definition at line 70 of file CaloCellGeometry.cc.
References angle(), assert(), getCorners(), getPosition(), i, mag(), AlCaHLTBitMon_ParallelJobs::p, param(), csvLumiCalc::unit, vocalCorners(), x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by HGCalGeometry::getSummary(), CaloTowerGeometry::getSummary(), CaloSubdetectorGeometry::getSummary(), and HcalGeometry::getSummary().
|
inlineprivate |
Definition at line 143 of file CaloCellGeometry.h.
References cuy::cv, getCorners(), m_backPoint, x, y, and z.
Referenced by initSpan().
|
protectedpure virtual |
Implemented in TruncatedPyramid, FlatTrd, IdealCastorTrapezoid, IdealZPrism, IdealObliquePrism, PreshowerStrip, and IdealZDCTrapezoid.
Referenced by initSpan().
|
inlineprivate |
Definition at line 150 of file CaloCellGeometry.h.
References getCorners(), i, k_cornerSize, and m_repCorners.
Referenced by initSpan().
|
inlineprotected |
Definition at line 131 of file CaloCellGeometry.h.
References funct::abs(), eta, getCorners(), initBack(), initCorners(), initReps(), m_corners, m_dEta, m_dPhi, and phi.
Referenced by IdealCastorTrapezoid::IdealCastorTrapezoid(), IdealObliquePrism::IdealObliquePrism(), IdealZDCTrapezoid::IdealZDCTrapezoid(), IdealZPrism::IdealZPrism(), PreshowerStrip::PreshowerStrip(), and TruncatedPyramid::TruncatedPyramid().
bool CaloCellGeometry::inside | ( | const GlobalPoint & | point | ) | const |
Returns true if the specified point is inside this cell.
Definition at line 167 of file CaloCellGeometry.cc.
References EE, getCorners(), i, AlCaHLTBitMon_ParallelJobs::p, funct::true, x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by MuonCaloDistanceProducer::fillDistanceMap(), CastorGeometry::getClosestCell(), CaloDetIdAssociator::insideElement(), and HCaloDetIdAssociator::insideElement().
|
inline |
Definition at line 101 of file CaloCellGeometry.h.
References m_parms.
Referenced by FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), IdealZDCTrapezoid::an(), IdealCastorTrapezoid::an(), FlatTrd::backCtr(), EcalTBHodoscopeGeometry::cellGeomPtr(), HcalDDDGeometry::cellGeomPtr(), ZdcGeometry::cellGeomPtr(), CastorGeometry::cellGeomPtr(), CaloTowerGeometry::cellGeomPtr(), EcalEndcapGeometry::cellGeomPtr(), HGCalGeometry::cellGeomPtr(), EcalBarrelGeometry::cellGeomPtr(), HcalGeometry::cellGeomPtr(), IdealObliquePrism::dEta(), IdealZPrism::dEta(), IdealCastorTrapezoid::dh(), IdealObliquePrism::dPhi(), IdealZPrism::dPhi(), IdealCastorTrapezoid::dR(), IdealZDCTrapezoid::dx(), PreshowerStrip::dx(), IdealCastorTrapezoid::dxh(), IdealCastorTrapezoid::dxl(), IdealZDCTrapezoid::dy(), PreshowerStrip::dy(), IdealZDCTrapezoid::dz(), PreshowerStrip::dz(), IdealObliquePrism::dz(), IdealZPrism::dz(), IdealCastorTrapezoid::dz(), IdealObliquePrism::eta(), IdealZPrism::eta(), CaloTowerGeometry::getSummary(), CaloSubdetectorGeometry::getSummary(), HcalGeometry::getSummary(), FlatTrd::getTransform(), TruncatedPyramid::getTransform(), getTransform(), IdealZDCTrapezoid::initCorners(), IdealCastorTrapezoid::initCorners(), makeEcalShape(), operator<<(), PreshowerStrip::tilt(), IdealObliquePrism::z(), and IdealZPrism::z().
|
inline |
Definition at line 90 of file CaloCellGeometry.h.
References m_rep, and RhoEtaPhi::phi().
Referenced by FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), EcalEndcapGeometry::getCells(), EcalBarrelGeometry::getCells(), CosmicClusterAlgo::makeClusters(), HybridClusterAlgo::makeClusters(), HLTRechitInRegionsProducer< T1 >::produce(), and HLTRecHitInAllL1RegionsProducer< RecHitType >::produce().
|
inline |
Definition at line 93 of file CaloCellGeometry.h.
References m_dPhi.
Referenced by reco::makeSpecific().
|
inline |
Definition at line 87 of file CaloCellGeometry.h.
References m_rep.
Referenced by reco::PFRecHit::positionREP().
|
inline |
|
pure virtual |
Implemented in IdealCastorTrapezoid, IdealZPrism, TruncatedPyramid, FlatTrd, IdealObliquePrism, PreshowerStrip, and IdealZDCTrapezoid.
Referenced by getTransform().
|
static |
Definition at line 69 of file CaloCellGeometry.h.
Referenced by CaloSubdetectorGeometry::allocateCorners(), and initReps().
|
static |
Definition at line 74 of file CaloCellGeometry.h.
Referenced by EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
private |
Definition at line 157 of file CaloCellGeometry.h.
Referenced by getBackPoint(), and initBack().
|
private |
Definition at line 158 of file CaloCellGeometry.h.
Referenced by emptyCorners(), getCorners(), and initSpan().
|
private |
Definition at line 161 of file CaloCellGeometry.h.
Referenced by etaSpan(), and initSpan().
|
private |
Definition at line 162 of file CaloCellGeometry.h.
Referenced by initSpan(), and phiSpan().
|
private |
Definition at line 159 of file CaloCellGeometry.h.
Referenced by param().
|
private |
Definition at line 156 of file CaloCellGeometry.h.
Referenced by getPosition().
|
private |
|
private |
Definition at line 163 of file CaloCellGeometry.h.
Referenced by getCornersREP(), and initReps().