#include <DQM/TrackerMonitorTrack/src/TrackEfficiencyMonitor.cc>
Public Types | |
enum | SemiCylinder { Up, Down } |
typedef reco::Track | Track |
typedef reco::TrackCollection | TrackCollection |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob (void) |
SemiCylinder | checkSemiCylinder (const Track &) |
int | compatibleLayers (TrajectoryStateOnSurface theTSOS) |
virtual void | endJob (void) |
std::pair < TrajectoryStateOnSurface, const DetLayer * > | findNextLayer (TrajectoryStateOnSurface startTSOS, std::vector< const DetLayer * > trackCompatibleLayers, bool isUpMuon) |
void | testSTATracks (edm::Handle< TrackCollection > tkTracks, edm::Handle< TrackCollection > staTracks) |
void | testTrackerTracks (edm::Handle< TrackCollection > tkTracks, edm::Handle< TrackCollection > staTracks) |
TrackEfficiencyMonitor (const edm::ParameterSet &) | |
bool | trackerAcceptance (TrajectoryStateOnSurface theTSOS, double theRadius, double theMaxZ) |
~TrackEfficiencyMonitor () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Monitoring source to measure the track efficiency
Definition at line 40 of file TrackEfficiencyMonitor.h.
Definition at line 42 of file TrackEfficiencyMonitor.h.
Definition at line 43 of file TrackEfficiencyMonitor.h.
|
explicit |
Definition at line 53 of file TrackEfficiencyMonitor.cc.
References conf_, dqmStore_, edm::ParameterSet::getParameter(), isBFieldOff_, cppFunctionSkipper::operator, theMaxZ_, theRadius_, theSTATracksLabel_, theTKTracksLabel_, and trackEfficiency_.
TrackEfficiencyMonitor::~TrackEfficiencyMonitor | ( | ) |
Definition at line 72 of file TrackEfficiencyMonitor.cc.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 260 of file TrackEfficiencyMonitor.cc.
References bField, edm::EventSetup::get(), edm::Event::getByLabel(), isBFieldOff_, muon::isGoodMuon(), measurementTrackerHandle, nCompatibleLayers, edm::ESHandle< class >::product(), muonTagProbeFilters_cff::staTracks, testSTATracks(), testTrackerTracks(), theNavigation, thePropagator, theSTATracksLabel_, theTKTracksLabel_, theTracker, theTTrackBuilder, and trackEfficiency_.
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 80 of file TrackEfficiencyMonitor.cc.
References DQMStore::book1D(), conf_, deltaX, deltaY, dqmStore_, edm::ParameterSet::getParameter(), histname, muonCompatibleLayers, muonD0, muonEta, muonPhi, muonX, muonY, muonZ, MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), signDeltaX, signDeltaY, trackCompatibleLayers, trackD0, trackEta, trackPhi, trackX, trackY, and trackZ.
TrackEfficiencyMonitor::SemiCylinder TrackEfficiencyMonitor::checkSemiCylinder | ( | const Track & | tk | ) |
Definition at line 580 of file TrackEfficiencyMonitor.cc.
References Down, reco::Track::innerPosition(), and Up.
Referenced by testSTATracks(), and testTrackerTracks().
int TrackEfficiencyMonitor::compatibleLayers | ( | TrajectoryStateOnSurface | theTSOS | ) |
Definition at line 638 of file TrackEfficiencyMonitor.cc.
References alongMomentum, findDetLayer, findNextLayer(), TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), gen::k, measurementTrackerHandle, DetLayer::nextLayers(), Propagator::propagate(), Propagator::setPropagationDirection(), GeometricSearchDet::surface(), thePropagator, trackCompatibleLayers, and PV3DBase< T, PVType, FrameType >::y().
Referenced by testTrackerTracks().
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 332 of file TrackEfficiencyMonitor.cc.
References conf_, dqmStore_, edm::ParameterSet::getParameter(), dumpDBToFile_GT_ttrig_cfg::outputFileName, DQMStore::save(), and DQMStore::showDirStructure().
std::pair< TrajectoryStateOnSurface, const DetLayer * > TrackEfficiencyMonitor::findNextLayer | ( | TrajectoryStateOnSurface | startTSOS, |
std::vector< const DetLayer * > | trackCompatibleLayers, | ||
bool | isUpMuon | ||
) |
Definition at line 715 of file TrackEfficiencyMonitor.cc.
References alongMomentum, findDetLayer, TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::isValid(), Propagator::propagate(), Propagator::setPropagationDirection(), and thePropagator.
Referenced by compatibleLayers().
void TrackEfficiencyMonitor::testSTATracks | ( | edm::Handle< TrackCollection > | tkTracks, |
edm::Handle< TrackCollection > | staTracks | ||
) |
Definition at line 489 of file TrackEfficiencyMonitor.cc.
References checkSemiCylinder(), PV3DBase< T, PVType, FrameType >::eta(), eta(), failedToPropagate, MonitorElement::Fill(), TrajectoryStateOnSurface::globalDirection(), TrajectoryStateOnSurface::globalPosition(), reco::TransientTrack::impactPointState(), reco::TransientTrack::innermostMeasurementState(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localPosition(), muonD0, muonEta, muonPhi, muonX, muonY, muonZ, reco::TransientTrack::outermostMeasurementState(), phi, PV3DBase< T, PVType, FrameType >::phi(), funct::pow(), TrajectoryStateOnSurface::surface(), thePropagator, theTTrackBuilder, trackD0, trackEta, trackPhi, trackX, trackY, trackZ, Up, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyze().
void TrackEfficiencyMonitor::testTrackerTracks | ( | edm::Handle< TrackCollection > | tkTracks, |
edm::Handle< TrackCollection > | staTracks | ||
) |
Definition at line 349 of file TrackEfficiencyMonitor.cc.
References checkSemiCylinder(), compatibleLayers(), deltaX, deltaY, PV3DBase< T, PVType, FrameType >::eta(), eta(), failedToPropagate, MonitorElement::Fill(), TrajectoryStateOnSurface::globalDirection(), TrajectoryStateOnSurface::globalPosition(), i, reco::TransientTrack::impactPointState(), reco::TransientTrack::innermostMeasurementState(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), metname, muonCompatibleLayers, muonD0, muonEta, muonPhi, muonX, muonY, muonZ, nCompatibleLayers, reco::TransientTrack::outermostMeasurementState(), phi, PV3DBase< T, PVType, FrameType >::phi(), LocalTrajectoryError::positionError(), funct::pow(), signDeltaX, signDeltaY, TrajectoryStateOnSurface::surface(), theMaxZ_, thePropagator, theRadius_, theTTrackBuilder, trackCompatibleLayers, trackD0, trackerAcceptance(), trackEta, trackPhi, trackX, trackY, trackZ, Up, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyze().
bool TrackEfficiencyMonitor::trackerAcceptance | ( | TrajectoryStateOnSurface | theTSOS, |
double | theRadius, | ||
double | theMaxZ | ||
) |
Definition at line 589 of file TrackEfficiencyMonitor.cc.
References accept(), alongMomentum, Cylinder::build(), TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), oppositeToMomentum, Propagator::propagate(), Propagator::setPropagationDirection(), thePropagator, PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by testTrackerTracks().
|
private |
Definition at line 112 of file TrackEfficiencyMonitor.h.
Referenced by analyze().
|
private |
Definition at line 68 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), endJob(), and TrackEfficiencyMonitor().
|
private |
Definition at line 99 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), and testTrackerTracks().
|
private |
Definition at line 100 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), and testTrackerTracks().
|
private |
Definition at line 67 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), endJob(), and TrackEfficiencyMonitor().
|
private |
Definition at line 79 of file TrackEfficiencyMonitor.h.
Referenced by testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 81 of file TrackEfficiencyMonitor.h.
Referenced by compatibleLayers(), and findNextLayer().
|
private |
Definition at line 65 of file TrackEfficiencyMonitor.h.
Referenced by beginJob().
|
private |
Definition at line 72 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and TrackEfficiencyMonitor().
|
private |
Definition at line 114 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and compatibleLayers().
|
private |
Definition at line 89 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), and testTrackerTracks().
|
private |
Definition at line 88 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 86 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 87 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 83 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 84 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 85 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 80 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and testTrackerTracks().
|
private |
Definition at line 101 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), and testTrackerTracks().
|
private |
Definition at line 102 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), and testTrackerTracks().
|
private |
Definition at line 107 of file TrackEfficiencyMonitor.h.
|
private |
Definition at line 71 of file TrackEfficiencyMonitor.h.
Referenced by testTrackerTracks(), and TrackEfficiencyMonitor().
|
private |
Definition at line 105 of file TrackEfficiencyMonitor.h.
|
private |
Definition at line 104 of file TrackEfficiencyMonitor.h.
Referenced by analyze().
|
private |
Definition at line 108 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), compatibleLayers(), findNextLayer(), testSTATracks(), testTrackerTracks(), and trackerAcceptance().
|
private |
Definition at line 109 of file TrackEfficiencyMonitor.h.
|
private |
Definition at line 70 of file TrackEfficiencyMonitor.h.
Referenced by testTrackerTracks(), and TrackEfficiencyMonitor().
|
private |
Definition at line 77 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and TrackEfficiencyMonitor().
|
private |
Definition at line 76 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and TrackEfficiencyMonitor().
|
private |
Definition at line 111 of file TrackEfficiencyMonitor.h.
Referenced by analyze().
|
private |
Definition at line 110 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 97 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), compatibleLayers(), and testTrackerTracks().
|
private |
Definition at line 96 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 73 of file TrackEfficiencyMonitor.h.
Referenced by analyze(), and TrackEfficiencyMonitor().
|
private |
Definition at line 94 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 95 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 91 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 92 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().
|
private |
Definition at line 93 of file TrackEfficiencyMonitor.h.
Referenced by beginJob(), testSTATracks(), and testTrackerTracks().