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  bool makeRings = false);
70 
74  edm::LuminosityBlock const&,
75  edm::EventSetup const&) override;
76 
77  float varQuality(float var, float maxGood, float minBad);
78  void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float& devVD, float& errdevVD);
79 
80 private:
82 
83  int nevents;
84 
87  float minRangeT0;
88  float maxRangeT0;
89 
92  float maxGoodT0;
93  float minBadT0;
94 
99 
102 
104 
107 
108  std::map<int, std::map<std::string, MonitorElement*> > wheelHistos;
109  std::map<int, std::map<int, std::map<std::string, MonitorElement*> > > wheelRingHistos;
110  std::map<std::string, MonitorElement*> summaryHistos;
111  std::map<std::string, MonitorElement*> allwheelHistos;
112 };
113 
114 #endif
DQMEDHarvester.h
DTGeometry
Definition: DTGeometry.h:28
DTRunConditionVarClient::maxGoodT0Sigma
float maxGoodT0Sigma
Definition: DTRunConditionVarClient.h:97
Handle.h
DTMtime.h
DTRunConditionVarClient::maxRangeT0
float maxRangeT0
Definition: DTRunConditionVarClient.h:88
DTRunConditionVarClient::bookingdone
bool bookingdone
Definition: DTRunConditionVarClient.h:103
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:111
LuminosityBlock.h
DTRunConditionVarClient::minBadT0Sigma
float minBadT0Sigma
Definition: DTRunConditionVarClient.h:98
DTRunConditionVarClient::varQuality
float varQuality(float var, float maxGood, float minBad)
Definition: DTRunConditionVarClient.cc:235
DTRunConditionVarClient::minRangeVDrift
float minRangeVDrift
Definition: DTRunConditionVarClient.h:85
DTRunConditionVarClient::glbVDriftSummary
MonitorElement * glbVDriftSummary
Definition: DTRunConditionVarClient.h:105
DQMStore.h
DTRunConditionVarClient::maxGoodVDriftDev
float maxGoodVDriftDev
Definition: DTRunConditionVarClient.h:90
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:93
DTRunConditionVarClient::summaryHistos
std::map< std::string, MonitorElement * > summaryHistos
Definition: DTRunConditionVarClient.h:110
DTRunConditionVarClient::maxGoodVDriftSigma
float maxGoodVDriftSigma
Definition: DTRunConditionVarClient.h:95
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
DTRunConditionVarClient
Definition: DTRunConditionVarClient.h:46
MakerMacros.h
DTRunConditionVarClient::wheelRingHistos
std::map< int, std::map< int, std::map< std::string, MonitorElement * > > > wheelRingHistos
Definition: DTRunConditionVarClient.h:109
DTRunConditionVarClient::minBadVDriftSigma
float minBadVDriftSigma
Definition: DTRunConditionVarClient.h:96
Service.h
DTRunConditionVarClient::minRangeT0
float minRangeT0
Definition: DTRunConditionVarClient.h:87
DTRunConditionVarClient::percDevVDrift
void percDevVDrift(DTChamberId indexCh, float meanVD, float sigmaVD, float &devVD, float &errdevVD)
Definition: DTRunConditionVarClient.cc:248
DTRunConditionVarClient::nevents
int nevents
Definition: DTRunConditionVarClient.h:83
edm::ESHandle< DTMtime >
DTRunConditionVarClient::getChamberHistos
MonitorElement * getChamberHistos(DQMStore::IGetter &, const DTChamberId &, std::string)
Definition: DTRunConditionVarClient.cc:333
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
DTRunConditionVarClient::mTime
edm::ESHandle< DTMtime > mTime
Definition: DTRunConditionVarClient.h:100
DTRunConditionVarClient::mTimeMap_
const DTMtime * mTimeMap_
Definition: DTRunConditionVarClient.h:101
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:47
Event.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
DTRunConditionVarClient::maxRangeVDrift
float maxRangeVDrift
Definition: DTRunConditionVarClient.h:86
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:273
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:106
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:108
DTRunConditionVarClient::minBadVDriftDev
float minBadVDriftDev
Definition: DTRunConditionVarClient.h:91
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:92
DTRunConditionVarClient::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
DQM Client Diagnostic.
Definition: DTRunConditionVarClient.cc:68