#include <CaloCellGeometry.h>
Public Types | |
typedef float | CCGFloat |
typedef EZMgrFL< GlobalPoint > | CornersMgr |
enum | CornersSize { k_cornerSize = 8 } |
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 |
typedef HepGeom::Transform3D | Tr3D |
Public Member Functions | |
bool | emptyCorners () const |
float | etaPos () const |
float | etaSpan () const |
virtual const CornersVec & | getCorners () const =0 |
Returns the corner points of this cell's volume. More... | |
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 |
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 const CCGFloat | k_ScaleFromDDDtoGeant |
Protected Member Functions | |
CaloCellGeometry (CornersVec::const_reference gp, const CornersMgr *mgr, const CCGFloat *par) | |
CaloCellGeometry (const CornersVec &cv, const CCGFloat *par) | |
CaloCellGeometry (void) | |
void | initSpan () const |
CornersVec & | setCorners () const |
Private Attributes | |
CornersVec | m_corners |
float | m_dEta |
float | m_dPhi |
float | m_eta |
const CCGFloat * | m_parms |
float | m_phi |
GlobalPoint | m_refPoint |
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 50 of file CaloCellGeometry.h.
typedef float CaloCellGeometry::CCGFloat |
Definition at line 54 of file CaloCellGeometry.h.
typedef EZMgrFL< GlobalPoint > CaloCellGeometry::CornersMgr |
Definition at line 60 of file CaloCellGeometry.h.
typedef EZArrayFL< GlobalPoint > CaloCellGeometry::CornersVec |
Definition at line 59 of file CaloCellGeometry.h.
typedef EZMgrFL< CCGFloat > CaloCellGeometry::ParMgr |
Definition at line 64 of file CaloCellGeometry.h.
typedef EZArrayFL<CCGFloat> CaloCellGeometry::ParVec |
Definition at line 62 of file CaloCellGeometry.h.
typedef std::vector<ParVec> CaloCellGeometry::ParVecVec |
Definition at line 63 of file CaloCellGeometry.h.
Definition at line 56 of file CaloCellGeometry.h.
typedef std::vector<Pt3D> CaloCellGeometry::Pt3DVec |
Definition at line 57 of file CaloCellGeometry.h.
typedef HepGeom::Transform3D CaloCellGeometry::Tr3D |
Definition at line 55 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 131 of file CaloCellGeometry.cc.
References EZArrayFL< T >::begin(), cuy::ii, j, EZArrayFL< T >::size(), and findQualityFiles::v.
Referenced by getParmPtr().
|
inline |
Definition at line 87 of file CaloCellGeometry.h.
References EZArrayFL< T >::empty(), and m_corners.
Referenced by operator<<().
|
inline |
|
inline |
Definition at line 80 of file CaloCellGeometry.h.
References m_dEta.
Referenced by reco::makeSpecific().
|
pure virtual |
Returns the corner points of this cell's volume.
Implemented in IdealCastorTrapezoid, IdealObliquePrism, IdealZPrism, PreshowerStrip, GCC11_FINAL< T, TOPO >, and IdealZDCTrapezoid.
Definition at line 57 of file CaloCellGeometry.cc.
References m_corners.
Referenced by CaloGeometryHelper::buildCrystalArray(), HFClusterAlgo::clusterize(), PFRecHitProducerECAL::createEcalRecHit(), PFHCALDualTimeRecHitProducer::createHcalRecHit(), PFRecHitProducerHCAL::createHcalRecHit(), PFRecHitProducerHO::createHORecHit(), PFRecHitProducerPS::createRecHits(), CaloSubdetectorGeometry::deltaEta(), CaloSubdetectorGeometry::deltaPhi(), CaloTowersCreationAlgo::emCrystalShwrPos(), IdealZDCTrapezoid::getCorners(), PreshowerStrip::getCorners(), IdealZPrism::getCorners(), IdealObliquePrism::getCorners(), IdealCastorTrapezoid::getCorners(), HCaloDetIdAssociator::getDetIdPoints(), CaloDetIdAssociator::getDetIdPoints(), getTransform(), CaloTowersCreationAlgo::hadSegmentShwrPos(), CaloTowersCreationAlgo::hadShwPosFromCells(), initSpan(), inside(), JetMaker::makeSpecific(), operator<<(), EcalGeomPhiSymHelper::setup(), and ValidateGeometry::validateCaloGeometry().
|
static |
Definition at line 158 of file CaloCellGeometry.cc.
References prof2calltree::back, checkParmPtr(), and i.
Referenced by HcalFlexiHardcodeGeometryLoader::fillHBHO(), HcalFlexiHardcodeGeometryLoader::fillHE(), HcalFlexiHardcodeGeometryLoader::fillHF(), CaloTowerHardcodeGeometryLoader::makeCell(), CastorHardcodeGeometryLoader::makeCell(), ZdcHardcodeGeometryLoader::makeCell(), HcalHardcodeGeometryLoader::makeCell(), HcalDDDGeometryLoader::makeCell(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), and CaloGeometryDBEP< T, U >::produceAligned().
|
inline |
Returns the position of reference for this cell.
Definition at line 76 of file CaloCellGeometry.h.
References m_refPoint.
Referenced by PreshowerHitMaker::addHit(), EcalTPGParamBuilder::analyze(), HcalRecHitsValidation::analyze(), CaloTowersCreationAlgo::assignHit(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), CaloRecoTauAlgorithm::buildCaloTau(), CaloGeometryHelper::buildCrystalArray(), SuperClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), compEcalEnergySum(), compHcalEnergySum(), CaloTowersCreationAlgo::convert(), EcalClusterToolsT< noZS >::covariances(), PFRecHitProducerECAL::createEcalRecHit(), PFHCALDualTimeRecHitProducer::createHcalRecHit(), PFRecHitProducerHCAL::createHcalRecHit(), PFRecHitProducerHO::createHORecHit(), PFRecHitProducerPS::createRecHits(), DistanceToCell::DistanceToCell(), 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(), PFRecHitProducerECAL::findEcalRecHitGeometry(), PFRecHitProducerHO::findHORecHitGeometry(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), TCTauAlgorithm::getCellMomentum(), HcalGeometry::getCells(), CaloSubdetectorGeometry::getCells(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), CaloGeometryHelper::getClosestCell(), HcalGeometry::getClosestCell(), CaloSubdetectorGeometry::getClosestCell(), EcalPreshowerGeometry::getClosestCellInPlane(), IdealZDCTrapezoid::getCorners(), IdealZPrism::getCorners(), PreshowerStrip::getCorners(), IdealObliquePrism::getCorners(), IdealCastorTrapezoid::getCorners(), L2TauModularIsolationProducer::getECALHits(), L2TauIsolationProducer::getECALHits(), L2TauNarrowConeIsolationProducer::getECALHits(), EcalClusterToolsT< noZS >::getEnergyDepTopology(), EcalHitMaker::getHits(), ParticleTowerProducer::getNearestTower(), CaloGeometry::getPosition(), HCaloDetIdAssociator::getPosition(), CaloDetIdAssociator::getPosition(), HcalGeometry::getSummary(), CaloSubdetectorGeometry::getSummary(), getTransform(), CaloTowersCreationAlgo::hadSegmentShwrPos(), CaloTowersCreationAlgo::hadShwPosFromCells(), CalorimetryManager::HDShowerSimulation(), PhotonFixCMS::initialise(), CaloGeometryHelper::initialize(), EcalRingCalibrationTools::initializeFromGeometry(), EcalPreshowerGeometry::initializeParms(), IslandClusterAlgo::makeClusters(), CosmicClusterAlgo::makeClusters(), Multi5x5ClusterAlgo::makeClusters(), HybridClusterAlgo::makeClusters(), PreshowerPhiClusterAlgo::makeOneCluster(), PreshowerClusterAlgo::makeOneCluster(), EcalClusterToolsT< noZS >::meanClusterPosition(), DistanceToCell::operator()(), operator<<(), HcalHitRelabeller::process(), EgammaHLTRechitInRegionsProducer::produce(), 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 GCC11_FINAL< T, TOPO >.
Definition at line 82 of file CaloCellGeometry.cc.
References angle(), getCorners(), getPosition(), i, mag(), AlCaHLTBitMon_ParallelJobs::p, param(), csvLumiCalc::unit, vocalCorners(), x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by CaloSubdetectorGeometry::getSummary(), and HcalGeometry::getSummary().
|
inlineprotected |
Definition at line 121 of file CaloCellGeometry.h.
References funct::abs(), eta(), getCorners(), m_dEta, m_dPhi, and phi.
Referenced by IdealCastorTrapezoid::IdealCastorTrapezoid(), IdealObliquePrism::IdealObliquePrism(), IdealZDCTrapezoid::IdealZDCTrapezoid(), IdealZPrism::IdealZPrism(), and PreshowerStrip::PreshowerStrip().
bool CaloCellGeometry::inside | ( | const GlobalPoint & | point | ) | const |
Returns true if the specified point is inside this cell.
Definition at line 179 of file CaloCellGeometry.cc.
References getCorners(), i, AlCaHLTBitMon_ParallelJobs::p, funct::true, x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by MuonCaloDistanceProducer::fillDistanceMap(), CastorGeometry::getClosestCell(), CaloDetIdAssociator::insideElement(), and HCaloDetIdAssociator::insideElement().
|
inline |
Definition at line 89 of file CaloCellGeometry.h.
References m_parms.
Referenced by IdealZDCTrapezoid::an(), IdealCastorTrapezoid::an(), HcalDDDGeometry::cellGeomPtr(), EcalTBHodoscopeGeometry::cellGeomPtr(), CaloTowerGeometry::cellGeomPtr(), ZdcGeometry::cellGeomPtr(), CastorGeometry::cellGeomPtr(), EcalPreshowerGeometry::cellGeomPtr(), HcalGeometry::cellGeomPtr(), IdealZPrism::dEta(), IdealObliquePrism::dEta(), IdealCastorTrapezoid::dh(), IdealZPrism::dPhi(), IdealObliquePrism::dPhi(), IdealCastorTrapezoid::dR(), IdealZDCTrapezoid::dx(), PreshowerStrip::dx(), IdealCastorTrapezoid::dxh(), IdealCastorTrapezoid::dxl(), IdealZDCTrapezoid::dy(), PreshowerStrip::dy(), IdealZDCTrapezoid::dz(), PreshowerStrip::dz(), IdealZPrism::dz(), IdealObliquePrism::dz(), IdealCastorTrapezoid::dz(), IdealZPrism::eta(), IdealObliquePrism::eta(), IdealZDCTrapezoid::getCorners(), IdealCastorTrapezoid::getCorners(), HcalGeometry::getSummary(), CaloSubdetectorGeometry::getSummary(), getTransform(), operator<<(), PreshowerStrip::tilt(), IdealZPrism::z(), and IdealObliquePrism::z().
|
inline |
|
inline |
Definition at line 81 of file CaloCellGeometry.h.
References m_dPhi.
Referenced by reco::makeSpecific().
|
protected |
Definition at line 51 of file CaloCellGeometry.cc.
References m_corners.
Referenced by IdealZDCTrapezoid::getCorners(), IdealZPrism::getCorners(), PreshowerStrip::getCorners(), IdealObliquePrism::getCorners(), and IdealCastorTrapezoid::getCorners().
|
pure virtual |
Implemented in IdealCastorTrapezoid, GCC11_FINAL< T, TOPO >, IdealObliquePrism, IdealZPrism, PreshowerStrip, and IdealZDCTrapezoid.
Referenced by getTransform().
|
static |
Definition at line 68 of file CaloCellGeometry.h.
Referenced by EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
mutableprivate |
Definition at line 130 of file CaloCellGeometry.h.
Referenced by emptyCorners(), getCorners(), and setCorners().
|
mutableprivate |
Definition at line 133 of file CaloCellGeometry.h.
Referenced by etaSpan(), and initSpan().
|
mutableprivate |
Definition at line 134 of file CaloCellGeometry.h.
Referenced by initSpan(), and phiSpan().
|
private |
Definition at line 132 of file CaloCellGeometry.h.
Referenced by etaPos().
|
private |
Definition at line 131 of file CaloCellGeometry.h.
Referenced by param().
|
private |
Definition at line 132 of file CaloCellGeometry.h.
Referenced by phiPos().
|
private |
Definition at line 129 of file CaloCellGeometry.h.
Referenced by getPosition().