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
|
#ifndef TriggerMatchEfficiencyPlotter_H
#define TriggerMatchEfficiencyPlotter_H
/** \class TriggerMatch monitor
* *
* * DQM monitoring source for Trigger matching efficiency plotter feature added to miniAOD
* *
* * \author Bibhuprasad Mahakud (Purdue University, West Lafayette, USA)
* */
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"
#include "DataFormats/Common/interface/Handle.h"
#include <FWCore/Framework/interface/ESHandle.h>
#include <FWCore/Framework/interface/Event.h>
#include <FWCore/Framework/interface/MakerMacros.h>
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <FWCore/Framework/interface/LuminosityBlock.h>
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Framework/interface/Run.h"
#include <memory>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include "TH1F.h"
class TriggerMatchEfficiencyPlotter : public DQMEDHarvester {
public:
/// Constructor
TriggerMatchEfficiencyPlotter(const edm::ParameterSet& ps);
/// Destructor
~TriggerMatchEfficiencyPlotter() override;
protected:
/// DQM Client Diagnostic
void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override; //performed in the endJob
private:
edm::ParameterSet parameters;
std::string triggerhistName1_;
std::string triggerhistName2_;
// efficiency histograms
MonitorElement* h_eff_Path1_eta_tight;
MonitorElement* h_eff_Path1_pt_tight;
MonitorElement* h_eff_Path1_phi_tight;
MonitorElement* h_eff_Path2_eta_tight;
MonitorElement* h_eff_Path2_pt_tight;
MonitorElement* h_eff_Path2_phi_tight;
std::string theFolder;
};
#endif
|