Structs.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "CAFAna/Core/Binning.h"
5 #include "CAFAna/Cuts/Cuts.h"
7 #include "CAFAna/Vars/Vars.h"
8 
13 
14 #include "NuXAna/Vars/NusVars.h"
16 #include "NuXAna/Cuts/NusCuts20.h"
17 #include "NuXAna/Cuts/NusCuts.h"
18 
19 struct CutContainer {
22  bool cutdata = true;
23 
25  {
26  cut = c;
27  name = n;
28  cutdata = cd;
29  }
30 
31 };
32 
33 enum CutSide {
38 };
39 
40 enum HistType {
44 };
45 
46 struct VarContainer {
51  std::vector<double> cuts = {0.};
52  CutSide cutside = kNeither;
53 
55  ana::Binning b, std::vector<double> c = {}, CutSide cs = kNeither)
56  {
57  var = v;
58  name = n;
59  label = l;
60  bins = b;
61  cuts = c;
62  cutside = cs;
63  }
64 
65 };
66 
70  std::string name = "";
71  std::string labelx = "";
72  std::string labely = "";
75  std::vector<double> cuts = {0.};
76  CutSide cutside = kNeither;
77 
79  ana::Binning bx, ana::Binning by, std::vector<double> c, CutSide cs)
80  {
81  varx = vx;
82  vary = vy;
83  name = n;
84  labelx = lx;
85  labely = ly;
86  binsx = bx;
87  binsy = by;
88  cuts = c;
89  cutside = cs;
90  }
91 
92 };
93 
98  std::string name = "";
99  std::string labelx = "";
100  std::string labely = "";
101  std::string labelz = "";
105  std::vector<double> cuts = {0.};
106  CutSide cutside = kNeither;
107 
111  std::vector<double> c, CutSide cs)
112  {
113  varx = vx;
114  vary = vy;
115  varz = vz;
116  name = n;
117  labelx = lx;
118  labely = ly;
119  labelz = lz;
120  binsx = bx;
121  binsy = by;
122  binsz = bz;
123  cuts = c;
124  cutside = cs;
125  }
126 };
const XML_Char * name
Definition: expat.h:151
CutContainer(ana::Cut c, std::string n, bool cd=true)
Definition: Structs.h:24
VarContainer(ana::Var v, std::string n, std::string l, ana::Binning b, std::vector< double > c={}, CutSide cs=kNeither)
Definition: Structs.h:54
Represent the binning of a Spectrum&#39;s x-axis.
Definition: Binning.h:16
Definition: Structs.h:36
Definition: Structs.h:42
const char * label
Definition: Structs.h:43
VarContainer2D(ana::Var vx, ana::Var vy, std::string n, std::string lx, std::string ly, ana::Binning bx, ana::Binning by, std::vector< double > c, CutSide cs)
Definition: Structs.h:78
VarContainer3D(ana::Var vx, ana::Var vy, ana::Var vz, std::string n, std::string lx, std::string ly, std::string lz, ana::Binning bx, ana::Binning by, ana::Binning bz, std::vector< double > c, CutSide cs)
Definition: Structs.h:108
Definition: Structs.h:41
const Binning bins
ana::Cut cut
Definition: Structs.h:20
const hit & b
Definition: hits.cxx:21
Definition: Structs.h:35
Definition: Structs.h:34
HistType
This code creates ratio plots of calibration samples.
bool cutdata
Definition: Structs.h:22
static Binning Simple(int n, double lo, double hi, const std::vector< std::string > &labels={})
Definition: Binning.cxx:107
const Var kUnweighted
The simplest possible Var, always 1. Used as a default weight.
Definition: Var.h:96
c cd(1)
const Cut kNoCut
The simplest possible cut: pass everything, used as a default.
Definition: Cut.h:109
enum BeamMode string