#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 47 of file TrackAssociator.h.
HTrackAssociator::HTrackAssociator | ( | ) |
Definition at line 54 of file TrackAssociator.cc.
HTrackAssociator::~HTrackAssociator | ( | ) |
Definition at line 63 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 69 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 141 of file TrackAssociator.cc.
References HTrackAssociator::HAssociatorParameters::dRCalo, HTrackAssociator::HAssociatorParameters::dREcal, HTrackAssociator::HAssociatorParameters::dRHcal, HTrackAssociator::HAssociatorParameters::idRCalo, HTrackAssociator::HAssociatorParameters::idREcal, HTrackAssociator::HAssociatorParameters::idRHcal, info, init, HTrackAssociator::HAssociatorParameters::useCalo, HTrackAssociator::HAssociatorParameters::useEcal, and HTrackAssociator::HAssociatorParameters::useHcal.
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 162 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, info, Parameters::parameters, 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 194 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneTowers, HTrackDetMatchInfo::crossedTowers, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, info, Parameters::parameters, and HTrackAssociator::HAssociatorParameters::useEcal.
|
private |
Definition at line 312 of file TrackAssociator.cc.
References HTrackDetMatchInfo::boxTowers, HiRecoJets_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), errorMatrix2Lands_multiChannel::id, HTrackDetMatchInfo::isGoodCalo, HTrackDetMatchInfo::isGoodEcal, HTrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), LogTrace, HTimerStack::pop_and_push(), HTimerStack::push(), HTrackDetMatchInfo::regionTowers, HTrackDetMatchInfo::trkGlobPosAtEcal, and HTrackDetMatchInfo::trkGlobPosAtHcal.
|
private |
Definition at line 227 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, egHLT::errCodes::EBRecHits, egHLT::errCodes::EERecHits, edm::Event::getByLabel(), HTrackDetMatchInfo::isGoodEcal, LogTrace, HTimerStack::pop_and_push(), HTimerStack::push(), and HTrackDetMatchInfo::trkGlobPosAtEcal.
|
private |
Definition at line 449 of file TrackAssociator.cc.
References HTrackDetMatchInfo::boxHcalRecHits, HTrackDetMatchInfo::coneHcalRecHits, HTrackDetMatchInfo::crossedHcalRecHits, edm::Event::getByLabel(), egHLT::errCodes::HBHERecHits, HTrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), LogTrace, HTimerStack::pop_and_push(), HTimerStack::push(), HTrackDetMatchInfo::regionHcalRecHits, and HTrackDetMatchInfo::trkGlobPosAtHcal.
|
private |
Definition at line 537 of file TrackAssociator.cc.
References HiRecoJets_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), errorMatrix2Lands_multiChannel::id, HTrackDetMatchInfo::isGoodCalo, edm::HandleBase::isValid(), LogTrace, HTimerStack::pop_and_push(), HTimerStack::push(), 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 178 of file TrackAssociator.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, HTrackDetMatchInfo::ecalConeEnergyFromRecHits(), HTrackDetMatchInfo::ecalEnergyFromRecHits(), info, Parameters::parameters, and HTrackAssociator::HAssociatorParameters::useHcal.
FreeTrajectoryState HTrackAssociator::getFreeTrajectoryState | ( | const edm::EventSetup & | iSetup, |
const reco::Track & | track | ||
) |
get FreeTrajectoryState from different track representations
Definition at line 641 of file TrackAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, reco::TrackBase::charge(), alignCSCRings::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 621 of file TrackAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, DeDxDiscriminatorTools::charge(), alignCSCRings::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 211 of file TrackAssociator.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, HTrackDetMatchInfo::hcalConeEnergyFromRecHits(), HTrackDetMatchInfo::hcalEnergyFromRecHits(), info, Parameters::parameters, and HTrackAssociator::HAssociatorParameters::useEcal.
|
inlineprivate |
Definition at line 173 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 178 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 183 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 188 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 117 of file TrackAssociator.cc.
References anyDirection, SteppingHelixPropagator::applyRadX0Correction(), ecalTB2006H4_GenSimDigiReco_cfg::bField, edm::EventSetup::get(), SteppingHelixPropagator::setMaterialMode(), and SteppingHelixPropagator_cfi::SteppingHelixPropagator.
void HTrackAssociator::setPropagator | ( | Propagator * | ptr | ) |
use a user configured propagator
Definition at line 101 of file TrackAssociator.cc.
void HTrackAssociator::useDefaultPropagator | ( | ) |
|
private |
Definition at line 201 of file TrackAssociator.h.
|
private |
CaloTowers.
Definition at line 212 of file TrackAssociator.h.
|
private |
Definition at line 197 of file TrackAssociator.h.
|
private |
Definition at line 196 of file TrackAssociator.h.
|
private |
Definition at line 194 of file TrackAssociator.h.
|
private |
Labels of the detector EDProducts (empty by default) ECAL
Definition at line 207 of file TrackAssociator.h.
|
private |
Definition at line 199 of file TrackAssociator.h.
|
private |
Definition at line 208 of file TrackAssociator.h.
|
private |
HCAL.
Definition at line 210 of file TrackAssociator.h.
|
private |
Definition at line 200 of file TrackAssociator.h.
|
private |
Definition at line 193 of file TrackAssociator.h.
|
private |
Definition at line 203 of file TrackAssociator.h.
|
private |
Definition at line 195 of file TrackAssociator.h.