Go to the documentation of this file. 1 #ifndef GEOMETRY_CALOGEOMETRY_CALOSUBDETECTORGEOMETRY_H
2 #define GEOMETRY_CALOGEOMETRY_CALOSUBDETECTORGEOMETRY_H 1
7 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
24 typedef std::vector<std::shared_ptr<const CaloCellGeometry> >
CellSet;
33 typedef std::vector<CCGFloat>
TrVec;
34 typedef std::vector<unsigned int>
IVec;
35 typedef std::vector<CCGFloat>
DimVec;
50 const DetId& detId) = 0;
56 virtual std::shared_ptr<const CaloCellGeometry>
getGeometry(
const DetId&
id)
const;
107 virtual std::shared_ptr<const CaloCellGeometry>
cellGeomPtr(uint32_t
index)
const;
124 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
virtual void initializeParms()
virtual unsigned int numberOfParametersPerShape() const
CaloCellGeometry::CornersMgr * m_cmgr
std::set< DetId > DetIdSet
CaloSubdetectorGeometry & operator=(const CaloSubdetectorGeometry &)=delete
std::vector< CCGFloat > DimVec
std::vector< CCGFloat > TrVec
virtual unsigned int numberOfTransformParms() const
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
std::vector< unsigned int > IVec
void allocatePar(ParVec::size_type n, unsigned int m)
virtual unsigned int numberOfShapes() const
const ParVecVec & parVecVec() const
MgrType::size_type size_type
CaloCellGeometry::CCGFloat CCGFloat
virtual DetIdSet getCells(const GlobalPoint &r, double dR) const
Get a list of all cells within a dR of the given cell.
CCGFloat deltaPhi(const DetId &detId) const
std::vector< std::shared_ptr< const CaloCellGeometry > > CellSet
std::vector< DetId > m_validIds
std::atomic< std::vector< CCGFloat > * > m_deltaPhi
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)
CaloCellGeometry::ParVec ParVec
virtual bool present(const DetId &id) const
is this detid present in the geometry?
void addValidID(const DetId &id)
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.
virtual DetId getClosestCell(const GlobalPoint &r) const
CaloSubdetectorGeometry()
virtual unsigned int indexFor(const DetId &id) const
virtual ~CaloSubdetectorGeometry()
The base class DOES assume that it owns the CaloCellGeometry objects.
std::vector< ParVec > ParVecVec
CaloCellGeometry::CornersMgr * cornersMgr()
virtual void getSummary(TrVec &trVector, IVec &iVector, DimVec &dimVector, IVec &dinsVector) const
CaloCellGeometry::ParVecVec ParVecVec
CaloCellGeometry::ParMgr ParMgr
static CCGFloat deltaR(const GlobalPoint &p1, const GlobalPoint &p2)
virtual CellSet getCellSet(const GlobalPoint &r, double dR) const
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
virtual void fillDefaultNamedParameters() const
virtual const CaloCellGeometry * getGeometryRawPtr(uint32_t index) const =0
CCGFloat deltaEta(const DetId &detId) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
virtual std::shared_ptr< const CaloCellGeometry > cellGeomPtr(uint32_t index) const
std::atomic< std::vector< CCGFloat > * > m_deltaEta
const ParMgr * parMgrConst() const
virtual unsigned int sizeForDenseIndex(const DetId &id) const