CMS 3D CMS Logo

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;
88 
91 };
92 
93 // Naming is for legacy reasons.
96 
97 #endif
TrackerValidationVariables.h
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
MonitorTrackResidualsBase::HistoPair::base
MonitorElement * base
Definition: MonitorTrackResiduals.h:63
MonitorTrackResidualsBase::findSubdetAndLayer
std::pair< std::string, int32_t > findSubdetAndLayer(uint32_t ModuleID, const TrackerTopology *tTopo)
Definition: MonitorTrackResiduals.cc:60
MonitorTrackResidualsBase::HistoPair
Definition: MonitorTrackResiduals.h:59
MonitorTrackResidualsBase::HistoXY
Definition: MonitorTrackResiduals.h:67
MonitorTrackResidualsBase::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: MonitorTrackResiduals.cc:36
TrackerGeometry.h
edm::Run
Definition: Run.h:45
MonitorTrackResidualsBase::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: MonitorTrackResiduals.cc:53
edm::EDGetTokenT< reco::VertexCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
MonitorTrackResidualsBase::m_cacheID_
unsigned long long m_cacheID_
Definition: MonitorTrackResiduals.h:86
TrackerTopology
Definition: TrackerTopology.h:16
MonitorTrackResidualsBase::HistoXY::y
HistoPair y
Definition: MonitorTrackResiduals.h:69
DQMStore.h
TrackerValidationVariables
Definition: TrackerValidationVariables.h:22
EDAnalyzer.h
MonitorTrackResidualsBase::avalidator_
TrackerValidationVariables avalidator_
Definition: MonitorTrackResiduals.h:90
TRACKERTYPE_STRIP
Definition: MonitorTrackResiduals.h:42
ESGetToken.h
MonitorTrackResidualsBase::m_SubdetLayerResiduals
HistoSet m_SubdetLayerResiduals
Definition: MonitorTrackResiduals.h:73
MonitorTrackResidualsBase::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: MonitorTrackResiduals.cc:231
MakerMacros.h
MonitorTrackResidualsBase::HistoSet
std::map< std::pair< std::string, int32_t >, HistoXY > HistoSet
Definition: MonitorTrackResiduals.h:71
TrackerTopology.h
MonitorTrackResidualsBase::Parameters
edm::ParameterSet Parameters
Definition: MonitorTrackResiduals.h:78
TrackerTopologyRcd.h
MonitorTrackResidualsBase
Definition: MonitorTrackResiduals.h:45
MonitorTrackResidualsBase::m_ModuleResiduals
HistoSet m_ModuleResiduals
Definition: MonitorTrackResiduals.h:74
MonitorTrackResidualsBase::MonitorTrackResidualsBase
MonitorTrackResidualsBase(const edm::ParameterSet &)
Definition: MonitorTrackResiduals.cc:15
SiPixelMonitorTrackResiduals
MonitorTrackResidualsBase< TRACKERTYPE_PIXEL > SiPixelMonitorTrackResiduals
Definition: MonitorTrackResiduals.h:95
Run.h
Event
MonitorTrackResidualsBase::ModOn
bool ModOn
Definition: MonitorTrackResiduals.h:87
TkHistoMap.h
DQMEDAnalyzer.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
MonitorTrackResiduals
MonitorTrackResidualsBase< TRACKERTYPE_STRIP > MonitorTrackResiduals
Definition: MonitorTrackResiduals.h:94
GenericTriggerEventFlag
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Definition: GenericTriggerEventFlag.h:42
MonitorTrackResidualsBase::tkDetMapToken_
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_
Definition: MonitorTrackResiduals.h:81
edm::EventSetup
Definition: EventSetup.h:58
MonitorTrackResidualsBase::offlinePrimaryVerticesToken_
edm::EDGetTokenT< reco::VertexCollection > offlinePrimaryVerticesToken_
Definition: MonitorTrackResiduals.h:79
edm::ESGetToken< TkDetMap, TrackerTopologyRcd >
MonitorTrackResidualsBase::HistoPair::HistoPair
HistoPair()
Definition: MonitorTrackResiduals.h:60
VertexFwd.h
MonitorTrackResidualsBase::conf_
edm::ParameterSet conf_
Definition: MonitorTrackResiduals.h:77
MonitorTrackResidualsBase::createMEs
void createMEs(DQMStore::IBooker &, const edm::EventSetup &)
Definition: MonitorTrackResiduals.cc:101
MonitorTrackResidualsBase::~MonitorTrackResidualsBase
~MonitorTrackResidualsBase() override
Definition: MonitorTrackResiduals.cc:30
MonitorTrackResidualsBase::tkhisto_ResidualsMean
std::unique_ptr< TkHistoMap > tkhisto_ResidualsMean
Definition: MonitorTrackResiduals.h:75
Frameworkfwd.h
MonitorTrackResidualsBase::trackerTopologyRunToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyRunToken_
Definition: MonitorTrackResiduals.h:82
MonitorTrackResidualsBase::trackerTopologyEventToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyEventToken_
Definition: MonitorTrackResiduals.h:84
MonitorTrackResidualsBase::HistoPair::normed
MonitorElement * normed
Definition: MonitorTrackResiduals.h:65
TkDetMap.h
TrackerType
TrackerType
Definition: MonitorTrackResiduals.h:42
dqm::implementation::IBooker
Definition: DQMStore.h:43
TRACKERTYPE_PIXEL
Definition: MonitorTrackResiduals.h:42
ParameterSet.h
MonitorTrackResidualsBase::genTriggerEventFlag_
GenericTriggerEventFlag * genTriggerEventFlag_
Definition: MonitorTrackResiduals.h:89
edm::Event
Definition: Event.h:73
MonitorTrackResidualsBase::HistoXY::x
HistoPair x
Definition: MonitorTrackResiduals.h:68
MonitorTrackResidualsBase::trackerGeometryToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
Definition: MonitorTrackResiduals.h:83