#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
by C. Calabria INFN & Universita Bari by D. Nash Northeastern University by C. Caputo UCLouvain
Definition at line 48 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalMuonRefitter::ConstMuonRecHitContainer |
Definition at line 60 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalMuonRefitter::ConstMuonRecHitPointer |
Definition at line 58 of file GlobalMuonRefitter.h.
Definition at line 53 of file GlobalMuonRefitter.h.
Definition at line 55 of file GlobalMuonRefitter.h.
Definition at line 59 of file GlobalMuonRefitter.h.
Definition at line 57 of file GlobalMuonRefitter.h.
Definition at line 52 of file GlobalMuonRefitter.h.
Definition at line 54 of file GlobalMuonRefitter.h.
typedef std::vector<Trajectory> GlobalMuonRefitter::TC |
Definition at line 62 of file GlobalMuonRefitter.h.
typedef TC::const_iterator GlobalMuonRefitter::TI |
Definition at line 63 of file GlobalMuonRefitter.h.
|
protected |
Enumerator | |
---|---|
insideOut | |
outsideIn | |
undetermined |
Definition at line 106 of file GlobalMuonRefitter.h.
Enumerator | |
---|---|
PXB | |
PXF | |
TIB | |
TID | |
TOB | |
TEC |
Definition at line 65 of file GlobalMuonRefitter.h.
GlobalMuonRefitter::GlobalMuonRefitter | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service, | ||
edm::ConsumesCollector & | iC | ||
) |
constructor with Parameter Set and MuonServiceProxy
Definition at line 76 of file GlobalMuonRefitter.cc.
References all4DSegmentsToken, edm::ConsumesCollector::consumes(), CSCSegmentsToken, dytInfo, Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), 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 316 of file GlobalMuonRefitter.cc.
References alongMomentum, CSCDetId::chamberId(), ME0DetId::chamberId(), GEMDetId::chamberId(), highPtTrackIsolations_cff::coneSize, MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, globals_cff::id1, LogTrace, mag(), MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, theCategory, theCSCRecHits, theDTRecHits, theGEMRecHits, and theME0RecHits.
Referenced by refit().
|
protected |
Definition at line 684 of file GlobalMuonRefitter.cc.
References insideOut, outsideIn, theCategory, and undetermined.
Referenced by transform().
|
inline |
Definition at line 102 of file GlobalMuonRefitter.h.
|
protected |
get the RecHits in the tracker and the first muon chamber with hits
Definition at line 520 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, mps_fire::i, LogTrace, MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, DTChamberId::station(), GEMDetId::station(), relativeConstraints::station, ME0DetId::station(), CSCDetId::station(), RPCDetId::station(), and theCategory.
Referenced by refit().
GlobalMuonRefitter::ConstRecHitContainer GlobalMuonRefitter::getRidOfSelectStationHits | ( | const ConstRecHitContainer & | hits, |
const TrackerTopology * | tTopo | ||
) | const |
Definition at line 858 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, MuonSubdetId::ME0, DetId::Muon, PXB, TrackerTopology::pxbLayer(), PXF, TrackerTopology::pxfDisk(), MuonSubdetId::RPC, DTChamberId::station(), GEMDetId::station(), relativeConstraints::station, ME0DetId::station(), CSCDetId::station(), RPCDetId::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 657 of file GlobalMuonRefitter.cc.
References LogTrace, mathSSE::sqrt(), theCategory, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
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 191 of file GlobalMuonRefitter.cc.
References TransientTrackingRecHitBuilder::build(), LogTrace, DetId::Muon, edm::ESHandle< T >::product(), theCategory, theMuonRecHitBuilder, theRPCInTheFit, theService, theTrackerRecHitBuilder, HiIsolationCommonParameters_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 221 of file GlobalMuonRefitter.cc.
References all4DSegments, alongMomentum, checkMuonHits(), reco::DYTInfo::CopyFrom(), CSCSegments, dytInfo, reco::TrackBase::eta(), DynamicTruncation::filter(), DynamicTruncation::getDYTInfo(), getFirstHits(), getRidOfSelectStationHits(), LogTrace, reco::TrackBase::p(), reco::TrackBase::pt(), 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, theService, and transform().
|
protected |
select muon hits compatible with trajectory; check hits in chambers with showers
Definition at line 570 of file GlobalMuonRefitter.cc.
References CSCDetId::chamberId(), ME0DetId::chamberId(), GEMDetId::chamberId(), PixelTripletNoTipGenerator_cfi::chi2Cut, TrackingRecHit::geographicalId(), keep, LogTrace, Trajectory::measurements(), DetId::Muon, groupFilesInBlocks::reverse, theCategory, theCSCChi2Cut, theDTChi2Cut, theGEMChi2Cut, theHitThreshold, theME0Chi2Cut, theRPCChi2Cut, and electronIdCutBased_cfi::threshold.
Referenced by refit().
|
inlineprotected |
Definition at line 125 of file GlobalMuonRefitter.h.
|
virtual |
pass the Event to the algo at each event
Definition at line 156 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 168 of file GlobalMuonRefitter.cc.
References TrajectoryFitter::clone(), edm::EventSetup::get(), hitCloner, LogDebug, edm::ESHandle< T >::product(), 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 711 of file GlobalMuonRefitter.cc.
References alongMomentum, PV3DBase< T, PVType, FrameType >::basicVector(), checkRecHitsOrdering(), Basic3DVector< T >::dot(), TrajectoryStateOnSurface::globalMomentum(), TrajectoryStateOnSurface::globalPosition(), reco::Track::innerDetId(), reco::TransientTrack::innermostMeasurementState(), insideOut, LogDebug, LogTrace, PV3DBase< T, PVType, FrameType >::mag(), LocalTrajectoryParameters::momentum(), TrajectorySeed::nHits(), oppositeToMomentum, reco::Track::outerDetId(), reco::TransientTrack::outermostMeasurementState(), outsideIn, PTrajectoryStateOnDet::parameters(), LocalTrajectoryParameters::position(), printHits(), groupFilesInBlocks::reverse, SurveyInfoScenario_cff::seed, TrajectorySeed::startingState(), theCategory, theCosmicFlag, theFitter, thePropagatorName, theRefitDirection, theRescaleErrorFactor, theService, and HiRegitMuonDetachedTripletStep_cff::trajectories.
Referenced by refit().
|
private |
Definition at line 195 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 193 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 194 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 192 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 177 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), refit(), and ~GlobalMuonRefitter().
|
private |
Definition at line 184 of file GlobalMuonRefitter.h.
Referenced by setServices().
|
private |
Definition at line 161 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
protected |
Definition at line 128 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), checkRecHitsOrdering(), getFirstHits(), GlobalMuonRefitter(), printHits(), refit(), selectMuonHits(), setServices(), and transform().
|
private |
Definition at line 142 of file GlobalMuonRefitter.h.
Referenced by transform().
|
private |
Definition at line 138 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 145 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 149 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 153 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 137 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 144 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 148 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 152 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 175 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 171 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 176 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 173 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 174 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 190 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 180 of file GlobalMuonRefitter.h.
Referenced by setServices(), and transform().
|
private |
Definition at line 179 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 140 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 146 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 150 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 154 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 136 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 141 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 147 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 151 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 155 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 134 of file GlobalMuonRefitter.h.
|
private |
Definition at line 187 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 186 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 135 of file GlobalMuonRefitter.h.
|
private |
Definition at line 163 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
protected |
Definition at line 130 of file GlobalMuonRefitter.h.
|
private |
Definition at line 169 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 167 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 139 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 165 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 189 of file GlobalMuonRefitter.h.
Referenced by refit(), setServices(), and transform().
|
private |
Definition at line 157 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
protected |
Definition at line 129 of file GlobalMuonRefitter.h.
|
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 159 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
private |
Definition at line 158 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().