#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
Definition at line 41 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalMuonRefitter::ConstMuonRecHitContainer |
Definition at line 53 of file GlobalMuonRefitter.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalMuonRefitter::ConstMuonRecHitPointer |
Definition at line 51 of file GlobalMuonRefitter.h.
Definition at line 46 of file GlobalMuonRefitter.h.
Definition at line 48 of file GlobalMuonRefitter.h.
Definition at line 52 of file GlobalMuonRefitter.h.
Definition at line 50 of file GlobalMuonRefitter.h.
Definition at line 45 of file GlobalMuonRefitter.h.
Definition at line 47 of file GlobalMuonRefitter.h.
typedef std::vector<Trajectory> GlobalMuonRefitter::TC |
Definition at line 55 of file GlobalMuonRefitter.h.
typedef TC::const_iterator GlobalMuonRefitter::TI |
Definition at line 56 of file GlobalMuonRefitter.h.
|
protected |
Enumerator | |
---|---|
insideOut | |
outsideIn | |
undetermined |
Definition at line 99 of file GlobalMuonRefitter.h.
Enumerator | |
---|---|
PXB | |
PXF | |
TIB | |
TID | |
TOB | |
TEC |
Definition at line 58 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 68 of file GlobalMuonRefitter.cc.
References all4DSegmentsToken, edm::ConsumesCollector::consumes(), CSCSegmentsToken, dytInfo, edm::hlt::Exception, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_25ns14e33_v1_cff::InputTag, insideOut, outsideIn, theCacheId_TRH, theCategory, theCSCChi2Cut, theCSCRecHitLabel, theCSCRecHitToken, theDTChi2Cut, theDTRecHitLabel, theDTRecHitToken, theDYTselector, theDYTthrs, theDYTupdator, theDYTuseAPE, 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 292 of file GlobalMuonRefitter.cc.
References alongMomentum, CSCDetId::chamberId(), HLT_25ns14e33_v1_cff::coneSize, MuonSubdetId::CSC, MuonSubdetId::DT, LogTrace, mag(), DetId::Muon, DetId::rawId(), MuonSubdetId::RPC, theCategory, theCSCRecHits, and theDTRecHits.
Referenced by refit().
|
protected |
Definition at line 566 of file GlobalMuonRefitter.cc.
References insideOut, outsideIn, theCategory, and undetermined.
Referenced by transform().
|
inline |
|
protected |
get the RecHits in the tracker and the first muon chamber with hits
Definition at line 418 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 744 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, RPCDetId::station(), CSCDetId::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 539 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 173 of file GlobalMuonRefitter.cc.
References LogTrace, DetId::Muon, edm::ESHandle< class >::product(), 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 203 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 466 of file GlobalMuonRefitter.cc.
References CSCDetId::chamberId(), TrackingRecHit::geographicalId(), keep, LogTrace, Trajectory::measurements(), DetId::Muon, theCategory, theCSCChi2Cut, theDTChi2Cut, theHitThreshold, theRPCChi2Cut, and dtDQMClient_cfg::threshold.
Referenced by refit().
|
inlineprotected |
Definition at line 118 of file GlobalMuonRefitter.h.
References theService.
|
virtual |
pass the Event to the algo at each event
Definition at line 140 of file GlobalMuonRefitter.cc.
References all4DSegments, all4DSegmentsToken, CSCSegments, CSCSegmentsToken, event(), theCSCRecHits, theCSCRecHitToken, theDTRecHits, theDTRecHitToken, 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 150 of file GlobalMuonRefitter.cc.
References edm::EventSetup::get(), hitCloner, LogDebug, edm::ESHandle< class >::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 593 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(), fileCollector::seed, theCategory, theCosmicFlag, theFitter, thePropagatorName, theRefitDirection, theRescaleErrorFactor, theService, and HLT_25ns14e33_v1_cff::trajectories.
Referenced by refit().
|
private |
Definition at line 178 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 176 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 177 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 175 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 160 of file GlobalMuonRefitter.h.
Referenced by getDYTInfo(), GlobalMuonRefitter(), refit(), and ~GlobalMuonRefitter().
|
private |
Definition at line 167 of file GlobalMuonRefitter.h.
Referenced by setServices().
|
private |
Definition at line 146 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
protected |
Definition at line 121 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), checkRecHitsOrdering(), getFirstHits(), GlobalMuonRefitter(), printHits(), refit(), selectMuonHits(), setServices(), and transform().
|
private |
Definition at line 133 of file GlobalMuonRefitter.h.
Referenced by transform().
|
private |
Definition at line 131 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 136 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 138 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 140 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 130 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 135 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter().
|
private |
Definition at line 137 of file GlobalMuonRefitter.h.
Referenced by checkMuonHits(), and setEvent().
|
private |
Definition at line 139 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setEvent().
|
private |
Definition at line 157 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 156 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 158 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 159 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 173 of file GlobalMuonRefitter.h.
Referenced by refit(), and setEvent().
|
private |
Definition at line 163 of file GlobalMuonRefitter.h.
Referenced by setServices(), and transform().
|
private |
Definition at line 162 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 129 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 127 of file GlobalMuonRefitter.h.
|
private |
Definition at line 170 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 169 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 128 of file GlobalMuonRefitter.h.
|
private |
Definition at line 148 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
protected |
Definition at line 123 of file GlobalMuonRefitter.h.
|
private |
Definition at line 154 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 152 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and transform().
|
private |
Definition at line 132 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and selectMuonHits().
|
private |
Definition at line 150 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and refit().
|
private |
Definition at line 172 of file GlobalMuonRefitter.h.
Referenced by refit(), service(), setServices(), and transform().
|
private |
Definition at line 142 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
protected |
Definition at line 122 of file GlobalMuonRefitter.h.
|
private |
Definition at line 166 of file GlobalMuonRefitter.h.
Referenced by refit(), and setServices().
|
private |
Definition at line 165 of file GlobalMuonRefitter.h.
Referenced by GlobalMuonRefitter(), and setServices().
|
private |
Definition at line 144 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().
|
private |
Definition at line 143 of file GlobalMuonRefitter.h.
Referenced by getRidOfSelectStationHits(), and GlobalMuonRefitter().