#include <GlobalTrajectoryBuilderBase.h>
Classes | |
struct | ComparatorInOut |
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 |
typedef std::vector< Trajectory > | TC |
typedef TC::const_iterator | TI |
Public Types inherited from MuonTrajectoryBuilder | |
typedef MuonCandidate::CandidateContainer | CandidateContainer |
typedef std::pair< const Trajectory *, reco::TrackRef > | TrackCand |
typedef MuonCandidate::TrajectoryContainer | TrajectoryContainer |
Public Member Functions | |
GlobalTrajectoryBuilderBase (const edm::ParameterSet &, const MuonServiceProxy *, edm::ConsumesCollector &) | |
constructor with Parameter Set and MuonServiceProxy More... | |
virtual void | setEvent (const edm::Event &) |
pass the Event to the algo at each event More... | |
MuonTrajectoryBuilder::TrajectoryContainer | trajectories (const TrajectorySeed &) |
dummy implementation, unused in this class More... | |
virtual | ~GlobalTrajectoryBuilderBase () |
destructor More... | |
Public Member Functions inherited from MuonTrajectoryBuilder | |
MuonTrajectoryBuilder () | |
constructor More... | |
virtual CandidateContainer | trajectories (const TrackCand &)=0 |
return a container reconstructed muons starting from a given track More... | |
virtual | ~MuonTrajectoryBuilder () |
destructor More... | |
Protected Types | |
enum | RefitDirection { inToOut, outToIn, undetermined } |
Protected Member Functions | |
void | addTraj (TrackCand &) |
if TrackCand has only a TrackRef, attempt to add Trajectory* More... | |
MuonTrajectoryBuilder::CandidateContainer | build (const TrackCand &, MuonTrajectoryBuilder::CandidateContainer &) const |
build combined trajectory from sta Track and tracker RecHits More... | |
void | checkMuonHits (const reco::Track &, ConstRecHitContainer &, ConstRecHitContainer &, std::vector< int > &) const |
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit More... | |
RefitDirection | checkRecHitsOrdering (const ConstRecHitContainer &) const |
This does nothing now. More... | |
std::vector< TrackCand > | chooseRegionalTrackerTracks (const TrackCand &, const std::vector< TrackCand > &) |
choose tracker tracks within region of interest More... | |
const Trajectory * | chooseTrajectory (const std::vector< Trajectory * > &, int) const |
choose final trajectory More... | |
RectangularEtaPhiTrackingRegion | defineRegionOfInterest (const reco::TrackRef &) const |
define region of interest with tracker More... | |
void | fixTEC (ConstRecHitContainer &all, double scl_x, double scl_y) const |
rescale errors of outermost TEC RecHit More... | |
TransientTrackingRecHit::ConstRecHitContainer | getTransientRecHits (const reco::Track &) const |
get transient RecHits of a Track More... | |
virtual std::vector< TrackCand > | makeTkCandCollection (const TrackCand &)=0 |
make a TrackCand collection using tracker Track, Trajectory information More... | |
void | printHits (const ConstRecHitContainer &) const |
print all RecHits of a trajectory More... | |
ConstRecHitContainer | selectMuonHits (const Trajectory &, const std::vector< int > &) const |
select muon hits compatible with trajectory; check hits in chambers with showers More... | |
ConstRecHitContainer | selectTrackerHits (const ConstRecHitContainer &) const |
select tracker hits; exclude some tracker hits in the global trajectory More... | |
const MuonServiceProxy * | service () const |
GlobalMuonTrackMatcher * | trackMatcher () const |
double | trackProbability (const Trajectory &) const |
calculate chi2 probability (-ln(P)) More... | |
Protected Attributes | |
std::string | theCategory |
float | thePCut |
float | thePtCut |
Private Attributes | |
unsigned long long | theCacheId_TRH |
const edm::Event * | theEvent |
GlobalMuonRefitter * | theGlbRefitter |
MuonDetLayerMeasurements * | theLayerMeasurements |
int | theMuonHitsOption |
edm::ESHandle < TransientTrackingRecHitBuilder > | theMuonRecHitBuilder |
std::string | theMuonRecHitBuilderName |
MuonTrackingRegionBuilder * | theRegionBuilder |
bool | theRPCInTheFit |
const MuonServiceProxy * | theService |
float | theTECxScale |
float | theTECyScale |
std::string | theTrackerPropagatorName |
edm::ESHandle < TransientTrackingRecHitBuilder > | theTrackerRecHitBuilder |
std::string | theTrackerRecHitBuilderName |
GlobalMuonTrackMatcher * | theTrackMatcher |
TrackTransformer * | theTrackTransformer |
const TrackerTopology * | tTopo_ |
Base class for GlobalMuonTrajectoryBuilder and L3MuonTrajectoryBuilder Provide common tools and interface to reconstruct muons starting from a muon track reconstructed in the standalone muon system (with DT, CSC and RPC information). It tries to reconstruct the corresponding track in the tracker and performs matching between the reconstructed tracks in the muon system and the tracker.
Definition at line 49 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalTrajectoryBuilderBase::ConstMuonRecHitContainer |
Definition at line 61 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalTrajectoryBuilderBase::ConstMuonRecHitPointer |
Definition at line 59 of file GlobalTrajectoryBuilderBase.h.
typedef TransientTrackingRecHit::ConstRecHitContainer GlobalTrajectoryBuilderBase::ConstRecHitContainer |
Definition at line 54 of file GlobalTrajectoryBuilderBase.h.
Definition at line 56 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::MuonRecHitContainer GlobalTrajectoryBuilderBase::MuonRecHitContainer |
Definition at line 60 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::MuonRecHitPointer GlobalTrajectoryBuilderBase::MuonRecHitPointer |
Definition at line 58 of file GlobalTrajectoryBuilderBase.h.
Definition at line 53 of file GlobalTrajectoryBuilderBase.h.
Definition at line 55 of file GlobalTrajectoryBuilderBase.h.
typedef std::vector<Trajectory> GlobalTrajectoryBuilderBase::TC |
Definition at line 63 of file GlobalTrajectoryBuilderBase.h.
typedef TC::const_iterator GlobalTrajectoryBuilderBase::TI |
Definition at line 64 of file GlobalTrajectoryBuilderBase.h.
|
protected |
Enumerator | |
---|---|
inToOut | |
outToIn | |
undetermined |
Definition at line 82 of file GlobalTrajectoryBuilderBase.h.
GlobalTrajectoryBuilderBase::GlobalTrajectoryBuilderBase | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service, | ||
edm::ConsumesCollector & | iC | ||
) |
constructor with Parameter Set and MuonServiceProxy
Definition at line 86 of file GlobalTrajectoryBuilderBase.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), GlobalMuonRefitter_cff::GlobalMuonRefitter, GlobalMuonTrackMatcher_cff::GlobalMuonTrackMatcher, HLT_25ns14e33_v1_cff::MuonTrackingRegionBuilder, theCacheId_TRH, theCategory, theGlbRefitter, theMuonHitsOption, theMuonRecHitBuilderName, thePCut, thePtCut, theRegionBuilder, theRPCInTheFit, theService, theTECxScale, theTECyScale, theTrackerPropagatorName, theTrackerRecHitBuilderName, theTrackMatcher, theTrackTransformer, and HLT_25ns14e33_v1_cff::TrackTransformer.
|
virtual |
destructor
Definition at line 130 of file GlobalTrajectoryBuilderBase.cc.
References theGlbRefitter, theRegionBuilder, theTrackMatcher, and theTrackTransformer.
|
inlineprotected |
if TrackCand has only a TrackRef, attempt to add Trajectory*
Definition at line 126 of file GlobalTrajectoryBuilderBase.h.
|
protected |
build combined trajectory from sta Track and tracker RecHits
Definition at line 172 of file GlobalTrajectoryBuilderBase.cc.
References checkRecHitsOrdering(), fixTEC(), getTransientRecHits(), getDQMSummary::iter, LogDebug, LogTrace, MuonCandidate::muonTrack(), outToIn, GlobalMuonRefitter::refit(), selectTrackerHits(), Trajectory::setSeedRef(), theCategory, theGlbRefitter, theMuonHitsOption, thePCut, thePtCut, theService, theTECxScale, theTECyScale, theTrackTransformer, MuonCandidate::trackerTrack(), MuonCandidate::trackerTrajectory(), trackProbability(), MuonCandidate::trajectory(), TrackTransformer::transform(), and tTopo_.
Referenced by GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
|
protected |
check muon RecHits, calculate chamber occupancy and select hits to be used in the final fit
|
protected |
This does nothing now.
check order of RechIts on a trajectory
Definition at line 402 of file GlobalTrajectoryBuilderBase.cc.
References inToOut, outToIn, theCategory, and undetermined.
Referenced by build().
|
protected |
choose tracker tracks within region of interest
Definition at line 297 of file GlobalTrajectoryBuilderBase.cc.
References defineRegionOfInterest(), deltaR(), TrackingRegion::direction(), PV3DBase< T, PVType, FrameType >::eta(), PV3DBase< T, PVType, FrameType >::phi(), and query::result.
Referenced by GlobalMuonTrajectoryBuilder::makeTkCandCollection().
|
protected |
choose final trajectory
|
protected |
define region of interest with tracker
Definition at line 337 of file GlobalTrajectoryBuilderBase.cc.
References TrackingRegion::direction(), RectangularEtaPhiTrackingRegion::etaRange(), PixelRecoRange< T >::max(), PixelRecoRange< T >::mean(), PixelRecoRange< T >::min(), TrackingRegion::origin(), TrackingRegion::originRBound(), TrackingRegion::originZBound(), RectangularEtaPhiTrackingRegion::phiMargin(), TrackingRegion::ptMin(), MuonTrackingRegionBuilder::region(), and theRegionBuilder.
Referenced by chooseRegionalTrackerTracks().
|
protected |
rescale errors of outermost TEC RecHit
freeze this hit, make sure it will not be recomputed during fitting
/ the implemetantion below works with cloning / to get a RecHitPointer to SiStripRecHit2D, the only method that works is / RecHitPointer MuonTransientTrackingRecHit::build(const GeomDet*,const TrackingRecHit*)
Definition at line 455 of file GlobalTrajectoryBuilderBase.cc.
References angle(), MuonTransientTrackingRecHit::build(), SiStripRecHit2D::cluster(), TrackingRecHit::det(), relativeConstraints::error, i, BaseTrackerRecHit::localPosition(), BaseTrackerRecHit::localPositionError(), LocalError::rotate(), StripTopology::strip(), StripTopology::stripAngle(), StripSubdetector::TEC, ecaldqm::topology(), DetId::Tracker, LocalError::xx(), and LocalError::yy().
Referenced by build().
|
protected |
get transient RecHits of a Track
Definition at line 521 of file GlobalTrajectoryBuilderBase.cc.
References TkTransientTrackingRecHitBuilder::cloner(), DetId::det(), h, trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogDebug, DetId::Muon, edm::ESHandle< class >::product(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), query::result, theCategory, theMuonRecHitBuilder, theRPCInTheFit, theService, theTrackerPropagatorName, theTrackerRecHitBuilder, and DetId::Tracker.
Referenced by build().
|
protectedpure virtual |
make a TrackCand collection using tracker Track, Trajectory information
Implemented in L3MuonTrajectoryBuilder, and GlobalMuonTrajectoryBuilder.
|
protected |
print all RecHits of a trajectory
Definition at line 376 of file GlobalTrajectoryBuilderBase.cc.
References LogTrace, mathSSE::sqrt(), theCategory, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
protected |
select muon hits compatible with trajectory; check hits in chambers with showers
|
protected |
select tracker hits; exclude some tracker hits in the global trajectory
Definition at line 431 of file GlobalTrajectoryBuilderBase.cc.
References cond::ecalcond::all, i, StripSubdetector::TEC, and DetId::Tracker.
Referenced by build().
|
inlineprotected |
Definition at line 139 of file GlobalTrajectoryBuilderBase.h.
References theService.
|
virtual |
pass the Event to the algo at each event
Implements MuonTrajectoryBuilder.
Reimplemented in L3MuonTrajectoryBuilder, and GlobalMuonTrajectoryBuilder.
Definition at line 142 of file GlobalTrajectoryBuilderBase.cc.
References event(), LogDebug, edm::ESHandle< class >::product(), MuonTrackingRegionBuilder::setEvent(), GlobalMuonRefitter::setEvent(), TrackTransformer::setServices(), GlobalMuonRefitter::setServices(), theCacheId_TRH, theCategory, theEvent, theGlbRefitter, theMuonRecHitBuilder, theMuonRecHitBuilderName, theRegionBuilder, theService, theTrackerRecHitBuilder, theTrackerRecHitBuilderName, theTrackTransformer, and tTopo_.
Referenced by GlobalMuonTrajectoryBuilder::setEvent(), and L3MuonTrajectoryBuilder::setEvent().
|
inlineprotected |
Definition at line 136 of file GlobalTrajectoryBuilderBase.h.
References theTrackMatcher.
Referenced by GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
|
protected |
calculate chi2 probability (-ln(P))
Definition at line 362 of file GlobalTrajectoryBuilderBase.cc.
References Trajectory::chiSquared(), LnChiSquaredProbability(), and Trajectory::ndof().
Referenced by build().
|
inlinevirtual |
dummy implementation, unused in this class
Implements MuonTrajectoryBuilder.
Definition at line 75 of file GlobalTrajectoryBuilderBase.h.
|
private |
Definition at line 175 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
protected |
Definition at line 163 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), checkRecHitsOrdering(), getTransientRecHits(), GlobalTrajectoryBuilderBase(), printHits(), and setEvent().
|
private |
Definition at line 183 of file GlobalTrajectoryBuilderBase.h.
Referenced by setEvent().
|
private |
Definition at line 174 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 170 of file GlobalTrajectoryBuilderBase.h.
|
private |
Definition at line 178 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 189 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and setEvent().
|
private |
Definition at line 188 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
protected |
Definition at line 165 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
protected |
Definition at line 164 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
|
private |
Definition at line 172 of file GlobalTrajectoryBuilderBase.h.
Referenced by defineRegionOfInterest(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 176 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 173 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), getTransientRecHits(), GlobalTrajectoryBuilderBase(), service(), and setEvent().
|
private |
Definition at line 179 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 180 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 181 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 186 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and setEvent().
|
private |
Definition at line 185 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
private |
Definition at line 169 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), trackMatcher(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 171 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 191 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and setEvent().