#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 | |
ConstRecHitContainer | getRidOfSelectStationHits (const ConstRecHitContainer &hits, const TrackerTopology *tTopo) const |
GlobalMuonRefitter (const edm::ParameterSet &, const MuonServiceProxy *) | |
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 |
Private Attributes | |
unsigned long long | theCacheId_TRH |
bool | theCosmicFlag |
float | theCSCChi2Cut |
edm::InputTag | theCSCRecHitLabel |
edm::Handle < CSCRecHit2DCollection > | theCSCRecHits |
float | theDTChi2Cut |
edm::InputTag | theDTRecHitLabel |
edm::Handle< DTRecHitCollection > | theDTRecHits |
std::vector< int > | theDYTthrs |
const edm::Event * | theEvent |
edm::ESHandle< TrajectoryFitter > | theFitter |
std::string | theFitterName |
int | theHitThreshold |
int | theMuonHitsOption |
edm::ESHandle < TransientTrackingRecHitBuilder > | theMuonRecHitBuilder |
std::string | theMuonRecHitBuilderName |
float | theProbCut |
std::string | thePropagatorName |
RefitDirection | theRefitDirection |
double | theRescaleErrorFactor |
float | theRPCChi2Cut |
bool | theRPCInTheFit |
const MuonServiceProxy * | theService |
int | theSkipStation |
edm::ESHandle < TransientTrackingRecHitBuilder > | theTrackerRecHitBuilder |
std::string | theTrackerRecHitBuilderName |
int | theTrackerSkipSection |
int | theTrackerSkipSystem |
class to build muon trajectory
Definition at line 38 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalMuonRefitter::ConstMuonRecHitContainer |
Definition at line 50 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalMuonRefitter::ConstMuonRecHitPointer |
Definition at line 48 of file GlobalMuonRefitter.h.
Definition at line 43 of file GlobalMuonRefitter.h.
Definition at line 45 of file GlobalMuonRefitter.h.
Definition at line 49 of file GlobalMuonRefitter.h.
Definition at line 47 of file GlobalMuonRefitter.h.
Definition at line 42 of file GlobalMuonRefitter.h.
Definition at line 44 of file GlobalMuonRefitter.h.
typedef std::vector<Trajectory> GlobalMuonRefitter::TC |
Definition at line 52 of file GlobalMuonRefitter.h.
typedef TC::const_iterator GlobalMuonRefitter::TI |
Definition at line 53 of file GlobalMuonRefitter.h.
|
protected |
Enumerator | |
---|---|
insideOut | |
outsideIn | |
undetermined |
Definition at line 94 of file GlobalMuonRefitter.h.
Enumerator | |
---|---|
PXB | |
PXF | |
TIB | |
TID | |
TOB | |
TEC |
Definition at line 55 of file GlobalMuonRefitter.h.
GlobalMuonRefitter::GlobalMuonRefitter | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service | ||
) |
constructor with Parameter Set and MuonServiceProxy
Definition at line 69 of file GlobalMuonRefitter.cc.
References edm::hlt::Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), insideOut, outsideIn, theCacheId_TRH, theCategory, theCSCChi2Cut, theDTChi2Cut, theDYTthrs, theFitterName, theHitThreshold, 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 270 of file GlobalMuonRefitter.cc.
References alongMomentum, CSCDetId::chamberId(), MuonSubdetId::CSC, MuonSubdetId::DT, LogTrace, mag(), DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, theCategory, theCSCRecHits, and theDTRecHits.
Referenced by refit().
|
protected |
Definition at line 544 of file GlobalMuonRefitter.cc.
References insideOut, outsideIn, theCategory, and undetermined.
Referenced by transform().
|
protected |
get the RecHits in the tracker and the first muon chamber with hits
Definition at line 396 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, CSCDetId, MuonSubdetId::DT, DTChamberId, i, LogTrace, DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, RPCDetId, relativeConstraints::station, mergeVDriftHistosByStation::stations, and theCategory.
Referenced by refit().
GlobalMuonRefitter::ConstRecHitContainer GlobalMuonRefitter::getRidOfSelectStationHits | ( | const ConstRecHitContainer & | hits, |
const TrackerTopology * | tTopo | ||
) | const |
Definition at line 722 of file GlobalMuonRefitter.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, DetId::Muon, PXB, TrackerTopology::pxbLayer(), PXF, TrackerTopology::pxfDisk(), python.entryComment::results, MuonSubdetId::RPC, DTChamberId::station(), relativeConstraints::station, CSCDetId::station(), RPCDetId::station(), TEC, TrackerTopology::tecWheel(), theSkipStation, theTrackerSkipSection, theTrackerSkipSystem, TIB, TrackerTopology::tibLayer(), TID, TrackerTopology::tidWheel(), TOB, TrackerTopology::tobLayer(), and DetId::Tracker.
Referenced by refit().
|
protected |
print all RecHits of a trajectory
Definition at line 517 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 158 of file GlobalMuonRefitter.cc.
References LogTrace, DetId::Muon, theCategory, theMuonRecHitBuilder, theRPCInTheFit, theService, theTrackerRecHitBuilder, 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 186 of file GlobalMuonRefitter.cc.
References alongMomentum, checkMuonHits(), DynamicTruncation::filter(), getFirstHits(), getRidOfSelectStationHits(), LogTrace, reco::TrackBase::pt(), selectMuonHits(), DynamicTruncation::setThr(), theCategory, theDYTthrs, theEvent, theService, and transform().
|
protected |
select muon hits compatible with trajectory; check hits in chambers with showers
Definition at line 444 of file GlobalMuonRefitter.cc.
References CSCDetId::chamberId(), keep, LogTrace, Trajectory::measurements(), DetId::Muon, theCategory, theCSCChi2Cut, theDTChi2Cut, theHitThreshold, theRPCChi2Cut, and dtDQMClient_cfg::threshold.
Referenced by refit().
|
inlineprotected |
Definition at line 113 of file GlobalMuonRefitter.h.
References theService.
|
virtual |
pass the Event to the algo at each event
Definition at line 133 of file GlobalMuonRefitter.cc.
References event(), theCSCRecHitLabel, theCSCRecHits, theDTRecHitLabel, theDTRecHits, and theEvent.
Referenced by GlobalTrackQualityProducer::produce(), and GlobalTrajectoryBuilderBase::setEvent().
void GlobalMuonRefitter::setServices | ( | const edm::EventSetup & | setup | ) |
set the services needed by the TrackTransformer
Definition at line 141 of file GlobalMuonRefitter.cc.
References edm::EventSetup::get(), LogDebug, 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 571 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(), theCategory, theCosmicFlag, theFitter, thePropagatorName, theRefitDirection, theRescaleErrorFactor, and theService.
Referenced by refit().
|
private |
Definition at line 139 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
protected |
Definition at line 116 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), checkRecHitsOrdering(), getFirstHits(), GlobalMuonRefitter(), printHits(), refit(), selectMuonHits(), setServices(), and transform().
|
private |
Definition at line 128 of file GlobalMuonRefitter.h.
Referenced by transform().
|
private |
Definition at line 126 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 131 of file GlobalMuonRefitter.h.
Referenced by setEvent().
|
private |
Definition at line 133 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 125 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 130 of file GlobalMuonRefitter.h.
Referenced by setEvent().
|
private |
Definition at line 132 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 149 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 161 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 152 of file GlobalMuonRefitter.h.
Referenced by setServices(), and transform().
|
private |
Definition at line 151 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 124 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 122 of file GlobalMuonRefitter.h.
|
private |
Definition at line 158 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 157 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 123 of file GlobalMuonRefitter.h.
|
private |
Definition at line 141 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
protected |
Definition at line 118 of file GlobalMuonRefitter.h.
|
private |
Definition at line 147 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 145 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 127 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 143 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 160 of file GlobalMuonRefitter.h.
Referenced by refit(), service(), setServices(), and transform().
|
private |
Definition at line 135 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
protected |
Definition at line 117 of file GlobalMuonRefitter.h.
|
private |
Definition at line 155 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 154 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 137 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
private |
Definition at line 136 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().