#include <TrackAssociator.h>
Classes | |
class | HAssociatorParameters |
Public Member Functions | |
void | addDataLabels (const std::string className, const std::string moduleLabel, const std::string productInstanceLabel="") |
specify names of EDProducts to use for different input data types More... | |
HTrackDetMatchInfo | associate (const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const HAssociatorParameters &) |
std::vector< EcalRecHit > | associateEcal (const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const double dR=-1) |
std::vector< CaloTower > | associateHcal (const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const double dR=-1) |
double | getEcalEnergy (const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const double dR=-1) |
FreeTrajectoryState | getFreeTrajectoryState (const edm::EventSetup &, const reco::Track &) |
get FreeTrajectoryState from different track representations More... | |
FreeTrajectoryState | getFreeTrajectoryState (const edm::EventSetup &, const SimTrack &, const SimVertex &) |
double | getHcalEnergy (const edm::Event &, const edm::EventSetup &, const FreeTrajectoryState &, const double dR=-1) |
HTrackAssociator () | |
void | setPropagator (Propagator *) |
use a user configured propagator More... | |
void | useDefaultPropagator () |
use the default propagator More... | |
~HTrackAssociator () | |
Private Member Functions | |
void | fillCaloTowers (const edm::Event &, const edm::EventSetup &, HTrackDetMatchInfo &, const FreeTrajectoryState &, const int, const double) |
void | fillEcal (const edm::Event &, const edm::EventSetup &, HTrackDetMatchInfo &, const FreeTrajectoryState &, const int, const double) |
void | fillHcal (const edm::Event &, const edm::EventSetup &, HTrackDetMatchInfo &, const FreeTrajectoryState &, const int, const double) |
void | fillHcalTowers (const edm::Event &, const edm::EventSetup &, HTrackDetMatchInfo &, const FreeTrajectoryState &, const int, const double) |
math::XYZPoint | getPoint (const GlobalPoint &point) |
math::XYZPoint | getPoint (const LocalPoint &point) |
math::XYZVector | getVector (const GlobalVector &vec) |
math::XYZVector | getVector (const LocalVector &vec) |
void | init (const edm::EventSetup &) |
Private Attributes | |
HCaloDetIdAssociator | caloDetIdAssociator_ |
std::vector< std::string > | CaloTowerCollectionLabels |
CaloTowers. More... | |
std::vector< std::vector< std::set< uint32_t > > > * | caloTowerMap_ |
int | debug_ |
Propagator * | defProp_ |
std::vector< std::string > | EBRecHitCollectionLabels |
HEcalDetIdAssociator | ecalDetIdAssociator_ |
std::vector< std::string > | EERecHitCollectionLabels |
std::vector< std::string > | HBHERecHitCollectionLabels |
HCAL. More... | |
HHcalDetIdAssociator | hcalDetIdAssociator_ |
Propagator * | ivProp_ |
edm::ESHandle< CaloGeometry > | theCaloGeometry_ |
bool | useDefaultPropagator_ |
Definition at line 46 of file TrackAssociator.h.
HTrackAssociator::HTrackAssociator | ( | ) |
Definition at line 44 of file TrackAssociator.cc.
HTrackAssociator::~HTrackAssociator | ( | ) |
Definition at line 52 of file TrackAssociator.cc.
void HTrackAssociator::addDataLabels | ( | const std::string | className, |
const std::string | moduleLabel, | ||
const std::string | productInstanceLabel = "" |
||
) |
specify names of EDProducts to use for different input data types
Definition at line 58 of file TrackAssociator.cc.
HTrackDetMatchInfo HTrackAssociator::associate | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | trackOrigin, | ||
const HAssociatorParameters & | parameters | ||
) |
propagate a track across the whole detector and find associated objects. Association is done in two modes 1) an object is associated to a track only if crossed by track 2) an object is associated to a track if it is withing an eta-phi cone of some radius with respect to a track. (the cone origin is at (0,0,0))
Definition at line 116 of file TrackAssociator.cc.
References HTrackAssociator::HAssociatorParameters::dRCalo, HTrackAssociator::HAssociatorParameters::dREcal, HTrackAssociator::HAssociatorParameters::dRHcal, HLT_2018_cff::fillCaloTowers, HTrackAssociator::HAssociatorParameters::idRCalo, HTrackAssociator::HAssociatorParameters::idREcal, HTrackAssociator::HAssociatorParameters::idRHcal, info(), init, HTrackAssociator::HAssociatorParameters::useCalo, HTrackAssociator::HAssociatorParameters::useEcal, and HTrackAssociator::HAssociatorParameters::useHcal.
Referenced by SequenceTypes._ModuleSequenceType::remove(), and SequenceTypes._ModuleSequenceType::replace().
std::vector< EcalRecHit > HTrackAssociator::associateEcal | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | trackOrigin, | ||
const double | dR = -1 |
||
) |
associate ECAL only and return RecHits negative dR means only crossed elements
Definition at line 138 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, HGC3DClusterGenMatchSelector_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, info(), and HTrackAssociator::HAssociatorParameters::useHcal.
std::vector< CaloTower > HTrackAssociator::associateHcal | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | trackOrigin, | ||
const double | dR = -1 |
||
) |
associate ECAL only and return RecHits negative dR means only crossed elements
Definition at line 168 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneTowers, HTrackDetMatchInfo::crossedTowers, HGC3DClusterGenMatchSelector_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, info(), and HTrackAssociator::HAssociatorParameters::useEcal.
|
private |
Definition at line 275 of file TrackAssociator.cc.
References HTrackDetMatchInfo::boxTowers, eleHcalExtractorBlocks_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), triggerObjects_cff::id, HTrackDetMatchInfo::isGoodCalo, HTrackDetMatchInfo::isGoodEcal, HTrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), LogTrace, HTrackDetMatchInfo::regionTowers, hgcalTowerProducer_cfi::tower, HTrackDetMatchInfo::trkGlobPosAtEcal, and HTrackDetMatchInfo::trkGlobPosAtHcal.
|
private |
Definition at line 198 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, filterRecHits_cfi::EBRecHits, filterRecHits_cfi::EERecHits, edm::Event::getByLabel(), HTrackDetMatchInfo::isGoodEcal, LogTrace, and HTrackDetMatchInfo::trkGlobPosAtEcal.
|
private |
Definition at line 396 of file TrackAssociator.cc.
References HTrackDetMatchInfo::boxHcalRecHits, HTrackDetMatchInfo::coneHcalRecHits, HTrackDetMatchInfo::crossedHcalRecHits, edm::Event::getByLabel(), egHLT::errCodes::HBHERecHits, HTrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), LogTrace, HTrackDetMatchInfo::regionHcalRecHits, and HTrackDetMatchInfo::trkGlobPosAtHcal.
|
private |
Definition at line 477 of file TrackAssociator.cc.
References eleHcalExtractorBlocks_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), triggerObjects_cff::id, HTrackDetMatchInfo::isGoodCalo, edm::HandleBase::isValid(), LogTrace, hgcalTowerProducer_cfi::tower, and HTrackDetMatchInfo::trkGlobPosAtHcal.
double HTrackAssociator::getEcalEnergy | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | trackOrigin, | ||
const double | dR = -1 |
||
) |
associate ECAL only and return energy negative dR means only crossed elements
Definition at line 153 of file TrackAssociator.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, HTrackDetMatchInfo::ecalConeEnergyFromRecHits(), HTrackDetMatchInfo::ecalEnergyFromRecHits(), info(), and HTrackAssociator::HAssociatorParameters::useHcal.
FreeTrajectoryState HTrackAssociator::getFreeTrajectoryState | ( | const edm::EventSetup & | iSetup, |
const reco::Track & | track | ||
) |
get FreeTrajectoryState from different track representations
Definition at line 570 of file TrackAssociator.cc.
References Calorimetry_cff::bField, reco::TrackBase::charge(), MillePedeFileConverter_cfg::e, edm::EventSetup::get(), reco::TrackBase::momentum(), point, and reco::TrackBase::vertex().
FreeTrajectoryState HTrackAssociator::getFreeTrajectoryState | ( | const edm::EventSetup & | iSetup, |
const SimTrack & | track, | ||
const SimVertex & | vertex | ||
) |
Definition at line 550 of file TrackAssociator.cc.
References Calorimetry_cff::bField, ALCARECOTkAlJpsiMuMu_cff::charge, MillePedeFileConverter_cfg::e, edm::EventSetup::get(), CoreSimTrack::momentum(), point, CoreSimVertex::position(), and CoreSimTrack::type().
double HTrackAssociator::getHcalEnergy | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const FreeTrajectoryState & | trackOrigin, | ||
const double | dR = -1 |
||
) |
associate ECAL only and return energy negative dR means only crossed elements
Definition at line 183 of file TrackAssociator.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, HTrackDetMatchInfo::hcalConeEnergyFromRecHits(), HTrackDetMatchInfo::hcalEnergyFromRecHits(), info(), and HTrackAssociator::HAssociatorParameters::useEcal.
|
inlineprivate |
Definition at line 162 of file TrackAssociator.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlineprivate |
Definition at line 164 of file TrackAssociator.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlineprivate |
Definition at line 166 of file TrackAssociator.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlineprivate |
Definition at line 168 of file TrackAssociator.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 95 of file TrackAssociator.cc.
References anyDirection, SteppingHelixPropagator::applyRadX0Correction(), Calorimetry_cff::bField, edm::EventSetup::get(), SteppingHelixPropagator::setMaterialMode(), and SteppingHelixPropagator_cfi::SteppingHelixPropagator.
void HTrackAssociator::setPropagator | ( | Propagator * | ptr | ) |
use a user configured propagator
Definition at line 84 of file TrackAssociator.cc.
void HTrackAssociator::useDefaultPropagator | ( | ) |
|
private |
Definition at line 178 of file TrackAssociator.h.
|
private |
CaloTowers.
Definition at line 189 of file TrackAssociator.h.
|
private |
Definition at line 174 of file TrackAssociator.h.
|
private |
Definition at line 173 of file TrackAssociator.h.
|
private |
Definition at line 171 of file TrackAssociator.h.
|
private |
Labels of the detector EDProducts (empty by default) ECAL
Definition at line 184 of file TrackAssociator.h.
|
private |
Definition at line 176 of file TrackAssociator.h.
|
private |
Definition at line 185 of file TrackAssociator.h.
|
private |
HCAL.
Definition at line 187 of file TrackAssociator.h.
|
private |
Definition at line 177 of file TrackAssociator.h.
|
private |
Definition at line 170 of file TrackAssociator.h.
|
private |
Definition at line 180 of file TrackAssociator.h.
|
private |
Definition at line 172 of file TrackAssociator.h.