#include <FastTimeGeometry.h>
Public Types | |
enum | { k_NumberOfParametersPerShape = 12 } |
enum | { k_NumberOfShapes = 50 } |
typedef FastTimeGeometryRecord | AlignedRecord |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::vector< FlatTrd > | CellVec |
typedef std::vector< GlobalPoint > | CornersVec |
typedef std::set< DetId > | DetIdSet |
typedef PFastTimeRcd | PGeometryRecord |
typedef CaloCellGeometry::Pt3D | Pt3D |
typedef CaloCellGeometry::Pt3DVec | Pt3DVec |
Public Types inherited from CaloSubdetectorGeometry | |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::vector< std::shared_ptr< const CaloCellGeometry > > | CellSet |
typedef std::set< DetId > | DetIdSet |
typedef std::vector< CCGFloat > | DimVec |
typedef std::vector< unsigned int > | IVec |
typedef CaloCellGeometry::ParMgr | ParMgr |
typedef CaloCellGeometry::ParVec | ParVec |
typedef CaloCellGeometry::ParVecVec | ParVecVec |
typedef std::vector< CCGFloat > | TrVec |
Public Member Functions | |
std::string | cellElement () const |
FastTimeGeometry (const FastTimeTopology &topology) | |
virtual void | fillNamedParams (DDFilteredView fv) |
DetIdSet | getCells (const GlobalPoint &r, double dR) const override |
Get a list of all cells within a dR of the given cell. More... | |
DetId | getClosestCell (const GlobalPoint &r) const override |
CornersVec | getCorners (const DetId &id) const |
Returns the corner points of this cell's volume. More... | |
std::shared_ptr< const CaloCellGeometry > | getGeometry (const DetId &id) const override |
Get the cell geometry of a given detector id. Should return false if not found. More... | |
GlobalPoint | getPosition (const DetId &id) const |
void | getSummary (CaloSubdetectorGeometry::TrVec &trVector, CaloSubdetectorGeometry::IVec &iVector, CaloSubdetectorGeometry::DimVec &dimVector, CaloSubdetectorGeometry::IVec &dinsVector) const override |
const std::vector< DetId > & | getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const override |
Get a list of valid detector ids (for the given subdetector) More... | |
const std::vector< DetId > & | getValidGeomDetIds (void) const |
void | initializeParms () override |
void | localCorners (Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref) |
void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override |
bool | present (const DetId &id) const override |
is this detid present in the geometry? More... | |
void | sortDetIds () |
const FastTimeTopology & | topology () const |
~FastTimeGeometry () override | |
Public Member Functions inherited from CaloSubdetectorGeometry | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
CaloSubdetectorGeometry (const CaloSubdetectorGeometry &)=delete | |
avoid copies More... | |
CaloCellGeometry::CornersMgr * | cornersMgr () |
CCGFloat | deltaEta (const DetId &detId) const |
CCGFloat | deltaPhi (const DetId &detId) const |
virtual void | fillDefaultNamedParameters () const |
virtual CellSet | getCellSet (const GlobalPoint &r, double dR) const |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual unsigned int | numberOfTransformParms () const |
CaloSubdetectorGeometry & | operator= (const CaloSubdetectorGeometry &)=delete |
ParMgr * | parMgr () |
const ParMgr * | parMgrConst () const |
ParVecVec & | parVecVec () |
const ParVecVec & | parVecVec () const |
virtual | ~CaloSubdetectorGeometry () |
The base class DOES assume that it owns the CaloCellGeometry objects. More... | |
Static Public Member Functions | |
static std::string | dbString () |
static std::string | producerTag () |
Protected Member Functions | |
void | addValidID (const DetId &id) |
std::shared_ptr< const CaloCellGeometry > | cellGeomPtr (uint32_t index) const override |
const CaloCellGeometry * | getGeometryRawPtr (uint32_t index) const override |
unsigned int | indexFor (const DetId &id) const override |
unsigned int | sizeForDenseIndex () const |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
virtual unsigned int | sizeForDenseIndex (const DetId &id) const |
Private Member Functions | |
std::shared_ptr< const CaloCellGeometry > | cellGeomPtr (uint32_t index, const GlobalPoint &p) const |
Private Attributes | |
CellVec | m_cellVec |
ForwardSubdetector | m_subdet |
const FastTimeTopology & | m_topology |
int | m_Type |
std::vector< DetId > | m_validGeomIds |
Additional Inherited Members | |
Static Protected Member Functions inherited from CaloSubdetectorGeometry | |
static CCGFloat | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
Protected Attributes inherited from CaloSubdetectorGeometry | |
ParVecVec | m_parVecVec |
std::vector< DetId > | m_validIds |
Definition at line 24 of file FastTimeGeometry.h.
Definition at line 37 of file FastTimeGeometry.h.
Definition at line 30 of file FastTimeGeometry.h.
typedef std::vector<FlatTrd> FastTimeGeometry::CellVec |
Definition at line 28 of file FastTimeGeometry.h.
typedef std::vector<GlobalPoint> FastTimeGeometry::CornersVec |
Definition at line 35 of file FastTimeGeometry.h.
typedef std::set<DetId> FastTimeGeometry::DetIdSet |
Definition at line 34 of file FastTimeGeometry.h.
Definition at line 38 of file FastTimeGeometry.h.
Definition at line 31 of file FastTimeGeometry.h.
Definition at line 32 of file FastTimeGeometry.h.
anonymous enum |
anonymous enum |
FastTimeGeometry::FastTimeGeometry | ( | const FastTimeTopology & | topology | ) |
Definition at line 15 of file FastTimeGeometry.cc.
References gather_cfg::cout, CaloSubdetectorGeometry::m_validIds, topology(), and FastTimeTopology::totalGeomModules().
Referenced by dbString().
|
override |
|
protected |
Definition at line 198 of file FastTimeGeometry.cc.
References a, b, and DetId::rawId().
Referenced by topology().
std::string FastTimeGeometry::cellElement | ( | ) | const |
|
overrideprotectedvirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 176 of file FastTimeGeometry.cc.
References m_cellVec, and m_validGeomIds.
Referenced by cellGeomPtr(), getGeometry(), getSummary(), and topology().
|
private |
Definition at line 185 of file FastTimeGeometry.cc.
References cellGeomPtr(), m_cellVec, and m_validGeomIds.
|
inlinestatic |
Definition at line 43 of file FastTimeGeometry.h.
References connectstrParser::f1, connectstrParser::f2, connectstrParser::f3, FastTimeGeometry(), getCorners(), getGeometry(), getPosition(), getSummary(), mps_fire::i, localCorners(), newCell(), present(), MetAnalyzer::pv(), topology(), and ~FastTimeGeometry().
|
virtual |
|
overridevirtual |
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 141 of file FastTimeGeometry.cc.
Referenced by getValidGeomDetIds().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 121 of file FastTimeGeometry.cc.
References gather_cfg::cout, FastTimeTopology::dddConstants(), FastTimeDDDConstants::getEtaPhi(), FastTimeDDDConstants::getZPhi(), m_Type, PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), ecaldqm::zside(), and geometryCSVtoXML::zz.
Referenced by getValidGeomDetIds().
FastTimeGeometry::CornersVec FastTimeGeometry::getCorners | ( | const DetId & | id | ) | const |
Returns the corner points of this cell's volume.
Definition at line 110 of file FastTimeGeometry.cc.
References TCMET_cfi::corner, FastTimeTopology::dddConstants(), FastTimeDDDConstants::getCorners(), FastTimeDetId::ieta(), FastTimeDetId::iphi(), m_Type, MillePedeFileConverter_cfg::out, topology(), and FastTimeDetId::zside().
Referenced by FWRecoGeometryESProducer::addFTLGeometry(), and dbString().
|
overridevirtual |
Get the cell geometry of a given detector id. Should return false if not found.
Reimplemented from CaloSubdetectorGeometry.
Definition at line 87 of file FastTimeGeometry.cc.
References cellGeomPtr(), FastTimeDetId::geometryCell(), getPosition(), and topology().
Referenced by dbString(), and ftl::RecHitTools::getCorners().
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 169 of file FastTimeGeometry.cc.
References m_cellVec, and CaloCellGeometry::param().
Referenced by present(), and topology().
GlobalPoint FastTimeGeometry::getPosition | ( | const DetId & | id | ) | const |
Definition at line 103 of file FastTimeGeometry.cc.
References FastTimeTopology::dddConstants(), FastTimeDDDConstants::getPosition(), FastTimeDetId::ieta(), FastTimeDetId::iphi(), m_Type, topology(), and FastTimeDetId::zside().
Referenced by dbString(), and getGeometry().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 217 of file FastTimeGeometry.cc.
References cellGeomPtr(), FastTimeTopology::dddConstants(), FastTimeDDDConstants::getRin(), FastTimeDDDConstants::getRout(), FastTimeDDDConstants::getZHalf(), runTauDisplay::gp, mps_fire::i, gen::k, k_NumberOfParametersPerShape, k_NumberOfShapes, m_Type, m_validGeomIds, CaloSubdetectorGeometry::numberOfParametersPerShape(), CaloSubdetectorGeometry::numberOfShapes(), CaloSubdetectorGeometry::numberOfTransformParms(), findQualityFiles::rr, topology(), FastTimeTopology::totalGeomModules(), and groupFilesInBlocks::tt.
Referenced by dbString().
|
inlineoverridevirtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented from CaloSubdetectorGeometry.
Definition at line 76 of file FastTimeGeometry.h.
References CaloSubdetectorGeometry::m_validIds.
Referenced by FWRecoGeometryESProducer::addFTLGeometry().
|
inline |
Definition at line 77 of file FastTimeGeometry.h.
References fillNamedParams(), getCells(), getClosestCell(), initializeParms(), m_validGeomIds, and alignCSCRings::r.
|
overrideprotectedvirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 152 of file FastTimeGeometry.cc.
References gather_cfg::cout, TauDecayModes::dec, FastTimeTopology::detId2denseGeomId(), FastTimeDetId::geometryCell(), m_cellVec, DetId::rawId(), and topology().
Referenced by topology().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 33 of file FastTimeGeometry.cc.
Referenced by getValidGeomDetIds().
void FastTimeGeometry::localCorners | ( | Pt3DVec & | lc, |
const CCGFloat * | pv, | ||
unsigned int | i, | ||
Pt3D & | ref | ||
) |
Definition at line 36 of file FastTimeGeometry.cc.
References FlatTrd::localCorners().
Referenced by dbString().
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 43 of file FastTimeGeometry.cc.
References CaloSubdetectorGeometry::cornersMgr(), gather_cfg::cout, FastTimeTopology::dddConstants(), TauDecayModes::dec, FastTimeTopology::decode(), FastTimeTopology::encode(), FastTimeDetId::geometryCell(), m_cellVec, m_Type, m_validGeomIds, CaloSubdetectorGeometry::m_validIds, DetIdAssociatorESProducer_cff::nPhi, FastTimeDDDConstants::numberEtaZ(), FastTimeDDDConstants::numberPhi(), phi, DetId::rawId(), topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by FastTimeGeometryLoader::buildGeom(), and dbString().
|
overridevirtual |
is this detid present in the geometry?
Reimplemented from CaloSubdetectorGeometry.
Definition at line 96 of file FastTimeGeometry.cc.
References FastTimeDetId::geometryCell(), getGeometryRawPtr(), and topology().
Referenced by dbString().
|
inlinestatic |
Definition at line 93 of file FastTimeGeometry.h.
References cellElement(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 165 of file FastTimeGeometry.cc.
References topology(), and FastTimeTopology::totalGeomModules().
Referenced by topology().
void FastTimeGeometry::sortDetIds | ( | void | ) |
Definition at line 212 of file FastTimeGeometry.cc.
References CaloSubdetectorGeometry::m_validIds, and jetUpdater_cfi::sort.
Referenced by FastTimeGeometryLoader::build(), and topology().
|
inline |
Definition at line 96 of file FastTimeGeometry.h.
References addValidID(), cellGeomPtr(), getGeometryRawPtr(), indexFor(), m_topology, AlCaHLTBitMon_ParallelJobs::p, sizeForDenseIndex(), CaloSubdetectorGeometry::sizeForDenseIndex(), and sortDetIds().
Referenced by dbString(), FastTimeGeometry(), getClosestCell(), getCorners(), getGeometry(), getPosition(), getSummary(), indexFor(), newCell(), present(), and sizeForDenseIndex().
|
private |
Definition at line 117 of file FastTimeGeometry.h.
Referenced by cellGeomPtr(), getGeometryRawPtr(), indexFor(), and newCell().
|
private |
Definition at line 120 of file FastTimeGeometry.h.
|
private |
Definition at line 115 of file FastTimeGeometry.h.
Referenced by topology().
|
private |
Definition at line 119 of file FastTimeGeometry.h.
Referenced by cellElement(), getClosestCell(), getCorners(), getPosition(), getSummary(), and newCell().
|
private |
Definition at line 118 of file FastTimeGeometry.h.
Referenced by cellGeomPtr(), getSummary(), getValidGeomDetIds(), and newCell().