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
73
74
75
76
77
78
79
|
#ifndef L1TdeStage2uGT_H
#define L1TdeStage2uGT_H
// system include files
#include <memory>
#include <string>
#include <array>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
// #include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DataFormats/L1TGlobal/interface/GlobalAlgBlk.h"
// #include "DataFormats/Provenance/interface/EventAuxiliary.h"
#include "CondFormats/RunInfo/interface/RunInfo.h"
#include "CondFormats/DataRecord/interface/RunSummaryRcd.h"
#include "L1Trigger/L1TGlobal/interface/L1TGlobalUtil.h"
#include "FWCore/Utilities/interface/RegexMatch.h"
class L1TdeStage2uGT : public DQMEDAnalyzer {
public:
L1TdeStage2uGT(const edm::ParameterSet& ps);
~L1TdeStage2uGT() override;
protected:
void analyze(const edm::Event& e, const edm::EventSetup& c) override;
void bookHistograms(DQMStore::IBooker& ibooker, const edm::Run&, const edm::EventSetup&) override;
private:
// Input and config info
edm::InputTag dataLabel_;
edm::EDGetTokenT<GlobalAlgBlkBxCollection> dataSource_;
edm::InputTag emulLabel_;
edm::EDGetTokenT<GlobalAlgBlkBxCollection> emulSource_;
std::vector<std::string> triggerBlackList_;
int numBx_;
std::string histFolder_;
l1t::L1TGlobalUtil gtUtil_;
int numLS_;
uint m_currentLumi;
uint m_currentRun;
int firstBx, lastBx;
std::map<std::string, MonitorElement*> m_HistNamesInitial, m_HistNamesFinal, m_SummaryHistograms;
MonitorElement* initDecisionMismatchesDnoE_vs_LS;
MonitorElement* initDecisionMismatchesEnoD_vs_LS;
MonitorElement* finalDecisionMismatchesDnoE_vs_LS;
MonitorElement* finalDecisionMismatchesEnoD_vs_LS;
MonitorElement* m_normalizationHisto;
enum SummaryColumn {
NInitalMismatchDataNoEmul,
NInitalMismatchEmulNoData,
NFinalMismatchDataNoEmul,
NFinalMismatchEmulNoData,
NSummaryColumns,
};
void fillHist(const std::map<std::string, MonitorElement*>&, const std::string&, const Double_t&, const Double_t&);
};
#endif
|