#include <CandidateSimMuonMatcher.h>
Public Member Functions | |
TrajectoryStateOnSurface | atStation2 (const FreeTrajectoryState &ftsStart) const |
void | beginRun (edm::EventSetup const &eventSetup) override |
CandidateSimMuonMatcher (const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig, const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > &magneticFieldEsToken, const edm::ESGetToken< Propagator, TrackingComponentsRecord > &propagatorEsToken) | |
std::vector< MatchingResult > | cleanMatching (std::vector< MatchingResult > matchingResults, std::vector< const l1t::RegionalMuonCand *> &muonCands, AlgoMuons &ghostBustedProcMuons) |
void | endJob () override |
std::vector< MatchingResult > | getMatchingResults () |
std::vector< const l1t::RegionalMuonCand * > | ghostBust (const l1t::RegionalMuonCandBxCollection *mtfCands, const AlgoMuons &gbCandidates, AlgoMuons &ghostBustedProcMuons) |
MatchingResult | match (const l1t::RegionalMuonCand *omtfCand, const AlgoMuonPtr &procMuon, const SimTrack &simTrack, TrajectoryStateOnSurface &tsof) |
MatchingResult | match (const l1t::RegionalMuonCand *omtfCand, const AlgoMuonPtr &procMuon, const TrackingParticle &trackingParticle, TrajectoryStateOnSurface &tsof) |
std::vector< MatchingResult > | match (std::vector< const l1t::RegionalMuonCand *> &muonCands, AlgoMuons &ghostBustedProcMuons, const edm::SimTrackContainer *simTracks, const edm::SimVertexContainer *simVertices, std::function< bool(const SimTrack &)> const &simTrackFilter) |
std::vector< MatchingResult > | match (std::vector< const l1t::RegionalMuonCand *> &muonCands, AlgoMuons &ghostBustedProcMuons, const TrackingParticleCollection *trackingParticles, std::function< bool(const TrackingParticle &)> const &simTrackFilter) |
std::vector< MatchingResult > | matchSimple (std::vector< const l1t::RegionalMuonCand *> &muonCands, AlgoMuons &ghostBustedProcMuons, const edm::SimTrackContainer *simTracks, const edm::SimVertexContainer *simVertices, std::function< bool(const SimTrack &)> const &simTrackFilter) |
void | observeEventBegin (const edm::Event &event) override |
void | observeEventEnd (const edm::Event &event, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override |
void | observeProcesorEmulation (unsigned int iProcessor, l1t::tftype mtfType, const std::shared_ptr< OMTFinput > &, const AlgoMuons &algoCandidates, const AlgoMuons &gbCandidates, const std::vector< l1t::RegionalMuonCand > &candMuons) override |
TrajectoryStateOnSurface | propagate (const SimTrack &simTrack, const edm::SimVertexContainer *simVertices) |
TrajectoryStateOnSurface | propagate (const TrackingParticle &trackingParticle) |
FreeTrajectoryState | simTrackToFts (const SimTrack &simTrack, const SimVertex &simVertex) |
FreeTrajectoryState | simTrackToFts (const TrackingParticle &trackingParticle) |
~CandidateSimMuonMatcher () override | |
Public Member Functions inherited from IOMTFEmulationObserver | |
virtual void | addProcesorData (std::string key, boost::property_tree::ptree &procDataTree) |
IOMTFEmulationObserver () | |
virtual void | observeProcesorBegin (unsigned int iProcessor, l1t::tftype mtfType) |
virtual | ~IOMTFEmulationObserver () |
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 |
bool | usePropagation = false |
Definition at line 97 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, edm::ParameterSet::exists(), contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), testHGCalDigi_cfg::inFile, AlCaHLTBitMon_QueryRunRegistry::string, and usePropagation.
|
override |
Definition at line 73 of file CandidateSimMuonMatcher.cc.
TrajectoryStateOnSurface CandidateSimMuonMatcher::atStation2 | ( | const FreeTrajectoryState & | ftsStart | ) | const |
Definition at line 342 of file CandidateSimMuonMatcher.cc.
References Propagator::propagate(), propagator, and omtf::DataWord64::rpc.
Referenced by propagate().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 75 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 533 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 jetUpdater_cfi::sort.
Referenced by match(), and matchSimple().
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 259 of file CandidateSimMuonMatcher.cc.
|
inline |
Definition at line 176 of file CandidateSimMuonMatcher.h.
References matchingResults.
Referenced by EventCapture::observeEventEnd(), DataROOTDumper2::observeEventEnd(), and PatternGenerator::updateStatUsingMatcher2().
std::vector< const l1t::RegionalMuonCand * > CandidateSimMuonMatcher::ghostBust | ( | const l1t::RegionalMuonCandBxCollection * | mtfCands, |
const AlgoMuons & | gbCandidates, | ||
AlgoMuons & | ghostBustedProcMuons | ||
) |
Definition at line 261 of file CandidateSimMuonMatcher.cc.
References funct::abs(), BXVector< T >::at(), OMTFConfiguration::calcGlobalPhi(), srCondWrite_cfg::deltaPhi, gbCandidates, hwGmtPhiToGlobalPhi(), testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, LogTrace, omtfConfig, 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 410 of file CandidateSimMuonMatcher.cc.
References funct::abs(), OMTFConfiguration::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(), omtfConfig, PV3DBase< T, PVType, FrameType >::phi(), l1t::RegionalMuonCand::processor(), muonRecoAnalyzer_cfi::ptBin, mps_fire::result, and cscDigiValidation_cfi::simTrack.
Referenced by match(), and observeEventEnd().
MatchingResult CandidateSimMuonMatcher::match | ( | const l1t::RegionalMuonCand * | omtfCand, |
const AlgoMuonPtr & | procMuon, | ||
const TrackingParticle & | trackingParticle, | ||
TrajectoryStateOnSurface & | tsof | ||
) |
Definition at line 472 of file CandidateSimMuonMatcher.cc.
References funct::abs(), OMTFConfiguration::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(), omtfConfig, TrackingParticle::pdgId(), PV3DBase< T, PVType, FrameType >::phi(), l1t::RegionalMuonCand::processor(), TrackingParticle::pt(), muonRecoAnalyzer_cfi::ptBin, and mps_fire::result.
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 617 of file CandidateSimMuonMatcher.cc.
References funct::abs(), cleanMatching(), PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), LogTrace, match(), MatchingResult::matched, muonTagProbeFilters_cff::matched, matchingResults, propagate(), MatchingResult::propagationFailed, mps_fire::result, cscDigiValidation_cfi::simTrack, TrackCandidateProducer_cfi::simTracks, and run3scouting_cff::vtxInd.
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 697 of file CandidateSimMuonMatcher.cc.
References funct::abs(), cleanMatching(), PV3DBase< T, PVType, FrameType >::eta(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), LogTrace, match(), MatchingResult::matched, muonTagProbeFilters_cff::matched, matchingResults, propagate(), MatchingResult::propagationFailed, mps_fire::result, and muonClassificationByHits_cfi::trackingParticles.
std::vector< MatchingResult > CandidateSimMuonMatcher::matchSimple | ( | 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 777 of file CandidateSimMuonMatcher.cc.
References funct::abs(), OMTFConfiguration::calcGlobalPhi(), cleanMatching(), foldPhi(), hwGmtPhiToGlobalPhi(), LogTrace, M_PI, MatchingResult::matched, muonTagProbeFilters_cff::matched, matchingResults, omtfConfig, mps_fire::result, cscDigiValidation_cfi::simTrack, TrackCandidateProducer_cfi::simTracks, and run3scouting_cff::vtxInd.
Referenced by observeEventEnd().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 81 of file CandidateSimMuonMatcher.cc.
References gbCandidates.
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 205 of file CandidateSimMuonMatcher.cc.
References edmCfg, edm::ParameterSet::exists(), gbCandidates, edm::ParameterSet::getParameter(), ghostBust(), LogTrace, match(), matchingResults, matchSimple(), edm::Handle< T >::product(), simTrackIsMuonInBx0(), simTrackIsMuonInOmtfBx0(), trackingParticleIsMuonInBx0(), and usePropagation.
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 83 of file CandidateSimMuonMatcher.cc.
References gbCandidates, OMTFConfiguration::getProcIndx(), LogTrace, and omtfConfig.
TrajectoryStateOnSurface CandidateSimMuonMatcher::propagate | ( | const SimTrack & | simTrack, |
const edm::SimVertexContainer * | simVertices | ||
) |
Definition at line 374 of file CandidateSimMuonMatcher.cc.
References atStation2(), cscDigiValidation_cfi::simTrack, simTrackToFts(), hltEcalDetailedTimeRecHit_cfi::simVertex, and run3scouting_cff::vtxInd.
Referenced by match().
TrajectoryStateOnSurface CandidateSimMuonMatcher::propagate | ( | const TrackingParticle & | trackingParticle | ) |
Definition at line 395 of file CandidateSimMuonMatcher.cc.
References atStation2(), and simTrackToFts().
FreeTrajectoryState CandidateSimMuonMatcher::simTrackToFts | ( | const SimTrack & | simTrack, |
const SimVertex & | simVertex | ||
) |
Definition at line 352 of file CandidateSimMuonMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, magField, CoreSimTrack::momentum(), hltEcalDetailedTimeRecHit_cfi::simVertex, and CoreSimTrack::type().
Referenced by propagate().
FreeTrajectoryState CandidateSimMuonMatcher::simTrackToFts | ( | const TrackingParticle & | trackingParticle | ) |
Definition at line 363 of file CandidateSimMuonMatcher.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, magField, TrackingParticle::momentum(), TrackingParticle::pdgId(), TrackingParticle::vx(), TrackingParticle::vy(), and TrackingParticle::vz().
|
private |
Definition at line 192 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and match().
|
private |
Definition at line 193 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and match().
|
private |
Definition at line 181 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and observeEventEnd().
|
private |
Definition at line 183 of file CandidateSimMuonMatcher.h.
Referenced by ghostBust(), observeEventBegin(), observeEventEnd(), and observeProcesorEmulation().
|
private |
Definition at line 189 of file CandidateSimMuonMatcher.h.
Referenced by beginRun(), and simTrackToFts().
|
private |
Definition at line 186 of file CandidateSimMuonMatcher.h.
Referenced by beginRun().
|
private |
Definition at line 184 of file CandidateSimMuonMatcher.h.
Referenced by cleanMatching(), getMatchingResults(), match(), matchSimple(), and observeEventEnd().
|
private |
Definition at line 179 of file CandidateSimMuonMatcher.h.
Referenced by ghostBust(), match(), matchSimple(), and observeProcesorEmulation().
|
private |
Definition at line 190 of file CandidateSimMuonMatcher.h.
Referenced by atStation2(), and beginRun().
|
private |
Definition at line 187 of file CandidateSimMuonMatcher.h.
Referenced by beginRun().
|
private |
Definition at line 195 of file CandidateSimMuonMatcher.h.
Referenced by CandidateSimMuonMatcher(), and observeEventEnd().