#include <DetIdAssociator.h>
Public Member Functions | |
virtual std::set< DetId > | getCrossedDetIds (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory) |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &, const int idR=0) |
virtual std::set< DetId > | getDetIdsCloseToAPoint (const GlobalPoint &point, const double dR=0) |
virtual std::set< DetId > | getDetIdsInACone (const std::set< DetId > &, const std::vector< GlobalPoint > &trajectory, const double) |
virtual std::set< DetId > | getMaxEDetId (const std::set< DetId > &, edm::Handle< CaloTowerCollection > caloTowers) |
virtual std::set< DetId > | getMaxEDetId (const std::set< DetId > &, edm::Handle< HBHERecHitCollection > recHits) |
virtual std::vector< GlobalPoint > | getTrajectory (const FreeTrajectoryState &, const std::vector< GlobalPoint > &) |
HDetIdAssociator () | |
HDetIdAssociator (const int nPhi, const int nEta, const double etaBinSize) | |
virtual int | iEta (const GlobalPoint &) |
virtual int | iPhi (const GlobalPoint &) |
virtual void | setPropagator (Propagator *ptr) |
virtual | ~HDetIdAssociator () |
Protected Member Functions | |
virtual void | buildMap () |
virtual void | check_setup () |
virtual std::set< DetId > | getASetOfValidDetIds ()=0 |
virtual std::vector< GlobalPoint > | getDetIdPoints (const DetId &)=0 |
virtual GlobalPoint | getPosition (const DetId &)=0 |
virtual bool | insideElement (const GlobalPoint &, const DetId &)=0 |
virtual bool | nearElement (const GlobalPoint &point, const DetId &id, const double distance) |
Protected Attributes | |
const double | etaBinSize_ |
Propagator * | ivProp_ |
const int | nEta_ |
const int | nPhi_ |
std::vector< std::vector< std::set< DetId > > > * | theMap_ |
Definition at line 33 of file DetIdAssociator.h.
|
inline |
Definition at line 35 of file DetIdAssociator.h.
|
inline |
Definition at line 36 of file DetIdAssociator.h.
|
inlinevirtual |
Definition at line 39 of file DetIdAssociator.h.
References getDetIdsCloseToAPoint(), and getTrajectory().
|
protectedvirtual |
Definition at line 251 of file DetIdAssociator.cc.
References check_setup(), PV3DBase< T, PVType, FrameType >::eta(), etaBinSize_, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, getASetOfValidDetIds(), getPosition(), iEta(), iPhi(), LogTrace, nEta_, nPhi_, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, point, std::swap(), and theMap_.
Referenced by check_setup(), and getDetIdsCloseToAPoint().
|
inlineprotectedvirtual |
Reimplemented in HCaloDetIdAssociator.
Definition at line 73 of file DetIdAssociator.h.
References buildMap(), etaBinSize_, Exception, getASetOfValidDetIds(), getDetIdPoints(), getPosition(), insideElement(), ivProp_, nEta_, and nPhi_.
Referenced by buildMap(), HCaloDetIdAssociator::check_setup(), getCrossedDetIds(), getDetIdsCloseToAPoint(), getDetIdsInACone(), getMaxEDetId(), and getTrajectory().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator, HHcalDetIdAssociator, and HEcalDetIdAssociator.
Referenced by buildMap(), and check_setup().
|
virtual |
Definition at line 353 of file DetIdAssociator.cc.
References check_setup(), and insideElement().
Referenced by getDetIdsCloseToAPoint().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by check_setup().
|
virtual |
Definition at line 145 of file DetIdAssociator.cc.
References begin, buildMap(), check_setup(), end, PV3DBase< T, PVType, FrameType >::eta(), mps_fire::i, iEta(), iPhi(), LogTrace, nEta_, nPhi_, PV3DBase< T, PVType, FrameType >::phi(), and theMap_.
Referenced by getDetIdsCloseToAPoint(), and ~HDetIdAssociator().
|
inlinevirtual |
Definition at line 47 of file DetIdAssociator.h.
References eleHcalExtractorBlocks_cff::caloTowers, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, etaBinSize_, getCrossedDetIds(), getDetIdsCloseToAPoint(), getDetIdsInACone(), getMaxEDetId(), iEta(), createfilelist::int, iPhi(), and nPhi_.
|
virtual |
Definition at line 308 of file DetIdAssociator.cc.
References begin, check_setup(), relativeConstraints::empty, end, getPosition(), mps_fire::i, iEta(), iPhi(), nearElement(), nEta_, nPhi_, point, and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
virtual |
Definition at line 365 of file DetIdAssociator.cc.
References check_setup(), and triggerObjects_cff::id.
Referenced by getDetIdsCloseToAPoint().
|
virtual |
Definition at line 400 of file DetIdAssociator.cc.
References check_setup(), and triggerObjects_cff::id.
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by buildMap(), check_setup(), getDetIdsInACone(), and nearElement().
|
virtual |
Definition at line 27 of file DetIdAssociator.cc.
References funct::abs(), check_setup(), TCMET_cfi::corner, PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), ivProp_, LogTrace, PV3DBase< T, PVType, FrameType >::mag(), FreeTrajectoryState::momentum(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), point, FreeTrajectoryState::position(), Propagator::propagate(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by ~HDetIdAssociator().
|
virtual |
Definition at line 199 of file DetIdAssociator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), etaBinSize_, createfilelist::int, and nEta_.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by check_setup(), and getCrossedDetIds().
|
virtual |
Definition at line 243 of file DetIdAssociator.cc.
References createfilelist::int, nPhi_, PV3DBase< T, PVType, FrameType >::phi(), and pi.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
inlineprotectedvirtual |
Definition at line 87 of file DetIdAssociator.h.
References SoftLeptonByDistance_cfi::distance, PV3DBase< T, PVType, FrameType >::eta(), getPosition(), PV3DBase< T, PVType, FrameType >::phi(), funct::pow(), and mathSSE::sqrt().
Referenced by getDetIdsInACone().
|
inlinevirtual |
|
protected |
Definition at line 96 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), and iEta().
|
protected |
Definition at line 97 of file DetIdAssociator.h.
Referenced by check_setup(), getTrajectory(), and setPropagator().
|
protected |
Definition at line 95 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iEta().
|
protected |
Definition at line 94 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iPhi().
|
protected |
Definition at line 91 of file DetIdAssociator.h.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().