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 FreeTrajectoryState &state) const |
TrajectoryStateOnSurface | extrapolate (const FreeTrajectoryState &state) const |
Extrapolate a FreeTrajectoryState 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 reco::Candidate &tk) const |
TrajectoryStateOnSurface | extrapolate (const reco::Track &tk) const |
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 SimTrack &tk, const edm::SimVertexContainer &vtxs) const |
void | init (const edm::EventSetup &iSetup) |
void | init (const edm::EventSetup &iSetup) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators. More... | |
PropagateToMuon (const edm::ParameterSet &iConfig) | |
PropagateToMuon (const edm::ParameterSet &iConfig) | |
~PropagateToMuon () | |
~PropagateToMuon () | |
Private Types | |
enum | WhichState { AtVertex, Innermost, Outermost, AtVertex, Innermost, Outermost } |
enum | WhichState { AtVertex, Innermost, Outermost, AtVertex, Innermost, Outermost } |
enum | WhichTrack { None, TrackerTk, MuonTk, GlobalTk, None, TrackerTk, MuonTk, GlobalTk } |
enum | WhichTrack { None, TrackerTk, MuonTk, GlobalTk, None, TrackerTk, MuonTk, GlobalTk } |
Private Member Functions | |
TrajectoryStateOnSurface | getBestDet (const TrajectoryStateOnSurface &tsos, const DetLayer *station) const |
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::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 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... | |
Private Attributes | |
const BoundCylinder * | barrelCylinder_ |
double | barrelHalfLength_ |
bool | cosmicPropagation_ |
for cosmics, some things change: the along-opposite is not in-out, nor the innermost/outermost states are in-out really More... | |
const BoundDisk * | endcapDiskNeg_ |
const BoundDisk * | endcapDiskPos_ |
std::pair< float, float > | endcapRadii_ |
bool | fallbackToME1_ |
Fallback to ME1 if propagation to ME2 fails. More... | |
edm::ESHandle< MagneticField > | magfield_ |
edm::ESHandle< MuonDetLayerGeometry > | muonGeometry_ |
edm::ESHandle< Propagator > | propagator_ |
edm::ESHandle< Propagator > | propagatorAny_ |
edm::ESHandle< Propagator > | propagatorOpposite_ |
bool | useMB2_ |
Propagate to MB2 (default) instead of MB1. More... | |
bool | useMB2InOverlap_ |
bool | useSimpleGeometry_ |
Labels for input collections. More... | |
WhichState | whichState_ |
WhichTrack | whichTrack_ |
Labels for input collections. 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 29 of file PropagateToMuon.h.
|
private |
Enumerator | |
---|---|
AtVertex | |
Innermost | |
Outermost | |
AtVertex | |
Innermost | |
Outermost |
Definition at line 52 of file PropagateToMuon.h.
|
private |
Enumerator | |
---|---|
AtVertex | |
Innermost | |
Outermost | |
AtVertex | |
Innermost | |
Outermost |
Definition at line 57 of file PropagateToMuon.h.
|
private |
|
private |
|
explicit |
Definition at line 18 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 54 of file PropagateToMuon.cc.
|
explicit |
PropagateToMuon::~PropagateToMuon | ( | ) |
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 136 of file PropagateToMuon.cc.
References MuonDetLayerGeometry::allDTLayers(), AtVertex, MuonDetLayerGeometry::backwardCSCLayers(), barrelCylinder_, barrelHalfLength_, cosmicPropagation_, endcapDiskNeg_, endcapDiskPos_, endcapRadii_, PVValHelper::eta, MuonDetLayerGeometry::forwardCSCLayers(), getBestDet(), TrajectoryStateOnSurface::globalPosition(), sistrip::SpyUtilities::isValid(), TrajectoryStateOnSurface::isValid(), muonGeometry_, PV3DBase< T, PVType, FrameType >::perp(), Propagator::propagate(), propagator_, propagatorOpposite_, rho, useSimpleGeometry_, whichState_, and PV3DBase< T, PVType, FrameType >::z().
TrajectoryStateOnSurface PropagateToMuon::extrapolate | ( | const FreeTrajectoryState & | state | ) | const |
Extrapolate a FreeTrajectoryState to the muon station 2, return an invalid TSOS if it fails.
|
inline |
Extrapolate reco::Candidate to the muon station 2, return an invalid TSOS if it fails.
Definition at line 43 of file PropagateToMuon.h.
References extrapolate(), and startingState().
Referenced by extrapolate().
|
inline |
Extrapolate reco::Candidate 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 extrapolate().
|
inline |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails.
Definition at line 40 of file PropagateToMuon.h.
References extrapolate(), and startingState().
Referenced by extrapolate().
|
inline |
Extrapolate reco::Track to the muon station 2, return an invalid TSOS if it fails
Definition at line 40 of file PropagateToMuon.h.
References extrapolate(), and startingState().
Referenced by L1MuonMatcherAlgo::extrapolate(), extrapolate(), and TriggerMatcherToHLTDebug::produce().
|
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 48 of file PropagateToMuon.h.
References extrapolate(), and startingState().
|
private |
Get the best TSOS on one of the chambres of this DetLayer, or an invalid TSOS if none match
Definition at line 185 of file PropagateToMuon.cc.
References phase1PixelTopology::layer, propagatorAny_, and runTheMatrix::ret.
Referenced by extrapolate().
|
private |
Get the best TSOS on one of the chambres of this DetLayer, or an invalid TSOS if none match.
void PropagateToMuon::init | ( | const edm::EventSetup & | iSetup | ) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators
Definition at line 56 of file PropagateToMuon.cc.
References MuonDetLayerGeometry::allDTLayers(), MuonDetLayerGeometry::backwardCSCLayers(), barrelCylinder_, barrelHalfLength_, endcapDiskNeg_, endcapDiskPos_, endcapRadii_, Exception, MuonDetLayerGeometry::forwardCSCLayers(), edm::EventSetup::get(), get, magfield_, muonGeometry_, propagator_, propagatorAny_, propagatorOpposite_, and GeometricSearchDet::surface().
Referenced by TriggerMatcherToHLTDebug::beginRun(), L1TMuonDQMOffline::dqmBeginRun(), and L1MuonMatcherAlgo::init().
void PropagateToMuon::init | ( | const edm::EventSetup & | iSetup | ) |
Call this method at the beginning of each run, to initialize geometry, magnetic field and propagators.
|
private |
Starting state for the propagation.
Definition at line 81 of file PropagateToMuon.cc.
References reco::RecoCandidate::combinedMuon(), Exception, GlobalTk, edm::Ref< C, T, F >::isNull(), magfield_, MuonTk, None, edm::ESHandle< T >::product(), runTheMatrix::ret, reco::RecoCandidate::standAloneMuon(), reco::RecoCandidate::track(), TrackerTk, and whichTrack_.
Referenced by extrapolate().
|
private |
Starting state for the propagation.
|
private |
Starting state for the propagation.
Definition at line 115 of file PropagateToMuon.cc.
References AtVertex, cosmicPropagation_, trajectoryStateTransform::initialFreeState(), trajectoryStateTransform::innerFreeState(), Innermost, reco::Track::innerPosition(), magfield_, trajectoryStateTransform::outerFreeState(), Outermost, reco::Track::outerPosition(), edm::ESHandle< T >::product(), and whichState_.
|
private |
Starting state for the propagation.
|
private |
Starting state for the propagation.
Definition at line 144 of file PropagateToMuon.cc.
References CoreSimTrack::charge(), edm::ESHandleBase::isValid(), magfield_, CoreSimTrack::momentum(), SimTrack::noVertex(), edm::ESHandle< T >::product(), SimTrack::vertIndex(), and extraflags_cff::vtx.
|
private |
Definition at line 68 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 70 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
for cosmics, some things change: the along-opposite is not in-out, nor the innermost/outermost states are in-out really
Definition at line 61 of file PropagateToMuon.h.
Referenced by extrapolate(), PropagateToMuon(), and startingState().
|
private |
Definition at line 69 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 69 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 71 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Fallback to ME1 if propagation to ME2 fails.
Definition at line 66 of file PropagateToMuon.h.
|
private |
Definition at line 64 of file PropagateToMuon.h.
Referenced by init(), and startingState().
|
private |
Definition at line 66 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 65 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Definition at line 65 of file PropagateToMuon.h.
Referenced by getBestDet(), and init().
|
private |
Definition at line 65 of file PropagateToMuon.h.
Referenced by extrapolate(), and init().
|
private |
Propagate to MB2 (default) instead of MB1.
Definition at line 63 of file PropagateToMuon.h.
|
private |
Definition at line 75 of file PropagateToMuon.h.
|
private |
Labels for input collections.
Use simplified geometry (cylinders and disks, not individual chambers)
Definition at line 55 of file PropagateToMuon.h.
Referenced by extrapolate().
|
private |
Definition at line 57 of file PropagateToMuon.h.
Referenced by extrapolate(), PropagateToMuon(), and startingState().
|
private |
Labels for input collections.
Definition at line 56 of file PropagateToMuon.h.
Referenced by PropagateToMuon(), and startingState().