CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MonitorTrackResiduals.h
Go to the documentation of this file.
1 #ifndef MonitorTrackResiduals_H
2 #define MonitorTrackResiduals_H
3 
4 // -*- C++ -*-
5 //
6 // Package: TrackerMonitorTrack
7 // Class: MonitorTrackResiduals
8 //
13 // Original Author: Israel Goitom
14 // Created: Fri May 26 14:12:01 CEST 2006
15 // Author: Marcel Schneider
16 // Extended to Pixel Residuals.
32 
33 #include <fstream>
34 #include <memory>
35 
37 namespace edm {
38  class Event;
39 }
40 
42 
43 template <TrackerType pixel_or_strip>
45 public:
46  // constructors and EDAnalyzer Methods
48  ~MonitorTrackResidualsBase() override;
49  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
50  void analyze(const edm::Event &, const edm::EventSetup &) override;
51  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
52 
53 private:
54  // Own methods
56  std::pair<std::string, int32_t> findSubdetAndLayer(uint32_t ModuleID, const TrackerTopology *tTopo);
57 
58  struct HistoPair {
60  base = nullptr;
61  normed = nullptr;
62  };
65  };
66  struct HistoXY {
69  };
70  typedef std::map<std::pair<std::string, int32_t>, HistoXY> HistoSet;
71 
74  std::unique_ptr<TkHistoMap> tkhisto_ResidualsMean;
75 
79 
84 
85  unsigned long long m_cacheID_;
86  bool ModOn;
88 
91 };
92 
93 // Naming is for legacy reasons.
96 
97 #endif
std::map< std::pair< std::string, int32_t >, HistoXY > HistoSet
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyEventToken_
TrackerValidationVariables avalidator_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyRunToken_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::EDGetTokenT< reco::VertexCollection > offlinePrimaryVerticesToken_
std::unique_ptr< TkHistoMap > tkhisto_ResidualsMean
MonitorTrackResidualsBase< TRACKERTYPE_STRIP > MonitorTrackResiduals
MonitorTrackResidualsBase< TRACKERTYPE_PIXEL > SiPixelMonitorTrackResiduals
MonitorTrackResidualsBase(const edm::ParameterSet &)
GenericTriggerEventFlag * genTriggerEventFlag_
void createMEs(DQMStore::IBooker &, const edm::EventSetup &)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
std::pair< std::string, int32_t > findSubdetAndLayer(uint32_t ModuleID, const TrackerTopology *tTopo)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: Run.h:45