CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackEfficiencyMonitor.h
Go to the documentation of this file.
1 #ifndef TrackEfficiencyMonitor_H
2 #define TrackEfficiencyMonitor_H
3 // -*- C++ -*-
4 //
5 // Package: TrackEfficiencyMonitor
6 // Class: TrackEfficiencyMonitor
7 //
11 // Original Author: Jeremy Andrea
12 // Insertion in DQM: Anne-Catherine Le Bihan
13 // Created: Thu 28 22:45:30 CEST 2008
14 
15 #include <memory>
16 #include <fstream>
25 
27 
32 
33 
34 
35 
36 
37 
38 namespace reco{class TransientTrack;}
39 class NavigationSchool;
40 
41 class DQMStore;
42 
44  public:
45  typedef reco::Track Track;
49  virtual void beginJob(void);
50  virtual void endJob(void);
51  virtual void analyze(const edm::Event&, const edm::EventSetup&);
52 
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54 
56  std::pair<TrajectoryStateOnSurface, const DetLayer*> findNextLayer( TrajectoryStateOnSurface startTSOS, const std::vector< const DetLayer*>& trackCompatibleLayers , bool isUpMuon );
60  bool trackerAcceptance( TrajectoryStateOnSurface theTSOS, double theRadius, double theMaxZ );
61  int compatibleLayers(const NavigationSchool& navigationSchool, TrajectoryStateOnSurface theTSOS );
62 
63 
64 
65  private:
66 
67  // ----------member data ---------------------------
68 
69 
70  std::string histname; //for naming the histograms
71 
74 
75  double theRadius_;
76  double theMaxZ_;
78  bool trackEfficiency_;//1 if one wants to measure the tracking efficiency
79  //0 if one wants to measure the muon reco efficiency
80 
85 
86 
90 
98 
106 
111 
114 
121 
123 
124 };
125 #endif
edm::ESHandle< MagneticField > bField
edm::ESHandle< GeometricSearchTracker > theTracker
edm::ESHandle< GeometricSearchTracker > theGeometricSearchTracker
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:13
reco::TrackCollection TrackCollection
void testTrackerTracks(edm::Handle< TrackCollection > tkTracks, edm::Handle< TrackCollection > staTracks, const NavigationSchool &navigationSchool)
MonitorElement * muonCompatibleLayers
edm::ESHandle< MeasurementTracker > measurementTrackerHandle
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MuonServiceProxy * theMuonServiceProxy
edm::EDGetTokenT< reco::TrackCollection > theTKTracksToken_
edm::ESHandle< Propagator > thePropagatorCyl
edm::ESHandle< Propagator > thePropagator
std::pair< TrajectoryStateOnSurface, const DetLayer * > findNextLayer(TrajectoryStateOnSurface startTSOS, const std::vector< const DetLayer * > &trackCompatibleLayers, bool isUpMuon)
edm::ESHandle< TransientTrackBuilder > theTTrackBuilder
const DirectTrackerNavigation * theNavigation
bool trackerAcceptance(TrajectoryStateOnSurface theTSOS, double theRadius, double theMaxZ)
int compatibleLayers(const NavigationSchool &navigationSchool, TrajectoryStateOnSurface theTSOS)
TrackEfficiencyMonitor(const edm::ParameterSet &)
SemiCylinder checkSemiCylinder(const Track &)
MonitorElement * trackCompatibleLayers
void testSTATracks(edm::Handle< TrackCollection > tkTracks, edm::Handle< TrackCollection > staTracks)
edm::EDGetTokenT< reco::TrackCollection > theSTATracksToken_
Definition: Run.h:41