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.
33 
34 #include <fstream>
35 #include <memory>
36 
38 namespace edm {
39  class Event;
40 }
41 
43 
44 template <TrackerType pixel_or_strip>
46 public:
47  // constructors and EDAnalyzer Methods
49  ~MonitorTrackResidualsBase() override;
50  void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override;
51  void analyze(const edm::Event &, const edm::EventSetup &) override;
52  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
53 
54 private:
55  // Own methods
57  std::pair<std::string, int32_t> findSubdetAndLayer(uint32_t ModuleID, const TrackerTopology *tTopo);
58 
59  struct HistoPair {
61  base = nullptr;
62  normed = nullptr;
63  };
66  };
67  struct HistoXY {
70  };
71  typedef std::map<std::pair<std::string, int32_t>, HistoXY> HistoSet;
72 
75  std::unique_ptr<TkHistoMap> tkhisto_ResidualsMean;
76 
80 
85 
86  unsigned long long m_cacheID_;
87  bool ModOn;
89 
92 };
93 
94 // Naming is for legacy reasons.
97 
98 #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