#include <CaloDetIdAssociator.h>
Public Member Functions | |
CaloDetIdAssociator () | |
CaloDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize) | |
CaloDetIdAssociator (const edm::ParameterSet &pSet) | |
const GeomDet * | getGeomDet (const DetId &id) const override |
const char * | name () const override |
virtual void | setGeometry (const CaloGeometry *ptr) |
void | setGeometry (const DetIdAssociatorRecord &iRecord) override |
Public Member Functions inherited from DetIdAssociator | |
virtual void | buildMap () |
make the look-up map More... | |
DetIdAssociator (const int nPhi, const int nEta, const double etaBinSize) | |
double | etaBinSize () const |
look-up map bin size in eta dimension More... | |
virtual std::vector< DetId > | getCrossedDetIds (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory) const |
virtual std::vector< DetId > | getCrossedDetIds (const std::set< DetId > &, const std::vector< SteppingHelixStateInfo > &trajectory, const double toleranceInSigmas=-1) const |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &, const int iN=0) const |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &direction, const unsigned int iNEtaPlus, const unsigned int iNEtaMinus, const unsigned int iNPhiPlus, const unsigned int iNPhiMinus) const |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &direction, const MapRange &mapRange) const |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &point, const double d=0) const |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &point, const double dThetaPlus, const double dThetaMinus, const double dPhiPlus, const double dPhiMinus) const |
virtual std::set< DetId > | getDetIdsInACone (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory, const double dR) const |
virtual int | iEta (const GlobalPoint &) const |
look-up map eta index More... | |
virtual int | iPhi (const GlobalPoint &) const |
look-up map phi index More... | |
int | nEtaBins () const |
number of bins of the look-up map in eta dimension More... | |
int | nPhiBins () const |
number of bins of the look-up map in phi dimension More... | |
virtual bool | selectAllInACone (const double dR) const |
helper to see if getDetIdsInACone is useful More... | |
virtual void | setConditions (const DetIdAssociatorRecord &) |
const FiducialVolume & | volume () const |
get active detector volume More... | |
virtual | ~DetIdAssociator () |
Protected Member Functions | |
void | check_setup () const override |
bool | crossedElement (const GlobalPoint &, const GlobalPoint &, const DetId &id, const double tolerance=-1, const SteppingHelixStateInfo *=0) const override |
std::pair< const_iterator, const_iterator > | getDetIdPoints (const DetId &id, std::vector< GlobalPoint > &points) const override |
GlobalPoint | getPosition (const DetId &id) const override |
void | getValidDetIds (unsigned int subDetectorIndex, std::vector< DetId > &) const override |
bool | insideElement (const GlobalPoint &point, const DetId &id) const override |
Protected Member Functions inherited from DetIdAssociator | |
virtual void | dumpMapContent (int, int) const |
virtual void | dumpMapContent (int, int, int, int) const |
void | fillSet (std::set< DetId > &set, unsigned int iEta, unsigned int iPhi) const |
virtual const unsigned int | getNumberOfSubdetectors () const |
unsigned int | index (unsigned int iEta, unsigned int iPhi) const |
virtual bool | nearElement (const GlobalPoint &point, const DetId &id, const double distance) const |
Protected Attributes | |
std::vector< GlobalPoint > | dummy_ |
const CaloGeometry * | geometry_ |
Protected Attributes inherited from DetIdAssociator | |
std::vector< DetId > | container_ |
const double | etaBinSize_ |
std::vector< std::pair< unsigned int, unsigned int > > | lookupMap_ |
double | maxEta_ |
double | minTheta_ |
const int | nEta_ |
const int | nPhi_ |
bool | theMapIsValid_ |
FiducialVolume | volume_ |
Additional Inherited Members | |
Public Types inherited from DetIdAssociator | |
typedef std::vector< GlobalPoint >::const_iterator | const_iterator |
enum | PropagationTarget { Barrel, ForwardEndcap, BackwardEndcap } |
Definition at line 32 of file CaloDetIdAssociator.h.
|
inline |
Definition at line 34 of file CaloDetIdAssociator.h.
|
inline |
Definition at line 35 of file CaloDetIdAssociator.h.
|
inline |
Definition at line 38 of file CaloDetIdAssociator.h.
|
overrideprotectedvirtual |
Reimplemented from DetIdAssociator.
Definition at line 194 of file CaloDetIdAssociator.cc.
References DetIdAssociator::check_setup(), Exception, and geometry_.
Referenced by name().
|
overrideprotectedvirtual |
Reimplemented from DetIdAssociator.
Definition at line 3 of file CaloDetIdAssociator.cc.
References custom_jme_cff::area, Plane::build(), Exception, getDetIdPoints(), SteppingHelixStateInfo::getStateOnSurface(), h, TrajectoryStateOnSurface::hasError(), mps_fire::i, TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), M_PI, mag(), SiStripPI::max, trackingParticleSelector_cfi::maxPhi, trackingParticleSelector_cfi::minPhi, AlCaHLTBitMon_ParallelJobs::p, p1, p2, phi, PV3DBase< T, PVType, FrameType >::phi(), hiPixelPairStep_cff::points, LocalTrajectoryError::positionError(), funct::pow(), dttmaxenums::r32, LocalError::rotate(), idealTransformation::rotation, LocalError::scale(), mathSSE::sqrt(), std::swap(), csvLumiCalc::unit, PV3DBase< T, PVType, FrameType >::x(), anotherprimaryvertexanalyzer_cfi::xMax, anotherprimaryvertexanalyzer_cfi::xMin, geometryCSVtoXML::xx, LocalError::xx(), geometryCSVtoXML::xy, LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), CMSBoostedTauSeedingParameters_cfi::yMax, CMSBoostedTauSeedingParameters_cfi::yMin, geometryCSVtoXML::yy, LocalError::yy(), PV3DBase< T, PVType, FrameType >::z(), hfnoseDigiStudy_cfi::zMax, and hfnoseDigiStudy_cfi::zMin.
Referenced by insideElement().
|
overrideprotectedvirtual |
Implements DetIdAssociator.
Definition at line 211 of file CaloDetIdAssociator.cc.
References dummy_, geometry_, CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), LogDebug, and GeomDetEnumerators::subDetGeom.
Referenced by crossedElement(), and name().
Implements DetIdAssociator.
Definition at line 45 of file CaloDetIdAssociator.h.
|
overrideprotectedvirtual |
Implements DetIdAssociator.
Definition at line 200 of file CaloDetIdAssociator.cc.
References geometry_, CaloSubdetectorGeometry::getGeometry(), and CaloGeometry::getSubdetectorGeometry().
Referenced by name().
|
overrideprotectedvirtual |
Implements DetIdAssociator.
Reimplemented in HcalDetIdAssociator, EcalDetIdAssociator, HODetIdAssociator, and PreshowerDetIdAssociator.
Definition at line 204 of file CaloDetIdAssociator.cc.
References DetId::Calo, Exception, geometry_, and CaloGeometry::getValidDetIds().
Referenced by name().
|
inlineoverrideprotectedvirtual |
Implements DetIdAssociator.
Definition at line 58 of file CaloDetIdAssociator.h.
References crossedElement(), geometry_, CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), and tolerance.
|
inlineoverridevirtual |
Implements DetIdAssociator.
Reimplemented in HcalDetIdAssociator, EcalDetIdAssociator, HODetIdAssociator, and PreshowerDetIdAssociator.
Definition at line 47 of file CaloDetIdAssociator.h.
References check_setup(), getDetIdPoints(), getPosition(), getValidDetIds(), and hiPixelPairStep_cff::points.
Referenced by config.CFG::__str__(), and validation.Sample::digest().
|
inlinevirtual |
Definition at line 41 of file CaloDetIdAssociator.h.
References geometry_.
Referenced by setGeometry().
|
overridevirtual |
Implements DetIdAssociator.
Definition at line 187 of file CaloDetIdAssociator.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ESHandle< T >::product(), and setGeometry().
|
protected |
Definition at line 68 of file CaloDetIdAssociator.h.
Referenced by getDetIdPoints().
|
protected |
Definition at line 67 of file CaloDetIdAssociator.h.
Referenced by check_setup(), getDetIdPoints(), getPosition(), PreshowerDetIdAssociator::getValidDetIds(), HODetIdAssociator::getValidDetIds(), EcalDetIdAssociator::getValidDetIds(), HcalDetIdAssociator::getValidDetIds(), getValidDetIds(), insideElement(), and setGeometry().