#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 *) | |
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 50 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitContainer GlobalTrajectoryBuilderBase::ConstMuonRecHitContainer |
Definition at line 62 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::ConstMuonRecHitPointer GlobalTrajectoryBuilderBase::ConstMuonRecHitPointer |
Definition at line 60 of file GlobalTrajectoryBuilderBase.h.
typedef TransientTrackingRecHit::ConstRecHitContainer GlobalTrajectoryBuilderBase::ConstRecHitContainer |
Definition at line 55 of file GlobalTrajectoryBuilderBase.h.
Definition at line 57 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::MuonRecHitContainer GlobalTrajectoryBuilderBase::MuonRecHitContainer |
Definition at line 61 of file GlobalTrajectoryBuilderBase.h.
typedef MuonTransientTrackingRecHit::MuonRecHitPointer GlobalTrajectoryBuilderBase::MuonRecHitPointer |
Definition at line 59 of file GlobalTrajectoryBuilderBase.h.
Definition at line 54 of file GlobalTrajectoryBuilderBase.h.
Definition at line 56 of file GlobalTrajectoryBuilderBase.h.
typedef std::vector<Trajectory> GlobalTrajectoryBuilderBase::TC |
Definition at line 64 of file GlobalTrajectoryBuilderBase.h.
typedef TC::const_iterator GlobalTrajectoryBuilderBase::TI |
Definition at line 65 of file GlobalTrajectoryBuilderBase.h.
|
protected |
Enumerator | |
---|---|
inToOut | |
outToIn | |
undetermined |
Definition at line 83 of file GlobalTrajectoryBuilderBase.h.
GlobalTrajectoryBuilderBase::GlobalTrajectoryBuilderBase | ( | const edm::ParameterSet & | par, |
const MuonServiceProxy * | service | ||
) |
constructor with Parameter Set and MuonServiceProxy
Definition at line 91 of file GlobalTrajectoryBuilderBase.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), GlobalMuonRefitter_cff::GlobalMuonRefitter, GlobalMuonTrackMatcher_cff::GlobalMuonTrackMatcher, theCacheId_TRH, theCategory, theGlbRefitter, theMuonHitsOption, theMuonRecHitBuilderName, thePCut, thePtCut, theRegionBuilder, theRPCInTheFit, theService, theTECxScale, theTECyScale, theTrackerPropagatorName, theTrackerRecHitBuilderName, theTrackMatcher, and theTrackTransformer.
|
virtual |
destructor
Definition at line 134 of file GlobalTrajectoryBuilderBase.cc.
References theGlbRefitter, theRegionBuilder, theTrackMatcher, and theTrackTransformer.
|
inlineprotected |
if TrackCand has only a TrackRef, attempt to add Trajectory*
Definition at line 127 of file GlobalTrajectoryBuilderBase.h.
|
protected |
build combined trajectory from sta Track and tracker RecHits
Definition at line 176 of file GlobalTrajectoryBuilderBase.cc.
References checkRecHitsOrdering(), fixTEC(), getTransientRecHits(), LogDebug, LogTrace, MuonCandidate::muonTrack(), outToIn, mix_2012_Summer_inTimeOnly_cff::prob, 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 406 of file GlobalTrajectoryBuilderBase.cc.
References inToOut, outToIn, theCategory, and undetermined.
Referenced by build().
|
protected |
choose tracker tracks within region of interest
Definition at line 301 of file GlobalTrajectoryBuilderBase.cc.
References defineRegionOfInterest(), deltaR(), and query::result.
Referenced by GlobalMuonTrajectoryBuilder::makeTkCandCollection().
|
protected |
choose final trajectory
|
protected |
define region of interest with tracker
Definition at line 341 of file GlobalTrajectoryBuilderBase.cc.
References MuonTrackingRegionBuilder::region(), and theRegionBuilder.
Referenced by chooseRegionalTrackerTracks().
|
protected |
rescale errors of outermost TEC RecHit
Definition at line 459 of file GlobalTrajectoryBuilderBase.cc.
References angle(), MuonTransientTrackingRecHit::build(), error, i, pos, LocalError::rotate(), StripTopology::strip(), StripTopology::stripAngle(), StripSubdetector::TEC, DetId::Tracker, LocalError::xx(), and LocalError::yy().
Referenced by build().
|
protected |
get transient RecHits of a Track
Definition at line 532 of file GlobalTrajectoryBuilderBase.cc.
References DetId::det(), trajectoryStateTransform::innerStateOnSurface(), TrajectoryStateOnSurface::isValid(), LogDebug, DetId::Muon, 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 380 of file GlobalTrajectoryBuilderBase.cc.
References LogTrace, pos, 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 435 of file GlobalTrajectoryBuilderBase.cc.
References cond::ecalcond::all, i, StripSubdetector::TEC, and DetId::Tracker.
Referenced by build().
|
inlineprotected |
Definition at line 140 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 146 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 137 of file GlobalTrajectoryBuilderBase.h.
References theTrackMatcher.
Referenced by GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
|
protected |
calculate chi2 probability (-ln(P))
Definition at line 366 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 76 of file GlobalTrajectoryBuilderBase.h.
|
private |
Definition at line 176 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
protected |
Definition at line 164 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), checkRecHitsOrdering(), getTransientRecHits(), GlobalTrajectoryBuilderBase(), printHits(), and setEvent().
|
private |
Definition at line 184 of file GlobalTrajectoryBuilderBase.h.
Referenced by setEvent().
|
private |
Definition at line 175 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 171 of file GlobalTrajectoryBuilderBase.h.
|
private |
Definition at line 179 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 190 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and setEvent().
|
private |
Definition at line 189 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
protected |
Definition at line 166 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and GlobalTrajectoryBuilderBase().
|
protected |
Definition at line 165 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), GlobalMuonTrajectoryBuilder::trajectories(), and L3MuonTrajectoryBuilder::trajectories().
|
private |
Definition at line 173 of file GlobalTrajectoryBuilderBase.h.
Referenced by defineRegionOfInterest(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 177 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 174 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), getTransientRecHits(), GlobalTrajectoryBuilderBase(), service(), and setEvent().
|
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 build(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 182 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and GlobalTrajectoryBuilderBase().
|
private |
Definition at line 187 of file GlobalTrajectoryBuilderBase.h.
Referenced by getTransientRecHits(), and setEvent().
|
private |
Definition at line 186 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), and setEvent().
|
private |
Definition at line 170 of file GlobalTrajectoryBuilderBase.h.
Referenced by GlobalTrajectoryBuilderBase(), trackMatcher(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 172 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), GlobalTrajectoryBuilderBase(), setEvent(), and ~GlobalTrajectoryBuilderBase().
|
private |
Definition at line 192 of file GlobalTrajectoryBuilderBase.h.
Referenced by build(), and setEvent().