SkimmingStructs.h
Go to the documentation of this file.
1 //
2 // SkimmingStructs.h
3 // nova-mrb
4 //
5 // Created by Brian Rebel on 1/2/16.
6 // Copyright © 2016 Brian Rebel. All rights reserved.
7 //
8 
9 #ifndef SkimmingStructs_h
10 #define SkimmingStructs_h
11 
12 typedef struct{
13  float fBestPIDTrack; ///< track with the best PID
14  float fNeutrinoE; ///< neutrino energy
15  float fNDHadronicCal; ///< hadronic energy in the ND
16  double fReMIdVal; ///< value of ReMId parameter
17  float fQePIDVal; ///< value of QePId parameter
18  float fQePIDNTracks; ///< number of tracks for QePID
19  float fSliceHits; ///< hits in the slice
20  float fSliceContigPlanes; ///< contiguous planes in slice
21  float fSliceMaxPlane; ///< maximum plane of the slice
22  float fSliceMinPlane; ///< minimum plane of the slice
23  float fSliceCellsFromEdge; ///< minimum cells to edge of detector
24  float fSliceClosestEdge; ///< 0:-x, 1:+x, 2:-y or 3:+y
25  int fSliceNHitsNearEdge[10]; ///< fSliceNHitsNearEdge[i] = Number of hits within i cells of the x or y edges
26  float fPlanesToFront; ///< number of planes to the front of detector
27  float fPlanesToBack; ///< number of planes to the back of the detector
28  float fCosRejKalFwdCell; ///< just what it looks like
29  float fCosRejKalBakCell; ///< just what it looks like
36  float fCosRejKalYPosAtTrans; ///< just what it looks like
37  float fCosRejKalSpeed; ///< inverse speed of the timing fit of the kalman track
38  float fCosRejCosSpeed; ///< inverse speed of the timing fit of the cosmic track
39  float fCosRejCosDirScore; ///< difference between hough scores for timing fits of the cosmic track going forward and backwards
40  float fTrackStartZ; ///< track starting z position
41  float fTrackStopZ; ///< track end z position
42  TVector3 fTrackStart; ///< track starting position (cm)
43  TVector3 fTrackStop; ///< track end position (cm)
44  TVector3 fTrackEarliestHitPos; ///< position (cm) or track's earliest hit in time
45  TVector3 fTrackLatestHitPos; ///< position (cm) or track's latest hit in time
47  int fTrackClosestEdge; ///< 0:-x, 1:+x, 2:-y or 3:+y
48  int fTrackNHitsNearEdge[10];
49  float fTrackStartTime; ///< track starting (ns)
50  float fTrackStopTime; ///< track end time (ns)
51  TVector3 fTrackDir; ///< track direction (unit vector) at start point
52  float fTrackCCE; ///< track CC energy
54  TVector3 fCosmicTrackStop;
57  TVector3 fCosmicTrackDir;
65  int fCosTrackNHitsNearEdge[10];
70  TVector3 fCosTrackMinXYZ;
73  TVector3 fCosTrackMaxXYZ;
76 
77  // Analysis 2017 ...
78  float fDistAllTop; ///< distance of all showers in slice from the top edge of detector
79  float fDistAllBottom; ///< distance of all showers in slice from the bottom edge of detector
80  float fDistAllWest; ///< distance of all showers in slice from the west edge of detector
81  float fDistAllEast; ///< distance of all showers in slice from the east edge of detector
82  float fDistAllFront; ///< distance of all showers in slice from the front edge of detector
83  float fDistAllBack; ///< distance of all showers in slice from the back edge of detector
84  float fCVNVal; ///< value of the CVN PID
85 
86  float fCVN2017Val; ///< value of the Old (2017) CVN PID //Analysis 2018
87 
88 
89  float fNumShowers; ///< number of showers in slice
90  float fShowerNumXCell; ///< number of x cells in slice
91  float fShowerNumYCell; ///< number of y cells in slice
92  float fCosShowers; ///< cosine of angle between showers in slice
93  float fShowerDirX; ///< direction of the primary shower in slice
94  float fShowerDirY; ///< direction of the primary shower in slice
95  float fShowerDirZ; ///< direction of the primary shower in slice
96  float fShowerCalE; ///< calorimetric energy in primary shower in slice
97  float fShowerTotalE; ///< TotalE energy in primary shower in slice
98  float fProngLength; ///< length of largest prong in slice
99  float fFracShowerHits; ///< fraction of slice hits in the primary shower
100  float fShowerVertexX; ///< vertex of the primary shower
101  float fShowerVertexY; ///< vertex of the primary shower
102  float fShowerVertexZ; ///< vertex of the primary shower
103  float fShowerEndX; ///< end of the primary shower
104  float fShowerEndY; ///< end of the primary shower
105  float fShowerEndZ; ///< end of the primary shower
106  float fShowerMinX; ///< min x for all shower end points
107  float fShowerMinY; ///< min y for all shower end points
108  float fShowerMaxX; ///< max x for all shower end points
109  float fShowerMaxY; ///< max y for all shower end points
110  float fShowerMinVtxZ; ///< minimum Z position of all showers
111  float fShowerMinEndZ; ///< minimum Z position of all showers
112  float fShowerMaxVtxZ; ///< maximum Z position of all showers
113  float fShowerMaxEndZ; ///< maximum Z position of all showers
114  float fShowerVtxDist; ///< distance between the shower vertex and interaction vertex
115  float fShowerPt; ///< shower transverse momentum
116  float fVertexX; ///< vertex of the interaction
117  float fVertexY; ///< vertex of the interaction
118  float fVertexZ; ///< vertex of the interaction
119  float fVertexMaxW; ///< maximum w value of the vertex
120  float fNumShowersLID; ///< size of showerLIDs in a slice
121 
122  float fOtherTrackMaxVtxZ; ///< maximum Z position of non Best-RemID tracks
123  float fOtherTrackMaxEndZ; ///< maximum Z position of non Best-RemID tracks
124 
125  // Analysis 2018
127 
128 
129  std::vector< rb::RecoHit > fAllHits; ///< all hits in track
131 
132 typedef struct{
133  float fNumPlane; ///< number of planes in slice
134  float fPlanesToFront; ///< number of planes to the front of detector
135  float fCellsPerPlane; ///< number of cells per plane in slice
136  float fNumXCell; ///< number of x cells in slice
137  float fNumYCell; ///< number of y cells in slice
138  float fSliceHits; ///< total number of hits in slice
139  float fHitAsymmetry; ///< hit asymmetry between views in slice
140  float fNumShowers; ///< number of showers in slice
141  float fShowerNumXCell; ///< number of x cells in slice
142  float fShowerNumYCell; ///< number of y cells in slice
143  float fCosShowers; ///< cosine of angle between showers in slice
144  float fShowerDirX; ///< direction of the primary shower in slice
145  float fShowerDirY; ///< direction of the primary shower in slice
146  float fShowerDirZ; ///< direction of the primary shower in slice
147  float fShowerCalE; ///< calorimetric energy in primary shower in slice
148  float fShowerTotalE; ///< TotalE energy in primary shower in slice
149  float fProngLength; ///< length of largest prong in slice
150  float fFracShowerHits; ///< fraction of slice hits in the primary shower
151  float fShowerVertexX; ///< vertex of the primary shower
152  float fShowerVertexY; ///< vertex of the primary shower
153  float fShowerVertexZ; ///< vertex of the primary shower
154  float fShowerEndX; ///< end of the primary shower
155  float fShowerEndY; ///< end of the primary shower
156  float fShowerEndZ; ///< end of the primary shower
157  float fShowerMinX; ///< min x for all shower end points
158  float fShowerMinY; ///< min y for all shower end points
159  float fShowerMaxX; ///< max x for all shower end points
160  float fShowerMaxY; ///< max y for all shower end points
161  float fShowerMinVtxZ; ///< minimum Z position of all showers
162  float fShowerMinEndZ; ///< minimum Z position of all showers
163  float fShowerMaxVtxZ; ///< maximum Z position of all showers
164  float fShowerMaxEndZ; ///< maximum Z position of all showers
165  float fShowerVtxDist; ///< distance between the shower vertex and interaction vertex
166  float fShowerPt; ///< shower transverse momentum
167  float fSliceMinPlane; ///< minimum plane of the slice
168  float fVertexX; ///< vertex of the interaction
169  float fVertexY; ///< vertex of the interaction
170  float fVertexZ; ///< vertex of the interaction
171  float fVertexMaxW; ///< maximum w value of the vertex
172  float fCalorimetricE; ///< calorimetric energy of the slice
173  float fSliceTotalE; ///< TotalE of the slice
174  float fNueEnergy; ///< reconstructed nue energy
175  float fMinWestDist; ///< minimum distance to the west edge
176  float fMinEastDist; ///< minimum distance to the east edge
177  float fMinBotDist; ///< minimum distance to the bottom edge
178  float fMinTopDist; ///< minimum distance to the top edge
179  float fMinFrontDist; ///< minimum distance to the front edge
180  float fMinBackDist; ///< minimum distance to the back edge
181  float fDistAllTop; ///< distance of all showers in slice from the top edge of detector
182  float fDistAllBottom; ///< distance of all showers in slice from the bottom edge of detector
183  float fDistAllWest; ///< distance of all showers in slice from the west edge of detector
184  float fDistAllEast; ///< distance of all showers in slice from the east edge of detector
185  float fDistAllFront; ///< distance of all showers in slice from the front edge of detector
186  float fDistAllBack; ///< distance of all showers in slice from the back edge of detector
187  bool fVetoKeepNue; ///< cosmic rejection boolean
188  float fSparsenessAsymm; ///< assymmetry in the zero-hit planes at the start and end of the shower. Used for rejection of backward cosmic photons in FD
189  float fSparsenessAsymmSlice; ///< assymmetry in the zero-hit planes at the start and end of the slice. Used for rejection of backward cosmic photons in FD
190  float fLIDVal; ///< value of the LID PID
191  float fLEMVal; ///< value of the LEM PID
192  float fCVNVal; ///< value of the CVN PI
193  float fNumShowersLID; ///< size of showerLIDs in a slice
194 
195  // Analysis 2017
196  float fCVNValCosPID; ///< value of the CVN PID for peripheral sample (&&CosPIDContain)
197  float fCosPIDContain; ///< CosPIDContain used for peripheral sample
198 
202 
204 
205 // Add structure for NDnumuCCpi.
206 typedef struct{
207  int fpdgCode;
211 
212 typedef struct{
213  int run;
214  int subrun;
215  int event;
216 } EventInfo;
217 
218 typedef struct{
219  double totalpot;
220  double goodpot;
221  int epoch; ///< 1000*epoch number + character as int
224 }POTInfo;
225 
226 
227 
228 #endif /* SkimmingStructs_h */
TVector3 fTrackDir
track direction (unit vector) at start point
float fShowerMaxVtxZ
maximum Z position of all showers
float fShowerMaxY
max y for all shower end points
float fClosestSliceDistFromTop
float fMinBotDist
minimum distance to the bottom edge
float fShowerEndY
end of the primary shower
float fNumPlane
number of planes in slice
float fNumShowersLID
size of showerLIDs in a slice
float fFracShowerHits
fraction of slice hits in the primary shower
TVector3 fTrackStop
track end position (cm)
float fMinFrontDist
minimum distance to the front edge
float fSparsenessAsymmSlice
assymmetry in the zero-hit planes at the start and end of the slice. Used for rejection of backward c...
float fShowerMaxY
max y for all shower end points
float fCosShowers
cosine of angle between showers in slice
float fDistAllBottom
distance of all showers in slice from the bottom edge of detector
float fVertexX
vertex of the interaction
float fPlanesToFront
number of planes to the front of detector
float fDistAllTop
distance of all showers in slice from the top edge of detector
float fLIDVal
value of the LID PID
float fDistAllFront
distance of all showers in slice from the front edge of detector
float fDistAllEast
distance of all showers in slice from the east edge of detector
TVector3 fCosTrackMinXYZ
float fMinTopDist
minimum distance to the top edge
float fNeutrinoE
neutrino energy
float fShowerMinY
min y for all shower end points
float fShowerMinY
min y for all shower end points
float fVertexMaxW
maximum w value of the vertex
float fDistAllTop
distance of all showers in slice from the top edge of detector
float fSliceMaxPlane
maximum plane of the slice
float fTrackStopTime
track end time (ns)
float fVertexZ
vertex of the interaction
float fShowerEndY
end of the primary shower
float fShowerDirX
direction of the primary shower in slice
float fShowerEndX
end of the primary shower
float fHitAsymmetry
hit asymmetry between views in slice
float fShowerNumXCell
number of x cells in slice
float fShowerVtxDist
distance between the shower vertex and interaction vertex
float fCosShowers
cosine of angle between showers in slice
float fShowerCalE
calorimetric energy in primary shower in slice
float fCVN2017Val
value of the Old (2017) CVN PID //Analysis 2018
float fVertexX
vertex of the interaction
float fOtherTrackMaxVtxZ
maximum Z position of non Best-RemID tracks
float fShowerMinVtxZ
minimum Z position of all showers
float fShowerMaxX
max x for all shower end points
float fShowerMinEndZ
minimum Z position of all showers
float fSliceHits
hits in the slice
float fShowerDirZ
direction of the primary shower in slice
float fShowerNumXCell
number of x cells in slice
TVector3 fCosTrackMaxXYZ
float fCosRejCosSpeed
inverse speed of the timing fit of the cosmic track
int fTrackClosestEdge
0:-x, 1:+x, 2:-y or 3:+y
float fDiffLastFirstLiveDiblock
float fTrackStopZ
track end z position
float fVertexZ
vertex of the interaction
float fPlanesToFront
number of planes to the front of detector
float fSliceCellsFromEdge
minimum cells to edge of detector
float fVertexY
vertex of the interaction
TVector3 fTrackLatestHitPos
position (cm) or track&#39;s latest hit in time
float fShowerVertexZ
vertex of the primary shower
float fDistAllBack
distance of all showers in slice from the back edge of detector
float fMinBackDist
minimum distance to the back edge
float fMinEastDist
minimum distance to the east edge
float fDistAllFront
distance of all showers in slice from the front edge of detector
float fFracShowerHits
fraction of slice hits in the primary shower
float fCosRejKalBakCell
just what it looks like
float fShowerMinX
min x for all shower end points
float fVertexY
vertex of the interaction
float fLEMVal
value of the LEM PID
float fMinWestDist
minimum distance to the west edge
float fVertexMaxW
maximum w value of the vertex
float fNumShowers
number of showers in slice
float fProngLength
length of largest prong in slice
float fTrackStartZ
track starting z position
float fShowerMaxEndZ
maximum Z position of all showers
float fDistAllEast
distance of all showers in slice from the east edge of detector
TVector3 fTrackEarliestHitPos
position (cm) or track&#39;s earliest hit in time
float fSliceClosestEdge
0:-x, 1:+x, 2:-y or 3:+y
float fShowerDirX
direction of the primary shower in slice
float fTrackStartTime
track starting (ns)
float fCosRejKalSpeed
inverse speed of the timing fit of the kalman track
float fCVNVal
value of the CVN PID
float fShowerVertexY
vertex of the primary shower
float fNumShowers
number of showers in slice
float fCosRejKalYPosAtTrans
just what it looks like
float fShowerVtxDist
distance between the shower vertex and interaction vertex
TVector3 fCosmicTrackLatestHitPos
float fNDHadronicCal
hadronic energy in the ND
float fDistAllBottom
distance of all showers in slice from the bottom edge of detector
float fSliceTotalE
TotalE of the slice.
float fShowerEndZ
end of the primary shower
float fShowerMinVtxZ
minimum Z position of all showers
TVector3 fCosmicTrackEarliestHitPos
float fNueEnergy
reconstructed nue energy
float fSparsenessAsymm
assymmetry in the zero-hit planes at the start and end of the shower. Used for rejection of backward ...
float fShowerCalE
calorimetric energy in primary shower in slice
float fShowerDirY
direction of the primary shower in slice
float fShowerTotalE
TotalE energy in primary shower in slice.
TVector3 fCosmicTrackStart
float fSliceContigPlanes
contiguous planes in slice
float fOtherTrackMaxEndZ
maximum Z position of non Best-RemID tracks
float fShowerEndX
end of the primary shower
float fCosRejCosDirScore
difference between hough scores for timing fits of the cosmic track going forward and backwards ...
float fQePIDVal
value of QePId parameter
float fShowerMaxVtxZ
maximum Z position of all showers
float fSliceMinPlane
minimum plane of the slice
float fShowerMaxEndZ
maximum Z position of all showers
float fProngLength
length of largest prong in slice
float fSliceHits
total number of hits in slice
std::vector< rb::RecoHit > fAllHits
all hits in track
float fDistAllWest
distance of all showers in slice from the west edge of detector
double totalpot
float fTrackCCE
track CC energy
float fNumShowersLID
size of showerLIDs in a slice
float fShowerVertexY
vertex of the primary shower
float fBestPIDTrack
track with the best PID
TVector3 fCosmicTrackStop
TVector3 fTrackStart
track starting position (cm)
float fShowerEndZ
end of the primary shower
float fShowerMinX
min x for all shower end points
float fNumYCell
number of y cells in slice
float fQePIDNTracks
number of tracks for QePID
float fCosRejKalFwdCell
just what it looks like
float fDistAllWest
distance of all showers in slice from the west edge of detector
float fCellsPerPlane
number of cells per plane in slice
float fShowerVertexX
vertex of the primary shower
float fCVNValCosPID
value of the CVN PID for peripheral sample (&&CosPIDContain)
bool fVetoKeepNue
cosmic rejection boolean
float fShowerPt
shower transverse momentum
float fCalorimetricE
calorimetric energy of the slice
float fShowerNumYCell
number of y cells in slice
TVector3 fCosmicTrackDir
float fSliceMinPlane
minimum plane of the slice
float fCosPIDContain
CosPIDContain used for peripheral sample.
float fCosTrackTotalCalorimetricEnergy
float fShowerPt
shower transverse momentum
float fShowerMinEndZ
minimum Z position of all showers
float fShowerNumYCell
number of y cells in slice
float fNumXCell
number of x cells in slice
float fDistAllBack
distance of all showers in slice from the back edge of detector
float fShowerDirZ
direction of the primary shower in slice
double fReMIdVal
value of ReMId parameter
int epoch
1000*epoch number + character as int
double goodpot
float fShowerVertexX
vertex of the primary shower
float fCVNVal
value of the CVN PI
float fShowerTotalE
TotalE energy in primary shower in slice.
float fShowerMaxX
max x for all shower end points
float fShowerVertexZ
vertex of the primary shower
float fShowerDirY
direction of the primary shower in slice
float fPlanesToBack
number of planes to the back of the detector