#include <CandidateSimMuonMatcher.h>
Static Public Member Functions | |
static std::vector< const l1t::RegionalMuonCand * > | ghostBust (const l1t::RegionalMuonCandBxCollection *mtfCands, const AlgoMuons &gbCandidates, AlgoMuons &ghostBustedProcMuons) |
Private Attributes | |
TH1D * | deltaPhiPropCandMean = nullptr |
TH1D * | deltaPhiPropCandStdDev = nullptr |
const edm::ParameterSet & | edmCfg |
AlgoMuons | gbCandidates |
edm::ESHandle< MagneticField > | magField |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > & | magneticFieldEsToken |
std::vector< MatchingResult > | matchingResults |
const OMTFConfiguration * | omtfConfig |
edm::ESHandle< Propagator > | propagator |
const edm::ESGetToken< Propagator, TrackingComponentsRecord > & | propagatorEsToken |
Definition at line 95 of file CandidateSimMuonMatcher.h.
CandidateSimMuonMatcher::CandidateSimMuonMatcher | ( | const edm::ParameterSet & | edmCfg, |
const OMTFConfiguration * | omtfConfig, | ||
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > & | magneticFieldEsToken, | ||
const edm::ESGetToken< Propagator, TrackingComponentsRecord > & | propagatorEsToken | ||
) |
Definition at line 42 of file CandidateSimMuonMatcher.cc.
References deltaPhiPropCandMean, deltaPhiPropCandStdDev, edmCfg, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), testHGCalDigi_cfg::inFile, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 60 of file CandidateSimMuonMatcher.cc.
TrajectoryStateOnSurface CandidateSimMuonMatcher::atStation2 | ( | FreeTrajectoryState | ftsStart, |
float | eta | ||
) | const |
Definition at line 274 of file CandidateSimMuonMatcher.cc.
References PVValHelper::eta, Propagator::propagate(), propagator, and omtf::DataWord64::rpc.
Referenced by propagate().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 62 of file CandidateSimMuonMatcher.cc.
References options_cfi::eventSetup, magField, magneticFieldEsToken, propagator, and propagatorEsToken.
std::vector< MatchingResult > CandidateSimMuonMatcher::cleanMatching | ( | std::vector< MatchingResult > | matchingResults, |
std::vector< const l1t::RegionalMuonCand *> & | muonCands, | ||
AlgoMuons & | ghostBustedProcMuons | ||
) |
Definition at line 468 of file CandidateSimMuonMatcher.cc.
References a, b, MatchingResult::duplicate, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, trackerHitRTTI::isMatched(), LogTrace, MatchingResult::matched, matchingResults, mps_fire::result, and jetsAK4_CHS_cff::sort.
Referenced by match().
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 206 of file CandidateSimMuonMatcher.cc.
|
inline |
Definition at line 165 of file CandidateSimMuonMatcher.h.
References matchingResults.
Referenced by EventCapture::observeEventEnd().
|
static |
Definition at line 208 of file CandidateSimMuonMatcher.cc.
References funct::abs(), BXVector< T >::at(), l1t::MicroGMTConfiguration::calcGlobalPhi(), Exception, gbCandidates, hwGmtPhiToGlobalPhi(), testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, LogTrace, and BXVector< T >::size().
Referenced by observeEventEnd().
MatchingResult CandidateSimMuonMatcher::match | ( | const l1t::RegionalMuonCand * | omtfCand, |
const AlgoMuonPtr & | procMuon, | ||
const SimTrack & | simTrack, | ||
TrajectoryStateOnSurface & | tsof | ||
) |
Definition at line 349 of file CandidateSimMuonMatcher.cc.
References funct::abs(), l1t::MicroGMTConfiguration::calcGlobalPhi(), deltaPhiPropCandMean, deltaPhiPropCandStdDev, PV3DBase< T, PVType, FrameType >::eta(), foldPhi(), TrajectoryStateOnSurface::globalPosition(), l1t::RegionalMuonCand::hwEta(), hwGmtPhiToGlobalPhi(), l1t::RegionalMuonCand::hwPhi(), l1t::RegionalMuonCand::hwPt(), l1t::RegionalMuonCand::hwQual(), LogTrace, M_PI, MatchingResult::matched, SiStripPI::mean, normal_pdf(), PV3DBase< T, PVType, FrameType >::phi(), l1t::RegionalMuonCand::processor(), muonRecoAnalyzer_cfi::ptBin, mps_fire::result, cscDigiValidation_cfi::simTrack, and l1t::RegionalMuonCand::trackFinderType().
Referenced by match(), and observeEventEnd().
MatchingResult CandidateSimMuonMatcher::match | ( | const l1t::RegionalMuonCand * | omtfCand, |
const AlgoMuonPtr & | procMuon, | ||
const TrackingParticle & | trackingParticle, | ||
TrajectoryStateOnSurface & | tsof | ||
) |
Definition at line 408 of file CandidateSimMuonMatcher.cc.
References funct::abs(), l1t::MicroGMTConfiguration::calcGlobalPhi(), deltaPhiPropCandMean, deltaPhiPropCandStdDev, PV3DBase< T, PVType, FrameType >::eta(), foldPhi(), TrajectoryStateOnSurface::globalPosition(), l1t::RegionalMuonCand::hwEta(), hwGmtPhiToGlobalPhi(), l1t::RegionalMuonCand::hwPhi(), l1t::RegionalMuonCand::hwPt(), l1t::RegionalMuonCand::hwQual(), LogTrace, M_PI, MatchingResult::matched, SiStripPI::mean, TrackingParticle::momentum(), normal_pdf(), TrackingParticle::pdgId(), PV3DBase< T, PVType, FrameType >::phi(), l1t::RegionalMuonCand::processor(), TrackingParticle::pt(), muonRecoAnalyzer_cfi::ptBin, mps_fire::result, and l1t::RegionalMuonCand::trackFinderType().
std::vector< MatchingResult > CandidateSimMuonMatcher::match | ( | std::vector< const l1t::RegionalMuonCand *> & | muonCands, |
AlgoMuons & | ghostBustedProcMuons, | ||
const edm::SimTrackContainer * | simTracks, | ||
const edm::SimVertexContainer * | simVertices, | ||
std::function< bool(const SimTrack &)> const & | simTrackFilter | ||
) |
Definition at line 552 of file CandidateSimMuonMatcher.cc.
References cleanMatching(), TrajectoryStateOnSurface::isValid(), LogTrace, match(), MatchingResult::matched, muonTagProbeFilters_cff::matched, matchingResults, propagate(), MatchingResult::propagationFailed, mps_fire::result, cscDigiValidation_cfi::simTrack, TrackCandidateProducer_cfi::simTracks, and HGCalValidator_cfi::simVertices.
std::vector< MatchingResult > CandidateSimMuonMatcher::match | ( | std::vector< const l1t::RegionalMuonCand *> & | muonCands, |
AlgoMuons & | ghostBustedProcMuons, | ||
const TrackingParticleCollection * | trackingParticles, | ||
std::function< bool(const TrackingParticle &)> const & | simTrackFilter | ||
) |
Definition at line 609 of file CandidateSimMuonMatcher.cc.
References cleanMatching(), TrajectoryStateOnSurface::isValid(), LogTrace, match(), MatchingResult::matched, muonTagProbeFilters_cff::matched, matchingResults, propagate(), MatchingResult::propagationFailed, mps_fire::result, and muonClassificationByHits_cfi::trackingParticles.
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 68 of file CandidateSimMuonMatcher.cc.
References gbCandidates.
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 172 of file CandidateSimMuonMatcher.cc.
References edmCfg, edm::ParameterSet::exists(), gbCandidates, edm::ParameterSet::getParameter(), ghostBust(), LogTrace, match(), matchingResults, edm::Handle< T >::product(), simTrackIsMuonInOmtfBx0(), HGCalValidator_cfi::simVertices, and trackingParticleIsMuonInOmtfBx0().
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 70 of file CandidateSimMuonMatcher.cc.
TrajectoryStateOnSurface CandidateSimMuonMatcher::propagate | ( | const SimTrack & | simTrack, |
const edm::SimVertexContainer * | simVertices | ||
) |
Definition at line 312 of file CandidateSimMuonMatcher.cc.
References atStation2(), gather_cfg::cout, cscDigiValidation_cfi::simTrack, simTrackToFts(), ecalDetailedTimeRecHit_cfi::simVertex, and HGCalValidator_cfi::simVertices.
Referenced by match().
TrajectoryStateOnSurface CandidateSimMuonMatcher::propagate | ( | const TrackingParticle & | trackingParticle | ) |
Definition at line 334 of file CandidateSimMuonMatcher.cc.
References atStation2(), TrackingParticle::momentum(), and simTrackToFts().
FreeTrajectoryState CandidateSimMuonMatcher::simTrackToFts | ( | const SimTrack & | simTrack, |
const SimVertex & | simVertex | ||
) |
Definition at line 290 of file CandidateSimMuonMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, magField, CoreSimTrack::momentum(), ecalDetailedTimeRecHit_cfi::simVertex, and CoreSimTrack::type().
Referenced by propagate().
FreeTrajectoryState CandidateSimMuonMatcher::simTrackToFts | ( | const TrackingParticle & | trackingParticle | ) |
Definition at line 301 of file CandidateSimMuonMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, magField, TrackingParticle::momentum(), TrackingParticle::pdgId(), TrackingParticle::vx(), TrackingParticle::vy(), and TrackingParticle::vz().
|
private |
Definition at line 181 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and match().
|
private |
Definition at line 182 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and match().
|
private |
Definition at line 170 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and observeEventEnd().
|
private |
Definition at line 172 of file CandidateSimMuonMatcher.h.
Referenced by ghostBust(), observeEventBegin(), and observeEventEnd().
|
private |
Definition at line 178 of file CandidateSimMuonMatcher.h.
Referenced by beginRun(), and simTrackToFts().
|
private |
Definition at line 175 of file CandidateSimMuonMatcher.h.
Referenced by beginRun().
|
private |
Definition at line 173 of file CandidateSimMuonMatcher.h.
Referenced by cleanMatching(), getMatchingResults(), match(), and observeEventEnd().
|
private |
Definition at line 168 of file CandidateSimMuonMatcher.h.
|
private |
Definition at line 179 of file CandidateSimMuonMatcher.h.
Referenced by atStation2(), and beginRun().
|
private |
Definition at line 176 of file CandidateSimMuonMatcher.h.
Referenced by beginRun().