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 
29 
32 
34 
35 #include <memory>
36 #include <iostream>
37 #include <fstream>
38 #include <string>
39 #include <vector>
40 #include <map>
41 
42 class DTGeometry;
43 class DTChamberId;
44 class DTLayerId;
45 
47 public:
50 
52  ~DTRunConditionVarClient() override;
53 
54  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
55 
56 protected:
58 
60 
62  std::string histoType,
63  std::string subfolder,
64  int wh,
65  int nbins,
66  float min,
67  float max,
68  bool isVDCorr = false);
69 
73  edm::LuminosityBlock const&,
74  edm::EventSetup const&) override;
75 
76  float varQuality(float var, float maxGood, float minBad);
77  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
78 
79 private:
81 
82  int nevents;
83 
86  float minRangeT0;
87  float maxRangeT0;
88 
91  float maxGoodT0;
92  float minBadT0;
93 
98 
101 
103 
106 
107  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
108  std::map<std::string, MonitorElement*> summaryHistos;
109  std::map<std::string, MonitorElement*> allwheelHistos;
110 };
111 
112 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTRunConditionVarClient::maxGoodT0Sigma
float maxGoodT0Sigma
Definition: DTRunConditionVarClient.h:96
Handle.h
DTMtime.h
DTRunConditionVarClient::maxRangeT0
float maxRangeT0
Definition: DTRunConditionVarClient.h:87
DTRunConditionVarClient::bookingdone
bool bookingdone
Definition: DTRunConditionVarClient.h:102
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:109
LuminosityBlock.h
DTRunConditionVarClient::minBadT0Sigma
float minBadT0Sigma
Definition: DTRunConditionVarClient.h:97
DTRunConditionVarClient::varQuality
float varQuality(float var, float maxGood, float minBad)
Definition: DTRunConditionVarClient.cc:234
DTRunConditionVarClient::minRangeVDrift
float minRangeVDrift
Definition: DTRunConditionVarClient.h:84
DTRunConditionVarClient::glbVDriftSummary
MonitorElement * glbVDriftSummary
Definition: DTRunConditionVarClient.h:104
DQMStore.h
DTRunConditionVarClient::maxGoodVDriftDev
float maxGoodVDriftDev
Definition: DTRunConditionVarClient.h:89
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
DTMtime
Definition: DTMtime.h:68
EDAnalyzer.h
DTRunConditionVarClient::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTRunConditionVarClient.cc:73
DTRunConditionVarClient::minBadT0
float minBadT0
Definition: DTRunConditionVarClient.h:92
DTRunConditionVarClient::summaryHistos
std::map< std::string, MonitorElement * > summaryHistos
Definition: DTRunConditionVarClient.h:108
DTRunConditionVarClient::maxGoodVDriftSigma
float maxGoodVDriftSigma
Definition: DTRunConditionVarClient.h:94
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
DTRunConditionVarClient
Definition: DTRunConditionVarClient.h:46
MakerMacros.h
DTRunConditionVarClient::minBadVDriftSigma
float minBadVDriftSigma
Definition: DTRunConditionVarClient.h:95
Service.h
DTRunConditionVarClient::minRangeT0
float minRangeT0
Definition: DTRunConditionVarClient.h:86
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:82
edm::ESHandle< DTMtime >
DTRunConditionVarClient::getChamberHistos
MonitorElement * getChamberHistos(DQMStore::IGetter &, const DTChamberId &, std::string)
Definition: DTRunConditionVarClient.cc:313
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
DTRunConditionVarClient::mTime
edm::ESHandle< DTMtime > mTime
Definition: DTRunConditionVarClient.h:99
DTRunConditionVarClient::mTimeMap_
const DTMtime * mTimeMap_
Definition: DTRunConditionVarClient.h:100
DTRunConditionVarClient::bookWheelHistos
void bookWheelHistos(DQMStore::IBooker &, std::string histoType, std::string subfolder, int wh, int nbins, float min, float max, bool isVDCorr=false)
book the report summary
Definition: DTRunConditionVarClient.cc:272
DTLayerId
Definition: DTLayerId.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTRunConditionVarClient::DTRunConditionVarClient
DTRunConditionVarClient(const edm::ParameterSet &ps)
Constructor.
Definition: DTRunConditionVarClient.cc:34
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
DTRunConditionVarClient::maxRangeVDrift
float maxRangeVDrift
Definition: DTRunConditionVarClient.h:85
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
DTRunConditionVarClient::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
Definition: DTRunConditionVarClient.cc:61
DTRunConditionVarClient::glbT0Summary
MonitorElement * glbT0Summary
Definition: DTRunConditionVarClient.h:105
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DQMEDHarvester
Definition: DQMEDHarvester.py:1
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
DTRunConditionVarClient::wheelHistos
std::map< int, std::map< std::string, MonitorElement * > > wheelHistos
Definition: DTRunConditionVarClient.h:107
DTRunConditionVarClient::minBadVDriftDev
float minBadVDriftDev
Definition: DTRunConditionVarClient.h:90
DTRunConditionVarClient::~DTRunConditionVarClient
~DTRunConditionVarClient() override
Destructor.
Definition: DTRunConditionVarClient.cc:57
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTChamberId
Definition: DTChamberId.h:14
ParameterSet.h
DTRunConditionVarClient::maxGoodT0
float maxGoodT0
Definition: DTRunConditionVarClient.h:91
DTRunConditionVarClient::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
Definition: DTRunConditionVarClient.cc:68