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 
34 
35 
36 
37 
38 
39 
40 namespace reco{class TransientTrack;}
41 class NavigationSchool;
42 
43 class DQMStore;
44 
46  public:
47  typedef reco::Track Track;
50  ~TrackEfficiencyMonitor() override;
51  void beginJob(void) override;
52  void endJob(void) override;
53  void analyze(const edm::Event&, const edm::EventSetup&) override;
54 
55  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
56 
57  enum SemiCylinder{Up,Down};
58  std::pair<TrajectoryStateOnSurface, const DetLayer*> findNextLayer( TrajectoryStateOnSurface startTSOS, const std::vector< const DetLayer*>& trackCompatibleLayers , bool isUpMuon );
59  SemiCylinder checkSemiCylinder(const Track&);
60  void testTrackerTracks(edm::Handle<TrackCollection> tkTracks, edm::Handle<TrackCollection> staTracks, const NavigationSchool& navigationSchool);
61  void testSTATracks(edm::Handle<TrackCollection> tkTracks, edm::Handle<TrackCollection> staTracks);
62  bool trackerAcceptance( TrajectoryStateOnSurface theTSOS, double theRadius, double theMaxZ );
63  int compatibleLayers(const NavigationSchool& navigationSchool, TrajectoryStateOnSurface theTSOS );
64 
65 
66 
67  private:
68 
69  // ----------member data ---------------------------
70 
71 
72  std::string histname; //for naming the histograms
73 
76 
77  double theRadius_;
78  double theMaxZ_;
80  bool trackEfficiency_;//1 if one wants to measure the tracking efficiency
81  //0 if one wants to measure the muon reco efficiency
82 
87 
88 
92 
100 
108 
126 
128 
129 };
130 #endif
edm::ESHandle< MagneticField > bField
edm::ESHandle< GeometricSearchTracker > theTracker
edm::ESHandle< GeometricSearchTracker > theGeometricSearchTracker
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:15
MonitorElement * GlobalMuonPtEtaPhiHighPt
reco::TrackCollection TrackCollection
MonitorElement * GlobalMuonPtEtaPhiLowPt
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void beginJob()
Definition: Breakpoints.cc:14
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
MonitorElement * muonCompatibleLayers
edm::ESHandle< MeasurementTracker > measurementTrackerHandle
MonitorElement * StandaloneMuonPtEtaPhiLowPt
MuonServiceProxy * theMuonServiceProxy
edm::EDGetTokenT< reco::TrackCollection > theTKTracksToken_
edm::ESHandle< Propagator > thePropagatorCyl
edm::ESHandle< Propagator > thePropagator
edm::ESHandle< TransientTrackBuilder > theTTrackBuilder
MonitorElement * StandaloneMuonPtEtaPhiHighPt
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
const DirectTrackerNavigation * theNavigation
fixed size matrix
MonitorElement * trackCompatibleLayers
edm::EDGetTokenT< reco::TrackCollection > theSTATracksToken_
Definition: Run.h:45