NueSandObj.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file NueSandObj.h
3 // \brief Object collecting nue Sandbox variables
4 // \author Christopher Backhouse - bckhouse@caltech.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef NUESAND_NUESANDOBJ_H
8 #define NUESAND_NUESANDOBJ_H
9 
11 #include "TVector3.h"
12 
13 /// \f$ \nu_e \f$ sandbox
14 namespace nuesand
15 {
16  /// \f$ \nu_e \f$ sandbox variables
17  class NueSandObj
18  {
19  public:
21  : fInFid(false),
22  fNPi0(0), fNPiPlus(0), fNPiMinus(0),
24  fPhot0E(0), fPhot1E(0),
25  fOpenCos(0),
26  fConvL0(0), fConvL1(0),
27  fMincellCosmic(0),
29  fMincellAvg(0),
30  fMincellKalman(0),
31  fAngleCosmic(0),
32  fNMIPHits(0),
33  fMIPMin(),
34  ECFNu(0.0),
35  fMIPMax(),
36  fFilledPlanes(0),
37  fExtentXPlanes(0),
38  fExtentYPlanes(0),
40  fMaxRowOfCells(0),
41  fFracAngChanges(0),
43  fFracModalHits(0),
44  fFracNonContig(0),
46  fMaxGap(0),
47  fMaxHitsX(0),
48  fMaxHitsY(0),
49  fdEdxProng1(0),
50  fdEdxProng2(0)
51  {}
52 
53  NueSandObj(bool infid, TVector3 mean)
54  : fInFid(infid), fSliceMean(mean),
55  fNPi0(0), fNPiPlus(0), fNPiMinus(0),
57  fPhot0E(0), fPhot1E(0),
58  fOpenCos(0),
59  fConvL0(0), fConvL1(0),
60  fMincellCosmic(0),
62  fMincellAvg(0),
63  fMincellKalman(0),
64  fAngleCosmic(0),
65  fNMIPHits(0),
66  fMIPMin(),
67  ECFNu(0.0),
68  fMIPMax(),
69  fFilledPlanes(0),
70  fExtentXPlanes(0),
71  fExtentYPlanes(0),
73  fMaxRowOfCells(0),
74  fFracAngChanges(0),
76  fFracModalHits(0),
77  fFracNonContig(0),
79  fMaxGap(0),
80  fMaxHitsX(0),
81  fMaxHitsY(0),
82  fdEdxProng1(0),
83  fdEdxProng2(0)
84  {}
85 
86  bool InFiducialVolume() const {return fInFid;}
87  TVector3 SliceMeanPosition() const {return fSliceMean;}
88 
89  protected:
90 
91  bool fInFid;
92  TVector3 fSliceMean;
93 
94  public:
95  int fNPi0; ///< Number of primary pi0
96  int fNPiPlus; ///< Number of primary pi+
97  int fNPiMinus; ///< Number of primary pi-
98 
99  float fPi0Energy; ///< Energy of largest primary pi0
100  float fPiPlusEnergy; ///< Energy of largest primary pi+
101  float fPiMinusEnergy; ///< Energy of largest primary pi-
102 
103  float fPhot0E; ///< Energy of largest pi0's largest photon
104  float fPhot1E; ///< Energy of largest pi0's smallest photon
105  float fOpenCos; ///< Opening angle of largest pi0's photons
106  float fConvL0; ///< Conversion length of photon 0
107  float fConvL1; ///< Conversion length of photon 1
108 
114  float fNMIPHits;
115  TVector3 fMIPMin;
116  float ECFNu;
117  TVector3 fMIPMax;
119  unsigned int fExtentXPlanes;
120  unsigned int fExtentYPlanes;
123 
129  int fMaxGap;
130  int fMaxHitsX; ///< How many hits does the most-occupied X plane have?
131  int fMaxHitsY; ///< How many hits does the most-occupied Y plane have?
132 
133  float fdEdxProng1;
134  float fdEdxProng2;
135  };
136 
137 }
138 
139 #endif
TVector3 SliceMeanPosition() const
Definition: NueSandObj.h:87
int fMaxHitsY
How many hits does the most-occupied Y plane have?
Definition: NueSandObj.h:131
NueSandObj(bool infid, TVector3 mean)
Definition: NueSandObj.h:53
float fConvL1
Conversion length of photon 1.
Definition: NueSandObj.h:107
float fPhot1E
Energy of largest pi0&#39;s smallest photon.
Definition: NueSandObj.h:104
sandbox variables
Definition: NueSandObj.h:17
float fFracAngChangesLoose
Definition: NueSandObj.h:125
int fNPiMinus
Number of primary pi-.
Definition: NueSandObj.h:97
float fConvL0
Conversion length of photon 0.
Definition: NueSandObj.h:106
float fPiMinusEnergy
Energy of largest primary pi-.
Definition: NueSandObj.h:101
int fMaxHitsX
How many hits does the most-occupied X plane have?
Definition: NueSandObj.h:130
float fPhot0E
Energy of largest pi0&#39;s largest photon.
Definition: NueSandObj.h:103
unsigned int fExtentXPlanes
Definition: NueSandObj.h:119
bool InFiducialVolume() const
Definition: NueSandObj.h:86
int fNPi0
Number of primary pi0.
Definition: NueSandObj.h:95
float fOpenCos
Opening angle of largest pi0&#39;s photons.
Definition: NueSandObj.h:105
float fPi0Energy
Energy of largest primary pi0.
Definition: NueSandObj.h:99
float fPiPlusEnergy
Energy of largest primary pi+.
Definition: NueSandObj.h:100
TVector3 fSliceMean
Definition: NueSandObj.h:92
Module to calculate and store sandbox variables in testing but added to the CAFs. ...
Definition: FillSandboxes.h:6
unsigned int fExtentYPlanes
Definition: NueSandObj.h:120
int fNPiPlus
Number of primary pi+.
Definition: NueSandObj.h:96