Public Member Functions | Private Attributes | List of all members
presel::Veto Class Reference

A class detailing the cuts made on a particular slice. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/Preselection/Veto.h"

Public Member Functions

 Veto ()
 
 Veto (unsigned int NCell, float fFwdDist, float fBakDist, double Ratio, double DirY, double Angle, double AngleVarOld, double AngleVar, bool PassThruOld, bool PassThru, bool PassAngleFirstAna, bool PassAngle, bool PassNuMICut, bool Keep)
 
unsigned int NCell () const
 
float FwdDist () const
 
float BakDist () const
 
double Ratio () const
 
double DirY () const
 
double Angle () const
 
double AngleVar () const
 
double AngleVarOld () const
 
bool PassThru () const
 
bool PassThruOld () const
 
bool PassAngle () const
 
bool PassAngleFirstAna () const
 
bool PassNuMICut () const
 
bool Keep () const
 
void SetNCell (unsigned int)
 
void SetFwdDist (float)
 
void SetBakDist (float)
 
void SetRatio (double)
 
void SetDirY (double)
 
void SetAngle (double)
 
void SetAngleVar (double)
 
void SetAngleVarOld (double)
 
void SetPassThru (bool)
 
void SetPassThruOld (bool)
 
void SetPassAngle (bool)
 
void SetPassAngleFirstAna (bool)
 
void SetPassNuMICut (bool)
 
void SetKeep (bool)
 

Private Attributes

unsigned int fNCell
 Number of hits in the slice. More...
 
float fFwdDist
 Projected live distance to the edge forwards from cosmic track end. More...
 
float fBakDist
 Projected live distance to the edge backwards from cosmic track start. More...
 
double fRatio
 Number of hits in the track relative to the slice. More...
 
double fDirY
 Cosine of CosmicTrack with respect to the y-direction. More...
 
double fAngle
 Cosine of CosmicTrack with respect to the beam direction. More...
 
double fAngleVarOld
 Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVar); used for determining if pass old angle cut used for first analysis. More...
 
double fAngleVar
 (angle)*(diry+1); used for determining if pass angle cut More...
 
bool fPassThru
 Boolean variable that determines if the slice passes the through-going check (including ratio > 0.8 check) More...
 
bool fPassThruOld
 Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't require ratio > 0.8) More...
 
bool fPassAngle
 Boolean variable that determines if the slice passes the latest angular cut. More...
 
bool fPassAngleFirstAna
 
bool fPassNuMICut
 Does this event pass the NuMI timing cut? More...
 
bool fKeep
 

Detailed Description

A class detailing the cuts made on a particular slice.

Definition at line 12 of file Veto.h.

Constructor & Destructor Documentation

presel::Veto::Veto ( )

Definition at line 11 of file Veto.cxx.

References fAngle, fAngleVar, fAngleVarOld, fBakDist, fDirY, fFwdDist, fKeep, fNCell, fPassAngle, fPassAngleFirstAna, fPassNuMICut, fPassThru, fPassThruOld, and fRatio.

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 }
float fBakDist
Projected live distance to the edge backwards from cosmic track start.
Definition: Veto.h:71
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
unsigned int fNCell
Number of hits in the slice.
Definition: Veto.h:69
bool fPassAngle
Boolean variable that determines if the slice passes the latest angular cut.
Definition: Veto.h:79
bool fPassThru
Boolean variable that determines if the slice passes the through-going check (including ratio > 0...
Definition: Veto.h:77
float fFwdDist
Projected live distance to the edge forwards from cosmic track end.
Definition: Veto.h:70
bool fPassAngleFirstAna
Definition: Veto.h:80
double fRatio
Number of hits in the track relative to the slice.
Definition: Veto.h:72
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
double fAngle
Cosine of CosmicTrack with respect to the beam direction.
Definition: Veto.h:74
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
presel::Veto::Veto ( unsigned int  NCell,
float  fFwdDist,
float  fBakDist,
double  Ratio,
double  DirY,
double  Angle,
double  AngleVarOld,
double  AngleVar,
bool  PassThruOld,
bool  PassThru,
bool  PassAngleFirstAna,
bool  PassAngle,
bool  PassNuMICut,
bool  Keep 
)

Definition at line 29 of file Veto.cxx.

References Angle(), AngleVar(), AngleVarOld(), BakDist(), DirY(), fAngle, fAngleVar, fAngleVarOld, fBakDist, fDirY, fFwdDist, fKeep, fNCell, fPassAngle, fPassAngleFirstAna, fPassNuMICut, fPassThru, fPassThruOld, fRatio, FwdDist(), Keep(), NCell(), PassAngle(), PassAngleFirstAna(), PassNuMICut(), PassThru(), PassThruOld(), and Ratio().

43 {
44  fNCell=NCell;
47  fRatio=Ratio;
48  fDirY=DirY;
49  fAngle=Angle;
57  fKeep=Keep;
58 }
float fBakDist
Projected live distance to the edge backwards from cosmic track start.
Definition: Veto.h:71
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
bool Keep() const
Definition: Veto.cxx:125
bool PassAngleFirstAna() const
Definition: Veto.cxx:115
float BakDist() const
Definition: Veto.cxx:70
double AngleVarOld() const
Definition: Veto.cxx:95
unsigned int fNCell
Number of hits in the slice.
Definition: Veto.h:69
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
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
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
float FwdDist() const
Definition: Veto.cxx:65
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

Member Function Documentation

double presel::Veto::Angle ( ) const

Definition at line 85 of file Veto.cxx.

References fAngle.

Referenced by caf::FillVetoVars(), SetAngle(), and Veto().

86 {
87  return fAngle;
88 }
double fAngle
Cosine of CosmicTrack with respect to the beam direction.
Definition: Veto.h:74
double presel::Veto::AngleVar ( ) const

Definition at line 90 of file Veto.cxx.

References fAngleVar.

Referenced by caf::FillVetoVars(), SetAngleVar(), and Veto().

91 {
92  return fAngleVar;
93 }
double fAngleVar
(angle)*(diry+1); used for determining if pass angle cut
Definition: Veto.h:76
double presel::Veto::AngleVarOld ( ) const

Definition at line 95 of file Veto.cxx.

References fAngleVarOld.

Referenced by caf::FillVetoVars(), SetAngleVarOld(), and Veto().

96 {
97  return fAngleVarOld;
98 }
double fAngleVarOld
Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVa...
Definition: Veto.h:75
float presel::Veto::BakDist ( ) const

Definition at line 70 of file Veto.cxx.

References fBakDist.

Referenced by caf::FillVetoVars(), SetBakDist(), and Veto().

71 {
72  return fBakDist;
73 }
float fBakDist
Projected live distance to the edge backwards from cosmic track start.
Definition: Veto.h:71
double presel::Veto::DirY ( ) const

Definition at line 80 of file Veto.cxx.

References fDirY.

Referenced by caf::FillVetoVars(), SetDirY(), and Veto().

81 {
82  return fDirY;
83 }
double fDirY
Cosine of CosmicTrack with respect to the y-direction.
Definition: Veto.h:73
float presel::Veto::FwdDist ( ) const

Definition at line 65 of file Veto.cxx.

References fFwdDist.

Referenced by caf::FillVetoVars(), SetFwdDist(), and Veto().

66 {
67  return fFwdDist;
68 }
float fFwdDist
Projected live distance to the edge forwards from cosmic track end.
Definition: Veto.h:70
bool presel::Veto::Keep ( ) const

Definition at line 125 of file Veto.cxx.

References fKeep.

Referenced by caf::FillVetoVars(), skim::ParametersNue::ParametersNue(), SetKeep(), and Veto().

126 {
127  return fKeep;
128 }
bool fKeep
Definition: Veto.h:88
unsigned int presel::Veto::NCell ( ) const

Definition at line 60 of file Veto.cxx.

References fNCell.

Referenced by caf::FillVetoVars(), SetNCell(), and Veto().

61 {
62  return fNCell;
63 }
unsigned int fNCell
Number of hits in the slice.
Definition: Veto.h:69
bool presel::Veto::PassAngle ( ) const

Definition at line 110 of file Veto.cxx.

References fPassAngle.

Referenced by caf::FillVetoVars(), SetPassAngle(), and Veto().

111 {
112  return fPassAngle;
113 }
bool fPassAngle
Boolean variable that determines if the slice passes the latest angular cut.
Definition: Veto.h:79
bool presel::Veto::PassAngleFirstAna ( ) const

Definition at line 115 of file Veto.cxx.

References fPassAngleFirstAna.

Referenced by caf::FillVetoVars(), SetPassAngleFirstAna(), and Veto().

116 {
117  return fPassAngleFirstAna;
118 }
bool fPassAngleFirstAna
Definition: Veto.h:80
bool presel::Veto::PassNuMICut ( ) const

Definition at line 120 of file Veto.cxx.

References fPassNuMICut.

Referenced by caf::FillVetoVars(), SetPassNuMICut(), and Veto().

121 {
122  return fPassNuMICut;
123 }
bool fPassNuMICut
Does this event pass the NuMI timing cut?
Definition: Veto.h:82
bool presel::Veto::PassThru ( ) const

Definition at line 100 of file Veto.cxx.

References fPassThru.

Referenced by caf::FillVetoVars(), SetPassThru(), and Veto().

101 {
102  return fPassThru;
103 }
bool fPassThru
Boolean variable that determines if the slice passes the through-going check (including ratio > 0...
Definition: Veto.h:77
bool presel::Veto::PassThruOld ( ) const

Definition at line 105 of file Veto.cxx.

References fPassThruOld.

Referenced by caf::FillVetoVars(), SetPassThruOld(), and Veto().

106 {
107  return fPassThruOld;
108 }
bool fPassThruOld
Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't...
Definition: Veto.h:78
double presel::Veto::Ratio ( ) const

Definition at line 75 of file Veto.cxx.

References fRatio.

Referenced by caf::FillVetoVars(), SetRatio(), and Veto().

76 {
77  return fRatio;
78 }
double fRatio
Number of hits in the track relative to the slice.
Definition: Veto.h:72
void presel::Veto::SetAngle ( double  Angle)

Definition at line 155 of file Veto.cxx.

References Angle(), and fAngle.

Referenced by presel::CosmicVeto::produce().

156 {
157  fAngle = Angle;
158 }
double Angle() const
Definition: Veto.cxx:85
double fAngle
Cosine of CosmicTrack with respect to the beam direction.
Definition: Veto.h:74
void presel::Veto::SetAngleVar ( double  AngleVar)

Definition at line 160 of file Veto.cxx.

References AngleVar(), and fAngleVar.

Referenced by presel::CosmicVeto::produce().

161 {
163 }
double AngleVar() const
Definition: Veto.cxx:90
double fAngleVar
(angle)*(diry+1); used for determining if pass angle cut
Definition: Veto.h:76
void presel::Veto::SetAngleVarOld ( double  AngleVarOld)

Definition at line 165 of file Veto.cxx.

References AngleVarOld(), and fAngleVarOld.

Referenced by presel::CosmicVeto::produce().

166 {
168 }
double AngleVarOld() const
Definition: Veto.cxx:95
double fAngleVarOld
Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVa...
Definition: Veto.h:75
void presel::Veto::SetBakDist ( float  BakDist)

Definition at line 140 of file Veto.cxx.

References BakDist(), and fBakDist.

Referenced by presel::CosmicVeto::produce().

141 {
142  fBakDist = BakDist;
143 }
float fBakDist
Projected live distance to the edge backwards from cosmic track start.
Definition: Veto.h:71
float BakDist() const
Definition: Veto.cxx:70
void presel::Veto::SetDirY ( double  DirY)

Definition at line 150 of file Veto.cxx.

References DirY(), and fDirY.

Referenced by presel::CosmicVeto::produce().

151 {
152  fDirY = DirY;
153 }
double DirY() const
Definition: Veto.cxx:80
double fDirY
Cosine of CosmicTrack with respect to the y-direction.
Definition: Veto.h:73
void presel::Veto::SetFwdDist ( float  FwdDist)

Definition at line 135 of file Veto.cxx.

References fFwdDist, and FwdDist().

Referenced by presel::CosmicVeto::produce().

136 {
137  fFwdDist = FwdDist;
138 }
float fFwdDist
Projected live distance to the edge forwards from cosmic track end.
Definition: Veto.h:70
float FwdDist() const
Definition: Veto.cxx:65
void presel::Veto::SetKeep ( bool  Keep)

Definition at line 195 of file Veto.cxx.

References fKeep, and Keep().

Referenced by presel::CosmicVeto::produce().

196 {
197  fKeep = Keep;
198 }
bool fKeep
Definition: Veto.h:88
bool Keep() const
Definition: Veto.cxx:125
void presel::Veto::SetNCell ( unsigned int  NCell)

Definition at line 130 of file Veto.cxx.

References fNCell, and NCell().

Referenced by presel::CosmicVeto::produce().

131 {
132  fNCell = NCell;
133 }
unsigned int fNCell
Number of hits in the slice.
Definition: Veto.h:69
unsigned int NCell() const
Definition: Veto.cxx:60
void presel::Veto::SetPassAngle ( bool  PassAngle)

Definition at line 180 of file Veto.cxx.

References fPassAngle, and PassAngle().

Referenced by presel::CosmicVeto::produce().

181 {
183 }
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
void presel::Veto::SetPassAngleFirstAna ( bool  PassAngleFirstAna)

Definition at line 185 of file Veto.cxx.

References fPassAngleFirstAna, and PassAngleFirstAna().

Referenced by presel::CosmicVeto::produce().

186 {
188 }
bool PassAngleFirstAna() const
Definition: Veto.cxx:115
bool fPassAngleFirstAna
Definition: Veto.h:80
void presel::Veto::SetPassNuMICut ( bool  PassNuMICut)

Definition at line 190 of file Veto.cxx.

References fPassNuMICut, and PassNuMICut().

Referenced by presel::CosmicVeto::produce().

191 {
193 }
bool fPassNuMICut
Does this event pass the NuMI timing cut?
Definition: Veto.h:82
bool PassNuMICut() const
Definition: Veto.cxx:120
void presel::Veto::SetPassThru ( bool  PassThru)

Definition at line 170 of file Veto.cxx.

References fPassThru, and PassThru().

Referenced by presel::CosmicVeto::produce().

171 {
173 }
bool PassThru() const
Definition: Veto.cxx:100
bool fPassThru
Boolean variable that determines if the slice passes the through-going check (including ratio > 0...
Definition: Veto.h:77
void presel::Veto::SetPassThruOld ( bool  PassThruOld)

Definition at line 175 of file Veto.cxx.

References fPassThruOld, and PassThruOld().

Referenced by presel::CosmicVeto::produce().

176 {
178 }
bool fPassThruOld
Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't...
Definition: Veto.h:78
bool PassThruOld() const
Definition: Veto.cxx:105
void presel::Veto::SetRatio ( double  Ratio)

Definition at line 145 of file Veto.cxx.

References fRatio, and Ratio().

Referenced by presel::CosmicVeto::produce().

146 {
147  fRatio = Ratio;
148 }
double Ratio() const
Definition: Veto.cxx:75
double fRatio
Number of hits in the track relative to the slice.
Definition: Veto.h:72

Member Data Documentation

double presel::Veto::fAngle
private

Cosine of CosmicTrack with respect to the beam direction.

Definition at line 74 of file Veto.h.

Referenced by Angle(), SetAngle(), and Veto().

double presel::Veto::fAngleVar
private

(angle)*(diry+1); used for determining if pass angle cut

Definition at line 76 of file Veto.h.

Referenced by AngleVar(), SetAngleVar(), and Veto().

double presel::Veto::fAngleVarOld
private

Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVar); used for determining if pass old angle cut used for first analysis.

Definition at line 75 of file Veto.h.

Referenced by AngleVarOld(), SetAngleVarOld(), and Veto().

float presel::Veto::fBakDist
private

Projected live distance to the edge backwards from cosmic track start.

Definition at line 71 of file Veto.h.

Referenced by BakDist(), SetBakDist(), and Veto().

double presel::Veto::fDirY
private

Cosine of CosmicTrack with respect to the y-direction.

Definition at line 73 of file Veto.h.

Referenced by DirY(), SetDirY(), and Veto().

float presel::Veto::fFwdDist
private

Projected live distance to the edge forwards from cosmic track end.

Definition at line 70 of file Veto.h.

Referenced by FwdDist(), SetFwdDist(), and Veto().

bool presel::Veto::fKeep
private

Boolean variable that determines if the slice was actually kept or thrown away (Also labeled sel for selected); should be the AND of all the veto cuts that are turned on, except PassNuMICut.

Definition at line 88 of file Veto.h.

Referenced by Keep(), SetKeep(), and Veto().

unsigned int presel::Veto::fNCell
private

Number of hits in the slice.

Definition at line 69 of file Veto.h.

Referenced by NCell(), SetNCell(), and Veto().

bool presel::Veto::fPassAngle
private

Boolean variable that determines if the slice passes the latest angular cut.

Definition at line 79 of file Veto.h.

Referenced by PassAngle(), SetPassAngle(), and Veto().

bool presel::Veto::fPassAngleFirstAna
private

Boolean variable that determines if the slice passes the old angular cut used for first analysis

Definition at line 80 of file Veto.h.

Referenced by PassAngleFirstAna(), SetPassAngleFirstAna(), and Veto().

bool presel::Veto::fPassNuMICut
private

Does this event pass the NuMI timing cut?

Definition at line 82 of file Veto.h.

Referenced by PassNuMICut(), SetPassNuMICut(), and Veto().

bool presel::Veto::fPassThru
private

Boolean variable that determines if the slice passes the through-going check (including ratio > 0.8 check)

Definition at line 77 of file Veto.h.

Referenced by PassThru(), SetPassThru(), and Veto().

bool presel::Veto::fPassThruOld
private

Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't require ratio > 0.8)

Definition at line 78 of file Veto.h.

Referenced by PassThruOld(), SetPassThruOld(), and Veto().

double presel::Veto::fRatio
private

Number of hits in the track relative to the slice.

Definition at line 72 of file Veto.h.

Referenced by Ratio(), SetRatio(), and Veto().


The documentation for this class was generated from the following files: