Propagate an object (usually a track) to the second muon station. Support for other muon stations will be added on request. More...
#include "MuonAnalysis/MuonAssociators/interface/PropagateToMuon.h"
Public Member Functions | |
TrajectoryStateOnSurface | extrapolate (const reco::Track &tk) const |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails. More... | |
TrajectoryStateOnSurface | extrapolate (const reco::Candidate &tk) const |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails. More... | |
TrajectoryStateOnSurface | extrapolate (const SimTrack &tk, const edm::SimVertexContainer &vtxs) const |
TrajectoryStateOnSurface | extrapolate (const FreeTrajectoryState &state) const |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails. More... | |
void | init (const edm::EventSetup &iSetup) |
Call this method at the beginning of each event, to initialize geometry, magnetic field and propagators. More... | |
PropagateToMuon (const edm::ParameterSet &iConfig, edm::ConsumesCollector) | |
~PropagateToMuon () | |
Private Types | |
enum | WhichState { AtVertex, Innermost, Outermost } |
enum | WhichTrack { None, TrackerTk, MuonTk, GlobalTk } |
Private Member Functions | |
TrajectoryStateOnSurface | getBestDet (const TrajectoryStateOnSurface &tsos, const DetLayer *station) const |
Get the best TSOS on one of the chambres of this DetLayer, or an invalid TSOS if none match. More... | |
FreeTrajectoryState | startingState (const reco::Candidate &reco) const |
Starting state for the propagation. More... | |
FreeTrajectoryState | startingState (const reco::Track &tk) const |
Starting state for the propagation. More... | |
FreeTrajectoryState | startingState (const SimTrack &tk, const edm::SimVertexContainer &vtxs) const |
Starting state for the propagation. More... | |
Propagate an object (usually a track) to the second muon station. Support for other muon stations will be added on request.
"HLTriggerOffline/Muon/interface/PropagateToMuon.h"
Definition at line 35 of file PropagateToMuon.h.
|
private |
Enumerator | |
---|---|
AtVertex | |
Innermost | |
Outermost |
Definition at line 61 of file PropagateToMuon.h.
|
private |
Enumerator | |
---|---|
None | |
TrackerTk | |
MuonTk | |
GlobalTk |
Definition at line 60 of file PropagateToMuon.h.
|
explicit |
Definition at line 17 of file PropagateToMuon.cc.
References AtVertex, cosmicPropagation_, Exception, edm::ParameterSet::getParameter(), GlobalTk, Innermost, MuonTk, None, Outermost, AlCaHLTBitMon_QueryRunRegistry::string, TrackerTk, whichState_, and whichTrack_.
PropagateToMuon::~PropagateToMuon | ( | ) |
Definition at line 61 of file PropagateToMuon.cc.
|
inline |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails.
Definition at line 44 of file PropagateToMuon.h.
References extrapolate(), and startingState().
Referenced by L1MuonMatcherAlgo::extrapolate(), extrapolate(), MuonGmtPair::MuonGmtPair(), and TriggerMatcherToHLTDebug::produce().
|
inline |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails.
Definition at line 47 of file PropagateToMuon.h.
References extrapolate(), and startingState().
Referenced by extrapolate().
|
inline |
Extrapolate a SimTrack to the muon station 2, return an invalid TSOS if it fails; needs the SimVertices too, to know where to start from Note: it will throw an exception if the SimTrack has no vertex.
Definition at line 52 of file PropagateToMuon.h.
References extrapolate(), and startingState().
TrajectoryStateOnSurface PropagateToMuon::extrapolate | ( | const FreeTrajectoryState & | state | ) | const |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails.
Definition at line 161 of file PropagateToMuon.cc.
References AtVertex, barrelCylinder_, barrelHalfLength_, cosmicPropagation_, Vector3DBase< T, FrameTag >::dot(), endcapDiskNeg_, endcapDiskPos_, endcapRadii_, PVValHelper::eta, PV3DBase< T, PVType, FrameType >::eta(), Exception, fallbackToME1_, first, getBestDet(), TrajectoryStateOnSurface::globalPosition(), edm::ESHandleBase::isValid(), sistrip::SpyUtilities::isValid(), TrajectoryStateOnSurface::isValid(), PV3DBase< T, PVType, FrameType >::mag(), magfield_, FreeTrajectoryState::momentum(), muonGeometry_, PV3DBase< T, PVType, FrameType >::perp(), FreeTrajectoryState::position(), position, Propagator::propagate(), propagator_, propagatorOpposite_, rho, edm::second(), useMB2_, useSimpleGeometry_, whichState_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Get the best TSOS on one of the chambres of this DetLayer, or an invalid TSOS if none match.
Definition at line 221 of file PropagateToMuon.cc.
References GeometricSearchDet::compatibleDets(), propagatorAny_, and runTheMatrix::ret.
Referenced by extrapolate().
void PropagateToMuon::init | ( | const edm::EventSetup & | iSetup | ) |
Call this method at the beginning of each event, to initialize geometry, magnetic field and propagators.
Definition at line 63 of file PropagateToMuon.cc.
References barrelCylinder_, barrelHalfLength_, endcapDiskNeg_, endcapDiskPos_, endcapRadii_, edm::EventSetup::getHandle(), mps_fire::i, magfield_, magfieldToken_, muonGeometry_, muonGeometryToken_, propagator_, propagatorAny_, propagatorAnyToken_, propagatorOpposite_, propagatorOppositeToken_, propagatorToken_, GeometricSearchDet::surface(), useMB2_, and useMB2InOverlap_.
Referenced by L1TMuonDQMOffline::analyze(), L1MuonMatcherAlgo::init(), and TriggerMatcherToHLTDebug::produce().
|
private |
Starting state for the propagation.
Definition at line 89 of file PropagateToMuon.cc.
References reco::Candidate::charge(), reco::RecoCandidate::combinedMuon(), Exception, GlobalTk, edm::Ref< C, T, F >::isNull(), magfield_, MuonTk, None, edm::ESHandle< class >::product(), reco::Candidate::px(), reco::Candidate::py(), reco::Candidate::pz(), dt_dqm_sourceclient_common_cff::reco, runTheMatrix::ret, reco::RecoCandidate::standAloneMuon(), reco::RecoCandidate::track(), TrackerTk, reco::Candidate::vx(), reco::Candidate::vy(), reco::Candidate::vz(), and whichTrack_.
Referenced by extrapolate().
|
private |
Starting state for the propagation.
Definition at line 123 of file PropagateToMuon.cc.
References AtVertex, cosmicPropagation_, trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerFreeState(), Innermost, reco::Track::innerPosition(), edm::ESHandleBase::isValid(), magfield_, trajectoryStateTransform::outerFreeState(), Outermost, reco::Track::outerPosition(), edm::ESHandle< class >::product(), and whichState_.
|
private |
Starting state for the propagation.
Definition at line 147 of file PropagateToMuon.cc.
References CoreSimTrack::charge(), edm::ESHandleBase::isValid(), magfield_, CoreSimTrack::momentum(), SimTrack::noVertex(), edm::ESHandle< class >::product(), and SimTrack::vertIndex().
|
private |
Definition at line 90 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 92 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
for cosmics, some things change: the along-opposite is not in-out, nor the innermost/outermost states are in-out really
Definition at line 77 of file PropagateToMuon.h.
Referenced by extrapolate(), PropagateToMuon(), and startingState().
|
private |
Definition at line 91 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 91 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 93 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Fallback to ME1 if propagation to ME2 fails.
Definition at line 70 of file PropagateToMuon.h.
Referenced by extrapolate().
|
private |
Definition at line 82 of file PropagateToMuon.h.
Referenced by extrapolate(), init(), and startingState().
|
private |
Definition at line 86 of file PropagateToMuon.h.
Referenced by init().
|
private |
Definition at line 84 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 88 of file PropagateToMuon.h.
Referenced by init().
|
private |
Definition at line 83 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 83 of file PropagateToMuon.h.
Referenced by getBestDet(), and init().
|
private |
Definition at line 87 of file PropagateToMuon.h.
Referenced by init().
|
private |
Definition at line 83 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 87 of file PropagateToMuon.h.
Referenced by init().
|
private |
Definition at line 87 of file PropagateToMuon.h.
Referenced by init().
|
private |
Propagate to MB2 (default) instead of MB1.
Definition at line 67 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 79 of file PropagateToMuon.h.
Referenced by init().
|
private |
Use simplified geometry (cylinders and disks, not individual chambers)
Definition at line 64 of file PropagateToMuon.h.
Referenced by extrapolate().
|
private |
Definition at line 74 of file PropagateToMuon.h.
Referenced by extrapolate(), PropagateToMuon(), and startingState().
|
private |
Labels for input collections.
Definition at line 73 of file PropagateToMuon.h.
Referenced by PropagateToMuon(), and startingState().