1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#ifndef DTLocalTriggerSynchTest_H
#define DTLocalTriggerSynchTest_H
/** \class DTLocalTriggerSynchTest
* *
* DQM Test Client
*
* \author C. Battilana - CIEMAT
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my
*
*
*/
#include "DQM/DTMonitorClient/src/DTLocalTriggerBaseTest.h"
#include "CondFormats/DTObjects/interface/DTTPGParameters.h"
#include "CondFormats/DataRecord/interface/DTTPGParametersRcd.h"
class DTTrigGeomUtils;
class DTLocalTriggerSynchTest : public DTLocalTriggerBaseTest {
public:
/// Constructor
DTLocalTriggerSynchTest(const edm::ParameterSet &ps);
/// Destructor
~DTLocalTriggerSynchTest() override;
protected:
/// Book the new MEs (for each chamber)
void bookChambHistos(DQMStore::IBooker &, DTChamberId chambId, std::string htype, std::string subfolder = "");
/// Compute efficiency plots
void makeRatioME(TH1F *numerator, TH1F *denominator, MonitorElement *result);
/// Get float MEs
float getFloatFromME(DQMStore::IGetter &, DTChamberId chId, std::string meType);
/// begin Run
void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
/// DQM Client Diagnostic
void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &) override;
void dqmEndLuminosityBlock(DQMStore::IBooker &,
DQMStore::IGetter &,
edm::LuminosityBlock const &,
edm::EventSetup const &) override;
private:
std::map<uint32_t, std::map<std::string, MonitorElement *> > chambME;
std::string numHistoTag;
std::string denHistoTag;
std::string ratioHistoTag;
double bxTime;
bool rangeInBX;
int nBXLow;
int nBXHigh;
int minEntries;
bool writeDB;
edm::ESGetToken<DTTPGParameters, DTTPGParametersRcd> wPhaseMapToken_;
const DTTPGParameters *wPhaseMap;
bool bookingdone;
};
#endif
|