#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 32 of file DetIdAssociator.h.
|
inline |
Definition at line 34 of file DetIdAssociator.h.
|
inline |
Definition at line 35 of file DetIdAssociator.h.
|
inlinevirtual |
Definition at line 38 of file DetIdAssociator.h.
|
protectedvirtual |
Definition at line 281 of file DetIdAssociator.cc.
References cms::cuda::assert(), check_setup(), etaBinSize_, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, getASetOfValidDetIds(), getPosition(), iEta(), LEDCalibrationChannels::ieta, iPhi(), LEDCalibrationChannels::iphi, LogTrace, nEta_, nPhi_, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, point, std::swap(), and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
inlineprotectedvirtual |
Reimplemented in HCaloDetIdAssociator.
Definition at line 65 of file DetIdAssociator.h.
References etaBinSize_, 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 394 of file DetIdAssociator.cc.
References check_setup(), and insideElement().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
|
virtual |
Definition at line 138 of file DetIdAssociator.cc.
References buildMap(), check_setup(), mps_fire::end, PV3DBase< T, PVType, FrameType >::eta(), mps_fire::i, iEta(), LEDCalibrationChannels::ieta, iPhi(), LEDCalibrationChannels::iphi, dqmiolumiharvest::j, LogTrace, nEta_, nPhi_, PV3DBase< T, PVType, FrameType >::phi(), and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
inlinevirtual |
Definition at line 44 of file DetIdAssociator.h.
References HGC3DClusterGenMatchSelector_cfi::dR, etaBinSize_, getDetIdsCloseToAPoint(), createfilelist::int, nPhi_, and point.
|
virtual |
Definition at line 345 of file DetIdAssociator.cc.
References check_setup(), HGC3DClusterGenMatchSelector_cfi::dR, relativeConstraints::empty, mps_fire::end, getPosition(), mps_fire::i, iEta(), LEDCalibrationChannels::ieta, iPhi(), LEDCalibrationChannels::iphi, dqmiolumiharvest::j, nearElement(), nEta_, nPhi_, point, and theMap_.
|
virtual |
Definition at line 407 of file DetIdAssociator.cc.
References check_setup(), triggerObjects_cff::id, and hgcalTowerProducer_cfi::tower.
|
virtual |
Definition at line 442 of file DetIdAssociator.cc.
References check_setup(), and triggerObjects_cff::id.
|
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(), distTCMET_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().
|
virtual |
Definition at line 194 of file DetIdAssociator.cc.
References etaBinSize_, createfilelist::int, nEta_, and point.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
protectedpure virtual |
Implemented in HCaloDetIdAssociator.
Referenced by getCrossedDetIds().
|
virtual |
Definition at line 274 of file DetIdAssociator.cc.
References createfilelist::int, nPhi_, pi, and point.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().
|
inlineprotectedvirtual |
Definition at line 82 of file DetIdAssociator.h.
References HLT_FULL_cff::distance, PV3DBase< T, PVType, FrameType >::eta(), getPosition(), PV3DBase< T, PVType, FrameType >::phi(), point, funct::pow(), and mathSSE::sqrt().
Referenced by getDetIdsInACone().
|
inlinevirtual |
|
protected |
Definition at line 90 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), and iEta().
|
protected |
Definition at line 91 of file DetIdAssociator.h.
Referenced by check_setup(), getTrajectory(), and setPropagator().
|
protected |
Definition at line 89 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iEta().
|
protected |
Definition at line 88 of file DetIdAssociator.h.
Referenced by buildMap(), check_setup(), getDetIdsCloseToAPoint(), getDetIdsInACone(), and iPhi().
|
protected |
Definition at line 85 of file DetIdAssociator.h.
Referenced by buildMap(), getDetIdsCloseToAPoint(), and getDetIdsInACone().