CMS 3D CMS Logo

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;
48  ~TrackEfficiencyMonitor() override;
49  void beginJob(void) override;
50  void endJob(void) override;
51  void analyze(const edm::Event&, const edm::EventSetup&) override;
52 
53  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
54 
55  enum SemiCylinder{Up,Down};
56  std::pair<TrajectoryStateOnSurface, const DetLayer*> findNextLayer( TrajectoryStateOnSurface startTSOS, const std::vector< const DetLayer*>& trackCompatibleLayers , bool isUpMuon );
57  SemiCylinder checkSemiCylinder(const Track&);
58  void testTrackerTracks(edm::Handle<TrackCollection> tkTracks, edm::Handle<TrackCollection> staTracks, const NavigationSchool& navigationSchool);
59  void testSTATracks(edm::Handle<TrackCollection> tkTracks, edm::Handle<TrackCollection> staTracks);
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
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ESHandle< GeometricSearchTracker > theTracker
edm::ESHandle< GeometricSearchTracker > theGeometricSearchTracker
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:15
reco::TrackCollection TrackCollection
void beginJob()
Definition: Breakpoints.cc:15
MonitorElement * muonCompatibleLayers
edm::ESHandle< MeasurementTracker > measurementTrackerHandle
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
MuonServiceProxy * theMuonServiceProxy
edm::EDGetTokenT< reco::TrackCollection > theTKTracksToken_
edm::ESHandle< Propagator > thePropagatorCyl
edm::ESHandle< Propagator > thePropagator
edm::ESHandle< TransientTrackBuilder > theTTrackBuilder
const DirectTrackerNavigation * theNavigation
fixed size matrix
MonitorElement * trackCompatibleLayers
edm::EDGetTokenT< reco::TrackCollection > theSTATracksToken_
Definition: Run.h:44