Veto.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file Veto.h
3 // \brief Veto object detailing cuts made
4 // \author Max Fite - fitex005@umn.edu
5 ////////////////////////////////////////////////////////////////////////
6 #ifndef Veto_h
7 #define Veto_h
8 
9 namespace presel
10 {
11  ///A class detailing the cuts made on a particular slice
12  class Veto
13  {
14  public:
15  //constructors
16  Veto();
17 
18  #ifndef __GCC_XML__
19 
20  Veto(unsigned int NCell,
21  float fFwdDist,
22  float fBakDist,
23  double Ratio,
24  double DirY,
25  double Angle,
26  double AngleVarOld,
27  double AngleVar,
28  bool PassThruOld,
29  bool PassThru,
30  bool PassAngleFirstAna,
31  bool PassAngle,
32  bool PassNuMICut,
33  bool Keep);
34 
35  //Accessor Methods
36  unsigned int NCell() const;
37  float FwdDist() const;
38  float BakDist() const;
39  double Ratio() const;
40  double DirY() const;
41  double Angle() const;
42  double AngleVar() const;
43  double AngleVarOld() const;
44  bool PassThru() const;
45  bool PassThruOld() const;
46  bool PassAngle() const;
47  bool PassAngleFirstAna() const;
48  bool PassNuMICut() const;
49  bool Keep() const;
50 
51  //Mutator Methods
52  void SetNCell(unsigned int);
53  void SetFwdDist(float);
54  void SetBakDist(float);
55  void SetRatio(double);
56  void SetDirY(double);
57  void SetAngle(double);
58  void SetAngleVar(double);
59  void SetAngleVarOld(double);
60  void SetPassThru(bool);
61  void SetPassThruOld(bool);
62  void SetPassAngle(bool);
63  void SetPassAngleFirstAna(bool);
64  void SetPassNuMICut(bool);
65  void SetKeep(bool);
66 #endif
67 
68  private:
69  unsigned int fNCell; ///<Number of hits in the slice
70  float fFwdDist; ///<Projected live distance to the edge forwards from cosmic track end
71  float fBakDist; ///<Projected live distance to the edge backwards from cosmic track start
72  double fRatio; ///< Number of hits in the track relative to the slice
73  double fDirY; ///<Cosine of CosmicTrack with respect to the y-direction
74  double fAngle; ///<Cosine of CosmicTrack with respect to the beam direction
75  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
76  double fAngleVar; ///<(angle)*(diry+1); used for determining if pass angle cut
77  bool fPassThru; ///<Boolean variable that determines if the slice passes the through-going check (including ratio > 0.8 check)
78  bool fPassThruOld;///<Boolean variable that determines if the slice passes the through-going check prior to the fix (didn't require ratio > 0.8)
79  bool fPassAngle; ///<Boolean variable that determines if the slice passes the latest angular cut
80  bool fPassAngleFirstAna; ///<Boolean variable that determines if the slice passes the old angular cut used for first analysis
81  /// Does this event pass the NuMI timing cut?
82  bool fPassNuMICut;
83 
84  /// Boolean variable that determines if the slice
85  /// was actually kept or thrown away (Also labeled
86  /// *sel* for *selected*); should be the AND of all
87  /// the veto cuts that are turned on, except PassNuMICut.
88  bool fKeep;
89  };
90 
91 } //end namespace presel
92 
93 #endif //End Veto_h
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&#39;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
A class detailing the cuts made on a particular slice.
Definition: Veto.h:12
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