SRVeto.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRVeto.cxx
3 // \brief Veto class detailing cuts made on slices in the standard record.
4 // \author $Author: Fite $
5 // \date $Date: 2014-08-06 09:11:00 $
6 ////////////////////////////////////////////////////////////////////////
7 #include<limits>
8 
10 
11 namespace caf
12 {
13 
15  ncell(0),
16  fwddist(std::numeric_limits<float>::signaling_NaN()),
17  bakdist(std::numeric_limits<float>::signaling_NaN()),
18  ratio(std::numeric_limits<float>::signaling_NaN()),
19  diry(std::numeric_limits<float>::signaling_NaN()),
20  angle(std::numeric_limits<float>::signaling_NaN()),
21  anglevar(std::numeric_limits<float>::signaling_NaN()),
22  anglevarold(std::numeric_limits<float>::signaling_NaN()),
23  passthru(std::numeric_limits<bool>::signaling_NaN()),
24  passthruold(std::numeric_limits<bool>::signaling_NaN()),
25  passangle(std::numeric_limits<bool>::signaling_NaN()),
26  passanglefirstana(std::numeric_limits<bool>::signaling_NaN()),
27  passnumicut(std::numeric_limits<bool>::signaling_NaN()),
28  keep(std::numeric_limits<bool>::signaling_NaN()),
29  keepnue(std::numeric_limits<bool>::signaling_NaN())
30  { }
31 
32 
34 
36  {
37  ncell = -5;
38  fwddist = -5;
39  bakdist = -5;
40  ratio = -5;
41  diry = -5;
42  angle = -5;
43  anglevar = -5;
44  anglevarold= -5;
45  passthru = true;
46  passthruold= true;
47  passangle = true;
48  passanglefirstana = true;
49  passnumicut= false;
50  keep = true;
51  keepnue = true;
52  }
53 } // end namespace caf
54 ////////////////////////////////////////////////////////////////////////
Double_t angle
Definition: plot.C:86
bool passanglefirstana
Would this slice pass the old angle cut used for first analysis.
Definition: SRVeto.h:29
def ratio(spec1, spec2, nbins, pot, binrange=(0, 1))
bool passthru
Would this slice pass the (fixed) through-going check?
Definition: SRVeto.h:26
bool passangle
Would this slice pass the most recent angle cut?
Definition: SRVeto.h:28
bool passthruold
Would this slice pass the (not fixed, no ratio check) through-going check?
Definition: SRVeto.h:27
float angle
Cosine of CosmicTrack with respect to the beam direction.
Definition: SRVeto.h:23
bool keep
Definition: SRVeto.h:34
bool keepnue
Does the event past nue version of veto? (see doc-db 14654)
Definition: SRVeto.h:36
float bakdist
Projected live distance to the edge projected backwards from track start.
Definition: SRVeto.h:20
virtual ~SRVeto()
Definition: SRVeto.cxx:33
float fwddist
Projected live distance to the edge projected forwards from track end.
Definition: SRVeto.h:19
int ncell
Number of hits in the slice.
Definition: SRVeto.h:18
bool passnumicut
Does this event pass the NuMI timing cuts?
Definition: SRVeto.h:32
float diry
Cosine of CosmicTrack with respect to the y-direction.
Definition: SRVeto.h:22
virtual void setDefault()
Definition: SRVeto.cxx:35
float anglevar
Defined as: abs(angle)*(diry+1) - new angle variable for new angle cut.
Definition: SRVeto.h:24
This module creates Common Analysis Files.
Definition: FileReducer.h:10
float ratio
Number of hits in the track relative to the slice.
Definition: SRVeto.h:21
float anglevarold
Difference of squares between beam angle and Y-direction (Also labeled CosmicVar AnglePID and AngleVa...
Definition: SRVeto.h:25