Veto.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file Veto.cxx
3 // \brief Veto object detailing cuts made
4 // \author Max Fite - fitex005@umn.edu
5 ////////////////////////////////////////////////////////////////////////
6 #include "Veto.h"
7 
8 namespace presel
9 {
10 //......................................................................
12 {
13  fNCell=-5;
14  fFwdDist=-5;
15  fBakDist=-5;
16  fRatio=-5;
17  fDirY=-5;
18  fAngle=-5;
19  fAngleVar=-5;
20  fAngleVarOld=-5;
21  fPassThru=true;
22  fPassThruOld=true;
23  fPassAngle=true;
24  fPassAngleFirstAna=true;
25  fPassNuMICut=false;
26  fKeep=true;
27 }
28 //......................................................................
29  Veto::Veto(unsigned int NCell,
30  float FwdDist,
31  float BakDist,
32  double Ratio,
33  double DirY,
34  double Angle,
35  double AngleVar,
36  double AngleVarOld,
37  bool PassThru,
38  bool PassThruOld,
39  bool PassAngle,
40  bool PassAngleFirstAna,
41  bool PassNuMICut,
42  bool Keep)
43 {
44  fNCell=NCell;
47  fRatio=Ratio;
48  fDirY=DirY;
49  fAngle=Angle;
57  fKeep=Keep;
58 }
59 //.......................................................................
60  unsigned int Veto::NCell() const
61 {
62  return fNCell;
63 }
64 //.......................................................................
65  float Veto::FwdDist() const
66 {
67  return fFwdDist;
68 }
69 //.......................................................................
70  float Veto::BakDist() const
71 {
72  return fBakDist;
73 }
74 //.......................................................................
75  double Veto::Ratio() const
76 {
77  return fRatio;
78 }
79 //.......................................................................
80  double Veto::DirY() const
81 {
82  return fDirY;
83 }
84 //.......................................................................
85  double Veto::Angle() const
86 {
87  return fAngle;
88 }
89 //.......................................................................
90  double Veto::AngleVar() const
91 {
92  return fAngleVar;
93 }
94 //.......................................................................
95  double Veto::AngleVarOld() const
96 {
97  return fAngleVarOld;
98 }
99 //.......................................................................
100  bool Veto::PassThru() const
101 {
102  return fPassThru;
103 }
104 //.......................................................................
105  bool Veto::PassThruOld() const
106 {
107  return fPassThruOld;
108 }
109 //.......................................................................
110  bool Veto::PassAngle() const
111 {
112  return fPassAngle;
113 }
114 //.......................................................................
116 {
117  return fPassAngleFirstAna;
118 }
119 //.......................................................................
120  bool Veto::PassNuMICut() const
121 {
122  return fPassNuMICut;
123 }
124 //.......................................................................
125  bool Veto::Keep() const
126 {
127  return fKeep;
128 }
129 //.......................................................................
130  void Veto::SetNCell(unsigned int NCell)
131 {
132  fNCell = NCell;
133 }
134 //.......................................................................
136 {
137  fFwdDist = FwdDist;
138 }
139 //.......................................................................
141 {
142  fBakDist = BakDist;
143 }
144 //.......................................................................
145 void Veto::SetRatio(double Ratio)
146 {
147  fRatio = Ratio;
148 }
149 //.......................................................................
150 void Veto::SetDirY(double DirY)
151 {
152  fDirY = DirY;
153 }
154 //.......................................................................
155 void Veto::SetAngle(double Angle)
156 {
157  fAngle = Angle;
158 }
159 //.......................................................................
161 {
163 }
164 //.......................................................................
166 {
168 }
169 //.......................................................................
171 {
173 }
174 //.......................................................................
176 {
178 }
179 //.......................................................................
181 {
183 }
184 //.......................................................................
186 {
188 }
189 //.......................................................................
191 {
193 }
194 //.......................................................................
195 void Veto::SetKeep(bool Keep)
196 {
197  fKeep = Keep;
198 }
199 //.......................................................................
200 }// end namespace presel
Preselection Object.
Definition: FillPIDs.h:20
float fBakDist
Projected live distance to the edge backwards from cosmic track start.
Definition: Veto.h:71
void SetBakDist(float)
Definition: Veto.cxx:140
void SetDirY(double)
Definition: Veto.cxx:150
bool PassThru() const
Definition: Veto.cxx:100
bool fKeep
Definition: Veto.h:88
bool fPassThruOld
Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't...
Definition: Veto.h:78
void SetAngleVarOld(double)
Definition: Veto.cxx:165
bool Keep() const
Definition: Veto.cxx:125
bool PassAngleFirstAna() const
Definition: Veto.cxx:115
void SetKeep(bool)
Definition: Veto.cxx:195
float BakDist() const
Definition: Veto.cxx:70
void SetRatio(double)
Definition: Veto.cxx:145
double AngleVarOld() const
Definition: Veto.cxx:95
unsigned int fNCell
Number of hits in the slice.
Definition: Veto.h:69
void SetAngle(double)
Definition: Veto.cxx:155
bool PassAngle() const
Definition: Veto.cxx:110
bool fPassAngle
Boolean variable that determines if the slice passes the latest angular cut.
Definition: Veto.h:79
double DirY() const
Definition: Veto.cxx:80
void SetPassThru(bool)
Definition: Veto.cxx:170
void SetNCell(unsigned int)
Definition: Veto.cxx:130
void SetPassAngle(bool)
Definition: Veto.cxx:180
bool fPassThru
Boolean variable that determines if the slice passes the through-going check (including ratio > 0...
Definition: Veto.h:77
double AngleVar() const
Definition: Veto.cxx:90
float fFwdDist
Projected live distance to the edge forwards from cosmic track end.
Definition: Veto.h:70
double Angle() const
Definition: Veto.cxx:85
double Ratio() const
Definition: Veto.cxx:75
bool PassThruOld() const
Definition: Veto.cxx:105
unsigned int NCell() const
Definition: Veto.cxx:60
bool fPassAngleFirstAna
Definition: Veto.h:80
double fRatio
Number of hits in the track relative to the slice.
Definition: Veto.h:72
void SetAngleVar(double)
Definition: Veto.cxx:160
bool fPassNuMICut
Does this event pass the NuMI timing cut?
Definition: Veto.h:82
double fAngleVarOld
Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVa...
Definition: Veto.h:75
void SetPassNuMICut(bool)
Definition: Veto.cxx:190
float FwdDist() const
Definition: Veto.cxx:65
void SetPassAngleFirstAna(bool)
Definition: Veto.cxx:185
void SetPassThruOld(bool)
Definition: Veto.cxx:175
double fAngle
Cosine of CosmicTrack with respect to the beam direction.
Definition: Veto.h:74
bool PassNuMICut() const
Definition: Veto.cxx:120
double fDirY
Cosine of CosmicTrack with respect to the y-direction.
Definition: Veto.h:73
double fAngleVar
(angle)*(diry+1); used for determining if pass angle cut
Definition: Veto.h:76
void SetFwdDist(float)
Definition: Veto.cxx:135