#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
Definition at line 47 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalMuonRefitter::ConstMuonRecHitContainer |
Definition at line 59 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalMuonRefitter::ConstMuonRecHitPointer |
Definition at line 57 of file GlobalMuonRefitter.h.
Definition at line 52 of file GlobalMuonRefitter.h.
Definition at line 54 of file GlobalMuonRefitter.h.
Definition at line 58 of file GlobalMuonRefitter.h.
Definition at line 56 of file GlobalMuonRefitter.h.
Definition at line 51 of file GlobalMuonRefitter.h.
Definition at line 53 of file GlobalMuonRefitter.h.
typedef std::vector<Trajectory> GlobalMuonRefitter::TC |
Definition at line 61 of file GlobalMuonRefitter.h.
typedef TC::const_iterator GlobalMuonRefitter::TI |
Definition at line 62 of file GlobalMuonRefitter.h.
|
protected |
Enumerator | |
---|---|
insideOut | |
outsideIn | |
undetermined |
Definition at line 105 of file GlobalMuonRefitter.h.
Enumerator | |
---|---|
PXB | |
PXF | |
TIB | |
TID | |
TOB | |
TEC |
Definition at line 64 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 75 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, theDYTselector, theDYTthrs, 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 307 of file GlobalMuonRefitter.cc.
References alongMomentum, CSCDetId::chamberId(), ME0DetId::chamberId(), GEMDetId::chamberId(), highPtTrackIsolations_cff::coneSize, MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, LogTrace, mag(), MuonSubdetId::ME0, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, theCategory, theCSCRecHits, theDTRecHits, theGEMRecHits, and theME0RecHits.
Referenced by refit().
|
protected |
Definition at line 665 of file GlobalMuonRefitter.cc.
References insideOut, outsideIn, theCategory, and undetermined.
Referenced by transform().
|
inline |
Definition at line 101 of file GlobalMuonRefitter.h.
|
protected |
get the RecHits in the tracker and the first muon chamber with hits
Definition at line 501 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, 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 842 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MuonSubdetId::GEM, MuonSubdetId::ME0, DetId::Muon, PXB, TrackerTopology::pxbLayer(), PXF, TrackerTopology::pxfDisk(), mps_update::results, 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 638 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 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 188 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 218 of file GlobalMuonRefitter.cc.
References all4DSegments, alongMomentum, checkMuonHits(), reco::DYTInfo::CopyFrom(), CSCSegments, dytInfo, DynamicTruncation::filter(), DynamicTruncation::getDYTInfo(), getFirstHits(), getRidOfSelectStationHits(), LogTrace, reco::TrackBase::pt(), selectMuonHits(), DynamicTruncation::setProd(), DynamicTruncation::setSelector(), DynamicTruncation::setThr(), DynamicTruncation::setUpdateState(), DynamicTruncation::setUseAPE(), theCategory, theDYTselector, theDYTthrs, theDYTupdator, theDYTuseAPE, theEvent, theService, and transform().
|
protected |
select muon hits compatible with trajectory; check hits in chambers with showers
Definition at line 551 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 totemRPUVPatternFinder_cfi::threshold.
Referenced by refit().
|
inlineprotected |
Definition at line 124 of file GlobalMuonRefitter.h.
|
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 165 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 692 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(), oppositeToMomentum, reco::Track::outerDetId(), reco::TransientTrack::outermostMeasurementState(), outsideIn, printHits(), groupFilesInBlocks::reverse, SurveyInfoScenario_cff::seed, theCategory, theCosmicFlag, theFitter, thePropagatorName, theRefitDirection, theRescaleErrorFactor, theService, and HiRegitMuonDetachedTripletStep_cff::trajectories.
Referenced by refit().
|
private |
Definition at line 192 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 190 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
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 174 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), refit(), and ~GlobalMuonRefitter().
|
private |
Definition at line 181 of file GlobalMuonRefitter.h.
Referenced by setServices().
|
private |
Definition at line 160 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
protected |
Definition at line 127 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), checkRecHitsOrdering(), getFirstHits(), GlobalMuonRefitter(), printHits(), refit(), selectMuonHits(), setServices(), and transform().
|
private |
Definition at line 141 of file GlobalMuonRefitter.h.
Referenced by transform().
|
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 136 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 171 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 172 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 187 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 177 of file GlobalMuonRefitter.h.
Referenced by setServices(), and transform().
|
private |
Definition at line 176 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 139 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 135 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
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 133 of file GlobalMuonRefitter.h.
|
private |
Definition at line 184 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 183 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 134 of file GlobalMuonRefitter.h.
|
private |
Definition at line 162 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
protected |
Definition at line 129 of file GlobalMuonRefitter.h.
|
private |
Definition at line 168 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 166 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 138 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 164 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 186 of file GlobalMuonRefitter.h.
Referenced by refit(), setServices(), and transform().
|
private |
Definition at line 156 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
protected |
Definition at line 128 of file GlobalMuonRefitter.h.
|
private |
Definition at line 180 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 179 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 158 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
private |
Definition at line 157 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().