#include <GlobalMuonRefitter.h>
Public Types | |
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer | ConstMuonRecHitContainer |
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer | ConstMuonRecHitPointer |
typedef TransientTrackingRecHit::ConstRecHitContainer | ConstRecHitContainer |
typedef TransientTrackingRecHit::ConstRecHitPointer | ConstRecHitPointer |
typedef MuonTransientTrackingRecHit::MuonRecHitContainer | MuonRecHitContainer |
typedef MuonTransientTrackingRecHit::MuonRecHitPointer | MuonRecHitPointer |
typedef TransientTrackingRecHit::RecHitContainer | RecHitContainer |
typedef TransientTrackingRecHit::RecHitPointer | RecHitPointer |
enum | subDetector { PXB = 1, PXF = 2, TIB = 3, TID = 4, TOB = 5, TEC = 6 } |
typedef std::vector< Trajectory > | TC |
typedef TC::const_iterator | TI |
Public Member Functions | |
const reco::DYTInfo * | getDYTInfo () |
ConstRecHitContainer | getRidOfSelectStationHits (const ConstRecHitContainer &hits, const TrackerTopology *tTopo) const |
GlobalMuonRefitter (const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &) | |
constructor with Parameter Set and MuonServiceProxy More... | |
std::vector< Trajectory > | refit (const reco::Track &globalTrack, const int theMuonHitsOption, const TrackerTopology *tTopo) const |
build combined trajectory from sta Track and tracker RecHits More... | |
std::vector< Trajectory > | refit (const reco::Track &globalTrack, const reco::TransientTrack track, const TransientTrackingRecHit::ConstRecHitContainer &allRecHitsTemp, const int theMuonHitsOption, const TrackerTopology *tTopo) const |
build combined trajectory from subset of sta Track and tracker RecHits More... | |
virtual void | setEvent (const edm::Event &) |
pass the Event to the algo at each event More... | |
void | setServices (const edm::EventSetup &) |
set the services needed by the TrackTransformer More... | |
std::vector< Trajectory > | transform (const reco::Track &newTrack, const reco::TransientTrack track, const TransientTrackingRecHit::ConstRecHitContainer &recHitsForReFit) const |
refit the track with a new set of RecHits More... | |
virtual | ~GlobalMuonRefitter () |
destructor More... | |
Protected Types | |
enum | RefitDirection { insideOut, outsideIn, undetermined } |
Protected Member Functions | |
void | checkMuonHits (const reco::Track &, ConstRecHitContainer &, std::map< DetId, int > &) const |
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit More... | |
RefitDirection | checkRecHitsOrdering (const ConstRecHitContainer &) const |
void | getFirstHits (const reco::Track &, ConstRecHitContainer &, ConstRecHitContainer &) const |
get the RecHits in the tracker and the first muon chamber with hits More... | |
void | printHits (const ConstRecHitContainer &) const |
print all RecHits of a trajectory More... | |
ConstRecHitContainer | selectMuonHits (const Trajectory &, const std::map< DetId, int > &) const |
select muon hits compatible with trajectory; check hits in chambers with showers More... | |
const MuonServiceProxy * | service () const |
Protected Attributes | |
std::string | theCategory |
float | thePtCut |
bool | theTkTrajsAvailableFlag |
class to build muon trajectory
\modified by C. Calabria INFN & Universita Bari \modified by D. Nash Northeastern University \modified by C. Caputo UCLouvain
Definition at line 52 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalMuonRefitter::ConstMuonRecHitContainer |
Definition at line 62 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalMuonRefitter::ConstMuonRecHitPointer |
Definition at line 60 of file GlobalMuonRefitter.h.
Definition at line 55 of file GlobalMuonRefitter.h.
Definition at line 57 of file GlobalMuonRefitter.h.
Definition at line 61 of file GlobalMuonRefitter.h.
Definition at line 59 of file GlobalMuonRefitter.h.
Definition at line 54 of file GlobalMuonRefitter.h.
Definition at line 56 of file GlobalMuonRefitter.h.
typedef std::vector<Trajectory> GlobalMuonRefitter::TC |
Definition at line 64 of file GlobalMuonRefitter.h.
typedef TC::const_iterator GlobalMuonRefitter::TI |
Definition at line 65 of file GlobalMuonRefitter.h.
|
protected |
GlobalMuonRefitter::GlobalMuonRefitter | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service, | ||
edm::ConsumesCollector & | iC | ||
) |
constructor with Parameter Set and MuonServiceProxy
Definition at line 75 of file GlobalMuonRefitter.cc.
References all4DSegmentsToken, edm::ConsumesCollector::consumes(), CSCSegmentsToken, dytInfo, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_2018_cff::InputTag, insideOut, outsideIn, theCacheId_TRH, theCategory, theCSCChi2Cut, theCSCRecHitLabel, theCSCRecHitToken, theDTChi2Cut, theDTRecHitLabel, theDTRecHitToken, theDYTParThrsMode, theDYTselector, theDYTthrs, theDYTthrsParameters, theDYTupdator, theDYTuseAPE, theFitterName, theGEMChi2Cut, theGEMRecHitLabel, theGEMRecHitToken, theHitThreshold, theME0Chi2Cut, theME0RecHitLabel, theME0RecHitToken, theMuonRecHitBuilderName, thePropagatorName, theRefitDirection, theRescaleErrorFactor, theRPCChi2Cut, theRPCInTheFit, theSkipStation, theTrackerRecHitBuilderName, theTrackerSkipSection, and theTrackerSkipSystem.
|
virtual |
|
protected |
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit
Definition at line 306 of file GlobalMuonRefitter.cc.
References python.cmstools::all(), alongMomentum, CSCDetId::chamberId(), ME0DetId::chamberId(), GEMDetId::chamberId(), HLT_2018_cff::coneSize, MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, globals_cff::id1, LogTrace, mag(), MuonSubdetId::ME0, DetId::Muon, MuonSubdetId::RPC, theCategory, theCSCRecHits, theDTRecHits, theGEMRecHits, and theME0RecHits.
Referenced by refit().
|
protected |
Definition at line 695 of file GlobalMuonRefitter.cc.
References insideOut, outsideIn, FastTrackerRecHitMaskProducer_cfi::recHits, theCategory, and undetermined.
Referenced by transform().
|
inline |
|
protected |
get the RecHits in the tracker and the first muon chamber with hits
Definition at line 529 of file GlobalMuonRefitter.cc.
References python.cmstools::all(), MuonSubdetId::CSC, MuonSubdetId::DT, dqmdumpme::first, MuonSubdetId::GEM, mps_fire::i, LogTrace, MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, DTChamberId::station(), ME0DetId::station(), relativeConstraints::station, RPCDetId::station(), CSCDetId::station(), GEMDetId::station(), and theCategory.
Referenced by refit().
GlobalMuonRefitter::ConstRecHitContainer GlobalMuonRefitter::getRidOfSelectStationHits | ( | const ConstRecHitContainer & | hits, |
const TrackerTopology * | tTopo | ||
) | const |
Definition at line 883 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, hfClusterShapes_cfi::hits, MuonSubdetId::ME0, DetId::Muon, PXB, TrackerTopology::pxbLayer(), PXF, TrackerTopology::pxfDisk(), bookConverter::results, MuonSubdetId::RPC, DTChamberId::station(), ME0DetId::station(), relativeConstraints::station, RPCDetId::station(), CSCDetId::station(), GEMDetId::station(), TEC, TrackerTopology::tecWheel(), theSkipStation, theTrackerSkipSection, theTrackerSkipSystem, TIB, TrackerTopology::tibLayer(), TID, TrackerTopology::tidWheel(), TOB, TrackerTopology::tobLayer(), DetId::Tracker, and makeMuonMisalignmentScenario::wheel.
Referenced by refit().
|
protected |
print all RecHits of a trajectory
Definition at line 674 of file GlobalMuonRefitter.cc.
References hfClusterShapes_cfi::hits, LogTrace, mathSSE::sqrt(), and theCategory.
Referenced by ntuplePrintersDiff.TrackingParticlePrinter::__call__(), ntuplePrintersDiff.SeedPrinter::diff(), ntuplePrintersDiff.TrackPrinter::diff(), ntuplePrintersDiff.TrackingParticlePrinter::diff(), ntuplePrintersDiff.SeedPrinter::printSeed(), ntuplePrintersDiff.TrackPrinter::printTrack(), and transform().
vector< Trajectory > GlobalMuonRefitter::refit | ( | const reco::Track & | globalTrack, |
const int | theMuonHitsOption, | ||
const TrackerTopology * | tTopo | ||
) | const |
build combined trajectory from sta Track and tracker RecHits
Definition at line 182 of file GlobalMuonRefitter.cc.
References TransientTrackingRecHitBuilder::build(), cutBasedMuonId_MuonPOG_V0_cff::globalTrack, LogTrace, DetId::Muon, edm::ESHandle< T >::product(), theCategory, theMuonHitsOption, theMuonRecHitBuilder, theRPCInTheFit, theService, theTrackerRecHitBuilder, HLT_2018_cff::track, and DetId::Tracker.
Referenced by GlobalTrajectoryBuilderBase::build(), and GlobalTrackQualityProducer::produce().
vector< Trajectory > GlobalMuonRefitter::refit | ( | const reco::Track & | globalTrack, |
const reco::TransientTrack | track, | ||
const TransientTrackingRecHit::ConstRecHitContainer & | allRecHitsTemp, | ||
const int | theMuonHitsOption, | ||
const TrackerTopology * | tTopo | ||
) | const |
build combined trajectory from subset of sta Track and tracker RecHits
Definition at line 212 of file GlobalMuonRefitter.cc.
References all4DSegments, alongMomentum, checkMuonHits(), reco::DYTInfo::CopyFrom(), CSCSegments, dytInfo, DynamicTruncation::filter(), DynamicTruncation::getDYTInfo(), getFirstHits(), getRidOfSelectStationHits(), cutBasedMuonId_MuonPOG_V0_cff::globalTrack, LogTrace, selectMuonHits(), DynamicTruncation::setParThrsMode(), DynamicTruncation::setProd(), DynamicTruncation::setRecoEta(), DynamicTruncation::setRecoP(), DynamicTruncation::setSelector(), DynamicTruncation::setThr(), DynamicTruncation::setThrsMap(), DynamicTruncation::setUpdateState(), DynamicTruncation::setUseAPE(), theCategory, theDYTParThrsMode, theDYTselector, theDYTthrs, theDYTthrsParameters, theDYTupdator, theDYTuseAPE, theEvent, theMuonHitsOption, theService, HLT_2018_cff::track, and transform().
|
protected |
select muon hits compatible with trajectory; check hits in chambers with showers
Definition at line 589 of file GlobalMuonRefitter.cc.
References CSCDetId::chamberId(), ME0DetId::chamberId(), GEMDetId::chamberId(), ZMuMuCategoriesSequences_cff::chi2Cut, TrackingRecHit::geographicalId(), keep, LogTrace, Trajectory::measurements(), DetId::Muon, groupFilesInBlocks::reverse, theCategory, theCSCChi2Cut, theDTChi2Cut, theGEMChi2Cut, theHitThreshold, theME0Chi2Cut, theRPCChi2Cut, and remoteMonitoring_LED_IterMethod_cfg::threshold.
Referenced by refit().
|
inlineprotected |
|
virtual |
pass the Event to the algo at each event
Definition at line 153 of file GlobalMuonRefitter.cc.
References all4DSegments, all4DSegmentsToken, CSCSegments, CSCSegmentsToken, event(), theCSCRecHits, theCSCRecHitToken, theDTRecHits, theDTRecHitToken, theEvent, theGEMRecHits, theGEMRecHitToken, theME0RecHits, and theME0RecHitToken.
Referenced by GlobalTrackQualityProducer::produce(), and GlobalTrajectoryBuilderBase::setEvent().
void GlobalMuonRefitter::setServices | ( | const edm::EventSetup & | setup | ) |
set the services needed by the TrackTransformer
Definition at line 163 of file GlobalMuonRefitter.cc.
References TrajectoryFitter::clone(), get, hitCloner, LogDebug, edm::ESHandle< T >::product(), singleTopDQM_cfi::setup, theCacheId_TRH, theCategory, theFitter, theFitterName, theMuonRecHitBuilder, theMuonRecHitBuilderName, theService, theTrackerRecHitBuilder, and theTrackerRecHitBuilderName.
Referenced by GlobalTrackQualityProducer::produce(), and GlobalTrajectoryBuilderBase::setEvent().
vector< Trajectory > GlobalMuonRefitter::transform | ( | const reco::Track & | newTrack, |
const reco::TransientTrack | track, | ||
const TransientTrackingRecHit::ConstRecHitContainer & | recHitsForReFit | ||
) | const |
refit the track with a new set of RecHits
Definition at line 727 of file GlobalMuonRefitter.cc.
References alongMomentum, PV3DBase< T, PVType, FrameType >::basicVector(), checkRecHitsOrdering(), Basic3DVector< T >::dot(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), reco::Track::innerDetId(), insideOut, LogDebug, LogTrace, oppositeToMomentum, reco::Track::outerDetId(), outsideIn, printHits(), groupFilesInBlocks::reverse, SurveyInfoScenario_cff::seed, theCategory, theCosmicFlag, theFitter, thePropagatorName, theRefitDirection, theRescaleErrorFactor, theService, HLT_2018_cff::track, and FastTrackerRecHitMaskProducer_cfi::trajectories.
Referenced by refit().
|
private |
Definition at line 191 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 189 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 190 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 188 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 173 of file GlobalMuonRefitter.h.
Referenced by getDYTInfo(), GlobalMuonRefitter(), refit(), and ~GlobalMuonRefitter().
|
private |
Definition at line 180 of file GlobalMuonRefitter.h.
Referenced by setServices().
|
private |
Definition at line 157 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
protected |
Definition at line 125 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), checkRecHitsOrdering(), getFirstHits(), GlobalMuonRefitter(), printHits(), refit(), selectMuonHits(), setServices(), and transform().
|
private |
Definition at line 138 of file GlobalMuonRefitter.h.
Referenced by transform().
|
private |
Definition at line 134 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 141 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 145 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 149 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 133 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 140 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 144 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 148 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 171 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 168 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 167 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 172 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 169 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 170 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 186 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 176 of file GlobalMuonRefitter.h.
Referenced by setServices(), and transform().
|
private |
Definition at line 175 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 136 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 142 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 146 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 150 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 132 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 137 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 143 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 147 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 151 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 130 of file GlobalMuonRefitter.h.
Referenced by refit().
|
private |
Definition at line 183 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 182 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 131 of file GlobalMuonRefitter.h.
|
private |
Definition at line 159 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
protected |
Definition at line 127 of file GlobalMuonRefitter.h.
|
private |
Definition at line 165 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 163 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 135 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 161 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 185 of file GlobalMuonRefitter.h.
Referenced by refit(), service(), setServices(), and transform().
|
private |
Definition at line 153 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
protected |
Definition at line 126 of file GlobalMuonRefitter.h.
|
private |
Definition at line 179 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 178 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 155 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
private |
Definition at line 154 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().