#include <CaloCellGeometry.h>
Classes | |
struct | RefCount |
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 |
virtual float | etaPos () const |
virtual float | etaSpan () const |
GlobalPoint const & | getBackPoint () const |
CornersVec const & | getCorners () const |
Returns the corner points of this cell's volume. More... | |
RepCorners const & | getCornersREP () const |
virtual const GlobalPoint & | getPosition () const |
Returns the position of reference for this cell. More... | |
virtual GlobalPoint | getPosition (CCGFloat) const |
virtual GlobalPoint | getPosition (const Pt3D &) const |
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 |
virtual float | phiPos () const |
virtual float | phiSpan () const |
RhoEtaPhi const & | repPos () const |
virtual float | rhoPos () const |
void | setBackPoint (const GlobalPoint &pos) |
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 () | |
CaloCellGeometry (CaloCellGeometry &&)=default | |
CaloCellGeometry (CaloCellGeometry const &)=default | |
virtual void | initCorners (CornersVec &)=0 |
void | initSpan () |
CaloCellGeometry & | operator= (CaloCellGeometry &&)=default |
CaloCellGeometry & | operator= (CaloCellGeometry const &)=default |
void | setCornerVec (const std::vector< GlobalPoint > &cor) |
void | setRefPoint (const GlobalPoint &pos) |
Private Member Functions | |
bool | decrement () const |
void | increment () const |
void | initBack () |
void | initReps () |
Private Attributes | |
GlobalPoint | m_backPoint |
CornersVec | m_corners |
float | m_dEta |
float | m_dPhi |
const CCGFloat * | m_parms |
struct CaloCellGeometry::RefCount | m_ref |
GlobalPoint | m_refPoint |
RhoEtaPhi | m_rep |
std::array< RhoEtaPhi, k_cornerSize > | m_repCorners |
Friends | |
class | CaloCellGeometryMayOwnPtr |
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 51 of file CaloCellGeometry.h.
typedef float CaloCellGeometry::CCGFloat |
Definition at line 53 of file CaloCellGeometry.h.
Definition at line 59 of file CaloCellGeometry.h.
Definition at line 58 of file CaloCellGeometry.h.
typedef EZMgrFL<CCGFloat> CaloCellGeometry::ParMgr |
Definition at line 63 of file CaloCellGeometry.h.
typedef EZArrayFL<CCGFloat> CaloCellGeometry::ParVec |
Definition at line 61 of file CaloCellGeometry.h.
typedef std::vector<ParVec> CaloCellGeometry::ParVecVec |
Definition at line 62 of file CaloCellGeometry.h.
Definition at line 55 of file CaloCellGeometry.h.
typedef std::vector<Pt3D> CaloCellGeometry::Pt3DVec |
Definition at line 56 of file CaloCellGeometry.h.
using CaloCellGeometry::RepCorners = std::array<RhoEtaPhi, k_cornerSize> |
Definition at line 69 of file CaloCellGeometry.h.
typedef HepGeom::Transform3D CaloCellGeometry::Tr3D |
Definition at line 54 of file CaloCellGeometry.h.
|
virtual |
Definition at line 22 of file CaloCellGeometry.cc.
|
protected |
|
protected |
Definition at line 27 of file CaloCellGeometry.cc.
|
protected |
Definition at line 19 of file CaloCellGeometry.cc.
|
protecteddefault |
|
protecteddefault |
|
static |
Definition at line 96 of file CaloCellGeometry.cc.
References cms::cuda::assert(), cuy::ii, dqmiolumiharvest::j, and findQualityFiles::v.
Referenced by getParmPtr().
|
inlineprivate |
Definition at line 158 of file CaloCellGeometry.h.
References CaloCellGeometry::RefCount::m_count, and m_ref.
Referenced by CaloCellGeometryMayOwnPtr::~CaloCellGeometryMayOwnPtr().
|
inline |
Definition at line 100 of file CaloCellGeometry.h.
References EZArrayFL< T >::empty(), and m_corners.
Referenced by operator<<().
|
inlinevirtual |
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 91 of file CaloCellGeometry.h.
References RhoEtaPhi::eta(), and m_rep.
Referenced by FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), ECAL2DPositionCalcWithDepthCorr::calculateAndSetPositionActual(), EcalEndcapGeometry::getCells(), EcalBarrelGeometry::getCells(), and EcalBarrelGeometry::getClosestCell().
|
inlinevirtual |
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 94 of file CaloCellGeometry.h.
References m_dEta.
Referenced by hgcal::RecHitTools::getScintDEtaDPhi().
|
inline |
|
inline |
Returns the corner points of this cell's volume.
Definition at line 76 of file CaloCellGeometry.h.
References cms::cuda::assert(), m_corners, and EZArrayFL< T >::uninitialized().
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), FlatHexagon::backCtr(), TruncatedPyramid::backCtr(), FlatTrd::backCtr(), TrackDetMatchInfo::dumpGeometry(), EcalEndcapGeometry::getClosestCell(), reco::PFRecHit::getCornersXYZ(), HCaloDetIdAssociator::getDetIdPoints(), getTransform(), initBack(), initReps(), initSpan(), inside(), and operator<<().
|
inline |
Definition at line 80 of file CaloCellGeometry.h.
References m_repCorners.
Referenced by reco::PFRecHit::getCornersREP().
|
static |
Definition at line 117 of file CaloCellGeometry.cc.
References checkParmPtr(), and mps_fire::i.
Referenced by HGCalGeometryLoader::buildGeom(), HGCalTBGeometryLoader::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().
|
inlinevirtual |
Returns the position of reference for this cell.
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 83 of file CaloCellGeometry.h.
References m_refPoint.
Referenced by PreshowerHitMaker::addHit(), EcalEBTrigPrimAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalSimHitStudy::analyzeHits(), CaloTowersCreationAlgo::assignHitEcal(), reco::EcalClustersGraph::computeCovariances(), CaloTowersCreationAlgo::convert(), EcalClusterToolsT< noZS >::covariances(), DistanceToCell::DistanceToCell(), EcalHitMaker::EcalHitMaker(), CaloGeometryHelper::getClosestCell(), EcalEndcapGeometry::getClosestCell(), DisappearingMuonsSkimming::getECALIsolation(), EcalHitMaker::getHits(), CaloDetIdAssociator::getPosition(), TruncatedPyramid::getPosition(), TrackDetMatchInfo::getPosition(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), getTransform(), IdealZDCTrapezoid::initCorners(), PreshowerStrip::initCorners(), IdealObliquePrism::initCorners(), IdealZPrism::initCorners(), IdealCastorTrapezoid::initCorners(), CaloGeometryHelper::initialize(), TruncatedPyramid::makeAxis(), SCEnergyCorrectorDRN::makeInput(), ticl::SeedingRegionByHF::makeRegions(), EcalClusterToolsT< noZS >::meanClusterPosition(), DistanceToCell::operator()(), operator<<(), reco::PFRecHit::position(), ALPAKA_ACCELERATOR_NAMESPACE::PFRecHitTopologyESProducer< CAL >::produce(), and EcalRecHitWorkerRecover::run().
|
inlinevirtual |
Reimplemented in TruncatedPyramid.
Definition at line 84 of file CaloCellGeometry.h.
References m_refPoint.
|
inlinevirtual |
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 85 of file CaloCellGeometry.h.
References m_refPoint.
--------— only needed by specific utility; overloaded when needed -—
Reimplemented in FlatTrd, TruncatedPyramid, FlatHexagon, and PreshowerStrip.
Definition at line 51 of file CaloCellGeometry.cc.
References angle(), cms::cuda::assert(), getCorners(), getPosition(), mps_fire::i, mag(), AlCaHLTBitMon_ParallelJobs::p, param(), unit(), vocalCorners(), x, y, and z.
|
inlineprivate |
Definition at line 157 of file CaloCellGeometry.h.
References CaloCellGeometry::RefCount::m_count, and m_ref.
Referenced by CaloCellGeometryMayOwnPtr::operator=().
|
inlineprivate |
Definition at line 144 of file CaloCellGeometry.h.
References cuy::cv, getCorners(), m_backPoint, x, y, and z.
Referenced by initSpan().
|
protectedpure virtual |
Implemented in FlatTrd, TruncatedPyramid, FlatHexagon, IdealCastorTrapezoid, IdealZPrism, IdealObliquePrism, PreshowerStrip, and IdealZDCTrapezoid.
Referenced by initSpan().
|
inlineprivate |
Definition at line 151 of file CaloCellGeometry.h.
References getCorners(), mps_fire::i, k_cornerSize, m_repCorners, and mitigatedMETSequence_cff::U.
Referenced by initSpan().
|
inlineprotected |
Definition at line 127 of file CaloCellGeometry.h.
References funct::abs(), PVValHelper::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 133 of file CaloCellGeometry.cc.
References cms::cuda::co, L1DTConfigTraco_cff::DD, EE, getCorners(), mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, point, x, y, and z.
Referenced by CaloDetIdAssociator::insideElement(), and HCaloDetIdAssociator::insideElement().
|
protecteddefault |
|
protecteddefault |
|
inline |
Definition at line 102 of file CaloCellGeometry.h.
References m_parms.
Referenced by FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), IdealZDCTrapezoid::an(), IdealCastorTrapezoid::an(), FlatHexagon::backCtr(), FlatTrd::backCtr(), IdealObliquePrism::dEta(), IdealZPrism::dEta(), IdealCastorTrapezoid::dh(), IdealObliquePrism::dPhi(), IdealZPrism::dPhi(), IdealCastorTrapezoid::dR(), PreshowerStrip::dx(), IdealZDCTrapezoid::dx(), IdealCastorTrapezoid::dxh(), IdealCastorTrapezoid::dxl(), IdealZDCTrapezoid::dy(), PreshowerStrip::dy(), IdealZDCTrapezoid::dz(), PreshowerStrip::dz(), IdealObliquePrism::dz(), IdealZPrism::dz(), IdealCastorTrapezoid::dz(), FlatHexagon::dz(), FlatTrd::dz(), IdealObliquePrism::eta(), IdealZPrism::eta(), FlatHexagon::etaSpan(), FlatTrd::etaSpan(), HcalDDDGeometry::getGeometryRawPtr(), ZdcGeometry::getGeometryRawPtr(), HcalGeometry::getGeometryRawPtr(), HGCalTBGeometry::getGeometryRawPtr(), HGCalGeometry::getGeometryRawPtr(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), getTransform(), IdealZDCTrapezoid::initCorners(), IdealCastorTrapezoid::initCorners(), makeEcalShape(), operator<<(), FlatHexagon::phiSpan(), FlatTrd::phiSpan(), PreshowerStrip::tilt(), IdealObliquePrism::z(), and IdealZPrism::z().
|
inlinevirtual |
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 92 of file CaloCellGeometry.h.
References m_rep, and RhoEtaPhi::phi().
Referenced by FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), EcalEndcapGeometry::getCells(), and EcalBarrelGeometry::getCells().
|
inlinevirtual |
Reimplemented in FlatTrd, and FlatHexagon.
Definition at line 95 of file CaloCellGeometry.h.
References m_dPhi.
|
inline |
Definition at line 89 of file CaloCellGeometry.h.
References m_rep.
Referenced by reco::PFRecHit::positionREP().
|
inlinevirtual |
|
inline |
Definition at line 111 of file CaloCellGeometry.h.
References m_backPoint.
|
inlineprotected |
Definition at line 138 of file CaloCellGeometry.h.
References isotrackApplyRegressor::k, and m_corners.
|
inlineprotected |
Definition at line 137 of file CaloCellGeometry.h.
References m_refPoint.
Referenced by FlatHexagon::setPosition(), and FlatTrd::setPosition().
|
pure virtual |
Implemented in FlatTrd, TruncatedPyramid, FlatHexagon, IdealCastorTrapezoid, IdealObliquePrism, IdealZPrism, IdealZDCTrapezoid, and PreshowerStrip.
Referenced by getTransform().
|
friend |
Definition at line 65 of file CaloCellGeometry.h.
|
static |
Definition at line 67 of file CaloCellGeometry.h.
Referenced by CaloSubdetectorGeometry::allocateCorners(), and initReps().
|
static |
Definition at line 71 of file CaloCellGeometry.h.
Referenced by EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
private |
Definition at line 161 of file CaloCellGeometry.h.
Referenced by getBackPoint(), initBack(), and setBackPoint().
|
private |
Definition at line 162 of file CaloCellGeometry.h.
Referenced by emptyCorners(), getCorners(), initSpan(), and setCornerVec().
|
private |
Definition at line 165 of file CaloCellGeometry.h.
Referenced by etaSpan(), and initSpan().
|
private |
Definition at line 166 of file CaloCellGeometry.h.
Referenced by initSpan(), and phiSpan().
|
private |
Definition at line 163 of file CaloCellGeometry.h.
Referenced by param().
|
private |
Referenced by decrement(), and increment().
|
private |
Definition at line 160 of file CaloCellGeometry.h.
Referenced by getPosition(), and setRefPoint().
|
private |
|
private |
Definition at line 167 of file CaloCellGeometry.h.
Referenced by getCornersREP(), and initReps().