#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 50 of file TrackAssociator.cc.
HTrackAssociator::~HTrackAssociator | ( | ) |
Definition at line 59 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 65 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 137 of file TrackAssociator.cc.
References HTrackAssociator::HAssociatorParameters::dRCalo, HTrackAssociator::HAssociatorParameters::dREcal, HTrackAssociator::HAssociatorParameters::dRHcal, hcalnoiseinfoproducer_cfi::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 157 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, info(), metProducer_cfi::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 189 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneTowers, HTrackDetMatchInfo::crossedTowers, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, info(), metProducer_cfi::parameters, and HTrackAssociator::HAssociatorParameters::useEcal.
|
private |
Definition at line 300 of file TrackAssociator.cc.
References HTrackDetMatchInfo::boxTowers, eleHcalExtractorBlocks_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), hcalTTPDigis_cfi::id, HTrackDetMatchInfo::isGoodCalo, HTrackDetMatchInfo::isGoodEcal, HTrackDetMatchInfo::isGoodHcal, edm::HandleBase::isValid(), LogTrace, HTrackDetMatchInfo::regionTowers, HTrackDetMatchInfo::trkGlobPosAtEcal, and HTrackDetMatchInfo::trkGlobPosAtHcal.
|
private |
Definition at line 222 of file TrackAssociator.cc.
References HTrackDetMatchInfo::coneEcalRecHits, HTrackDetMatchInfo::crossedEcalRecHits, egHLT::errCodes::EBRecHits, egHLT::errCodes::EERecHits, edm::Event::getByLabel(), HTrackDetMatchInfo::isGoodEcal, LogTrace, and HTrackDetMatchInfo::trkGlobPosAtEcal.
|
private |
Definition at line 429 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 509 of file TrackAssociator.cc.
References eleHcalExtractorBlocks_cff::caloTowers, HTrackDetMatchInfo::coneTowers, gather_cfg::cout, HTrackDetMatchInfo::crossedTowers, edm::Event::getByLabel(), hcalTTPDigis_cfi::id, HTrackDetMatchInfo::isGoodCalo, edm::HandleBase::isValid(), LogTrace, 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 173 of file TrackAssociator.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dREcal, HTrackDetMatchInfo::ecalConeEnergyFromRecHits(), HTrackDetMatchInfo::ecalEnergyFromRecHits(), info(), metProducer_cfi::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 606 of file TrackAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::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 586 of file TrackAssociator.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::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 206 of file TrackAssociator.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, HTrackAssociator::HAssociatorParameters::dRHcal, HTrackDetMatchInfo::hcalConeEnergyFromRecHits(), HTrackDetMatchInfo::hcalEnergyFromRecHits(), info(), metProducer_cfi::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 113 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 97 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.