DAS  3.0
Das Analysis System
ControlPlots.h
Go to the documentation of this file.
1 #ifndef DAS_CONTROL_PLOT
2 #define DAS_CONTROL_PLOT
3 
4 #include <vector>
5 #include <optional>
6 
7 #include <TH1.h>
8 #include <TH2.h>
9 #include <TH3.h>
10 #include <TDirectory.h>
11 #include <TString.h>
12 
14 
15 namespace DAS {
16 
17 struct ControlPlots {
18 
19  static bool isMC;
20  static bool verbose;
21 
22  const TString name;
23 
24  std::optional<TH1F> genpt, recpt;
25  std::optional<TH2F> genpt_y, recpt_y;
26  std::optional<TH2F> genMjj_y, recMjj_y;
27  std::optional<TH3F> genMjj_ysyb, recMjj_ysyb;
28  std::optional<TH3F> genptav_ysyb, recptav_ysyb;
29  std::optional<TH2F> genpt0_N, recpt0_N;
30  std::optional<TH2F> genpt_n, recpt_n;
34 
35  ControlPlots (TString Name);
36 
37  void operator()
38  (const std::vector<RecJet>& recjets,
39  const double& evW,
40  size_t iJEC = 0,
41  size_t iWgt = 0);
42 
43  void operator()
44  (const std::vector<GenJet>& genjets,
45  const double& evW,
46  size_t iWgt = 0);
47 
48  void Write (TDirectory * D);
49 };
50 
51 }
52 #endif
DAS
Definition: applyBTagSF.cc:31
DAS::ControlPlots::genMjj_y
std::optional< TH2F > genMjj_y
Definition: ControlPlots.h:26
DAS::ControlPlots::recpt
std::optional< TH1F > recpt
Definition: ControlPlots.h:24
DAS::ControlPlots::genptav_ysyb
std::optional< TH3F > genptav_ysyb
Definition: ControlPlots.h:28
DAS::ControlPlots
Definition: ControlPlots.h:17
DAS::ControlPlots::ControlPlots
ControlPlots(TString Name)
Definition: ControlPlots.cc:11
DAS::ControlPlots::genpt_y
std::optional< TH2F > genpt_y
Definition: ControlPlots.h:25
DAS::ControlPlots::Write
void Write(TDirectory *D)
Definition: ControlPlots.cc:118
DAS::ControlPlots::genMjj_ysyb
std::optional< TH3F > genMjj_ysyb
Definition: ControlPlots.h:27
Jet.h
DAS::ControlPlots::recpt_y
std::optional< TH2F > recpt_y
Definition: ControlPlots.h:25
DAS::ControlPlots::verbose
static bool verbose
Definition: ControlPlots.h:20
Ntupliser_cfg.genjets
genjets
Definition: Ntupliser_cfg.py:268
DAS::ControlPlots::genpt
std::optional< TH1F > genpt
Definition: ControlPlots.h:24
DAS::ControlPlots::recpt0_N
std::optional< TH2F > recpt0_N
Definition: ControlPlots.h:29
DAS::ControlPlots::isMC
static bool isMC
Definition: ControlPlots.h:19
DAS::ControlPlots::genpt0_N
std::optional< TH2F > genpt0_N
Definition: ControlPlots.h:29
Ntupliser_cfg.recjets
recjets
Definition: Ntupliser_cfg.py:269
DAS::ControlPlots::recMjj_ysyb
std::optional< TH3F > recMjj_ysyb
Definition: ControlPlots.h:27
DAS::ControlPlots::genpt_n
std::optional< TH2F > genpt_n
Definition: ControlPlots.h:30
DAS::ControlPlots::recptav_ysyb
std::optional< TH3F > recptav_ysyb
Definition: ControlPlots.h:28
DAS::ControlPlots::name
const TString name
Definition: ControlPlots.h:22
DAS::ControlPlots::recpt_n
std::optional< TH2F > recpt_n
Definition: ControlPlots.h:30
DAS::ControlPlots::recMjj_y
std::optional< TH2F > recMjj_y
Definition: ControlPlots.h:26