#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.
References getDetIdsCloseToAPoint(), and getTrajectory().
|
protectedvirtual |
Definition at line 281 of file DetIdAssociator.cc.
References check_setup(), PV3DBase< T, PVType, FrameType >::eta(), 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 check_setup(), and getDetIdsCloseToAPoint().
|
inlineprotectedvirtual |
Reimplemented in HCaloDetIdAssociator.
Definition at line 65 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 394 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 138 of file DetIdAssociator.cc.
References begin, buildMap(), check_setup(), 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(), and ~HDetIdAssociator().
|
inlinevirtual |
Definition at line 44 of file DetIdAssociator.h.
References eleHcalExtractorBlocks_cff::caloTowers, HGC3DClusterGenMatchSelector_cfi::dR, etaBinSize_, getCrossedDetIds(), getDetIdsCloseToAPoint(), getDetIdsInACone(), getMaxEDetId(), iEta(), createfilelist::int, iPhi(), nPhi_, and FastTrackerRecHitMaskProducer_cfi::recHits.
|
virtual |
Definition at line 345 of file DetIdAssociator.cc.
References begin, check_setup(), relativeConstraints::empty, end, getPosition(), mps_fire::i, iEta(), LEDCalibrationChannels::ieta, iPhi(), LEDCalibrationChannels::iphi, dqmiolumiharvest::j, nearElement(), nEta_, nPhi_, point, and theMap_.
Referenced by getDetIdsCloseToAPoint().
|
virtual |
Definition at line 407 of file DetIdAssociator.cc.
References check_setup(), triggerObjects_cff::id, and hgcalTowerProducer_cfi::tower.
Referenced by getDetIdsCloseToAPoint().
|
virtual |
Definition at line 442 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 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().
Referenced by ~HDetIdAssociator().
|
virtual |
Definition at line 194 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 274 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 82 of file DetIdAssociator.h.
References HLT_2018_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 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().