CMS 3D CMS Logo

DTRunConditionVarClient.h
Go to the documentation of this file.
1 #ifndef DTMonitorClient_DTRunConditionVarClient_H
2 #define DTMonitorClient_DTRunConditionVarClient_H
3 
27 
30 
33 
35 
36 #include <memory>
37 #include <iostream>
38 #include <fstream>
39 #include <string>
40 #include <vector>
41 #include <map>
42 
43 class DTGeometry;
44 class DTChamberId;
45 class DTLayerId;
46 
48 public:
51 
53  ~DTRunConditionVarClient() override;
54 
55  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
56 
57 protected:
59 
61 
63  std::string histoType,
64  std::string subfolder,
65  int wh,
66  int nbins,
67  float min,
68  float max,
69  bool isVDCorr = false,
70  bool makeRings = false);
71 
75  edm::LuminosityBlock const&,
76  edm::EventSetup const&) override;
77 
78  float varQuality(float var, float maxGood, float minBad);
79  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
80 
81 private:
83 
84  int nevents;
85 
88  float minRangeT0;
89  float maxRangeT0;
90 
93  float maxGoodT0;
94  float minBadT0;
95 
100 
103 
105 
108 
109  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
110  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
111  std::map<std::string, MonitorElement*> summaryHistos;
112  std::map<std::string, MonitorElement*> allwheelHistos;
113 };
114 
115 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTRunConditionVarClient::maxGoodT0Sigma
float maxGoodT0Sigma
Definition: DTRunConditionVarClient.h:98
Handle.h
DTMtime.h
DTRunConditionVarClient::maxRangeT0
float maxRangeT0
Definition: DTRunConditionVarClient.h:89
DTRunConditionVarClient::bookingdone
bool bookingdone
Definition: DTRunConditionVarClient.h:104
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
min
T min(T a, T b)
Definition: MathUtil.h:58
DTRunConditionVarClient::allwheelHistos
std::map< std::string, MonitorElement * > allwheelHistos
Definition: DTRunConditionVarClient.h:112
LuminosityBlock.h
DTRunConditionVarClient::minBadT0Sigma
float minBadT0Sigma
Definition: DTRunConditionVarClient.h:99
DTRunConditionVarClient::varQuality
float varQuality(float var, float maxGood, float minBad)
Definition: DTRunConditionVarClient.cc:234
DTRunConditionVarClient::minRangeVDrift
float minRangeVDrift
Definition: DTRunConditionVarClient.h:86
DTRunConditionVarClient::glbVDriftSummary
MonitorElement * glbVDriftSummary
Definition: DTRunConditionVarClient.h:106
DQMStore.h
DTRunConditionVarClient::maxGoodVDriftDev
float maxGoodVDriftDev
Definition: DTRunConditionVarClient.h:91
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
DTMtime
Definition: DTMtime.h:68
EDAnalyzer.h
DTRunConditionVarClient::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTRunConditionVarClient.cc:72
DTRunConditionVarClient::minBadT0
float minBadT0
Definition: DTRunConditionVarClient.h:94
DTRunConditionVarClient::summaryHistos
std::map< std::string, MonitorElement * > summaryHistos
Definition: DTRunConditionVarClient.h:111
DTRunConditionVarClient::maxGoodVDriftSigma
float maxGoodVDriftSigma
Definition: DTRunConditionVarClient.h:96
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
DTRunConditionVarClient
Definition: DTRunConditionVarClient.h:47
MakerMacros.h
DTRunConditionVarClient::wheelRingHistos
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos
Definition: DTRunConditionVarClient.h:110
DTRunConditionVarClient::minBadVDriftSigma
float minBadVDriftSigma
Definition: DTRunConditionVarClient.h:97
Service.h
DTRunConditionVarClient::minRangeT0
float minRangeT0
Definition: DTRunConditionVarClient.h:88
DTRunConditionVarClient::percDevVDrift
void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float &devVD, float &errdevVD)
Definition: DTRunConditionVarClient.cc:247
DTRunConditionVarClient::nevents
int nevents
Definition: DTRunConditionVarClient.h:84
DTRunConditionVarClient::getChamberHistos
MonitorElement * getChamberHistos(DQMStore::IGetter &, const DTChamberId &, std::string)
Definition: DTRunConditionVarClient.cc:332
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
DTRunConditionVarClient::mTimeMap_
const DTMtime * mTimeMap_
Definition: DTRunConditionVarClient.h:102
DTLayerId
Definition: DTLayerId.h:12
DTRunConditionVarClient::DTRunConditionVarClient
DTRunConditionVarClient(const edm::ParameterSet &ps)
Constructor.
Definition: DTRunConditionVarClient.cc:33
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
DTMtimeRcd.h
DTRunConditionVarClient::maxRangeVDrift
float maxRangeVDrift
Definition: DTRunConditionVarClient.h:87
DTRunConditionVarClient::bookWheelHistos
void bookWheelHistos(DQMStore::IBooker &, std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false, bool makeRings=false)
book the report summary
Definition: DTRunConditionVarClient.cc:272
edm::EventSetup
Definition: EventSetup.h:58
DTRunConditionVarClient::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: DTRunConditionVarClient.cc:61
edm::ESGetToken< DTMtime, DTMtimeRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTRunConditionVarClient::glbT0Summary
MonitorElement * glbT0Summary
Definition: DTRunConditionVarClient.h:107
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DQMEDHarvester
Definition: DQMEDHarvester.py:1
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTRunConditionVarClient::mTimeMapToken_
edm::ESGetToken< DTMtime, DTMtimeRcd > mTimeMapToken_
Definition: DTRunConditionVarClient.h:101
DTRunConditionVarClient::wheelHistos
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
Definition: DTRunConditionVarClient.h:109
DTRunConditionVarClient::minBadVDriftDev
float minBadVDriftDev
Definition: DTRunConditionVarClient.h:92
DTRunConditionVarClient::~DTRunConditionVarClient
~DTRunConditionVarClient() override
Destructor.
Definition: DTRunConditionVarClient.cc:57
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
DTRunConditionVarClient::maxGoodT0
float maxGoodT0
Definition: DTRunConditionVarClient.h:93
DTRunConditionVarClient::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
Definition: DTRunConditionVarClient.cc:67