#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 30 of file DetIdAssociator.h.
|
inline |
Definition at line 32 of file DetIdAssociator.h.
|
inline |
Definition at line 33 of file DetIdAssociator.h.
|
inlinevirtual |
Definition at line 36 of file DetIdAssociator.h.
|
protectedvirtual |
Definition at line 249 of file DetIdAssociator.cc.
References assert(), check_setup(), PV3DBase< T, PVType, FrameType >::eta(), etaBinSize_, HLT_25ns14e33_v1_cff::etaMax, HLT_25ns14e33_v1_cff::etaMin, getASetOfValidDetIds(), getPosition(), iEta(), iPhi(), LogTrace, nEta_, nPhi_, point, std::swap(), and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
inlineprotectedvirtual |
Reimplemented in HCaloDetIdAssociator.
Definition at line 70 of file DetIdAssociator.h.
References etaBinSize_, edm::hlt::Exception, 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().
|
virtual |
Definition at line 351 of file DetIdAssociator.cc.
References check_setup(), and insideElement().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
|
virtual |
Definition at line 143 of file DetIdAssociator.cc.
References begin, buildMap(), check_setup(), end, PV3DBase< T, PVType, FrameType >::eta(), i, iEta(), iPhi(), j, LogTrace, nEta_, nPhi_, PV3DBase< T, PVType, FrameType >::phi(), and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
inlinevirtual |
Definition at line 44 of file DetIdAssociator.h.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, etaBinSize_, getDetIdsCloseToAPoint(), and nPhi_.
|
virtual |
Definition at line 306 of file DetIdAssociator.cc.
References begin, check_setup(), end, getPosition(), i, iEta(), iPhi(), j, nearElement(), nEta_, nPhi_, point, findQualityFiles::size, and theMap_.
|
virtual |
Definition at line 363 of file DetIdAssociator.cc.
References check_setup().
|
virtual |
Definition at line 398 of file DetIdAssociator.cc.
References check_setup().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by buildMap(), getDetIdsInACone(), and nearElement().
|
virtual |
Definition at line 25 of file DetIdAssociator.cc.
References funct::abs(), check_setup(), 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().
|
virtual |
Definition at line 197 of file DetIdAssociator.cc.
References PV3DBase< T, PVType, FrameType >::eta(), etaBinSize_, and nEta_.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by getCrossedDetIds().
|
virtual |
Definition at line 241 of file DetIdAssociator.cc.
References nPhi_, PV3DBase< T, PVType, FrameType >::phi(), and pi.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
inlineprotectedvirtual |
Definition at line 84 of file DetIdAssociator.h.
References HLT_25ns14e33_v1_cff::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 93 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), and iEta().
|
protected |
Definition at line 94 of file DetIdAssociator.h.
Referenced by check_setup(), getTrajectory(), and setPropagator().
|
protected |
Definition at line 92 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iEta().
|
protected |
Definition at line 91 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iPhi().
|
protected |
Definition at line 88 of file DetIdAssociator.h.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().