SRTrack.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRTrack.h
3 // \version $Id: SRTrack.h,v 1.6 2012-11-13 22:06:10 rocco Exp $
4 // \author $Author: rocco $
5 // \date $Date: 2012-11-13 22:06:10 $
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef SRTRACK_H
8 #define SRTRACK_H
9 
10 #include "StandardRecord/SRProng.h"
12 #include "SRTrkME.h"
14 
16 
17 namespace caf
18 {
19  /// Representation of a rb::Track, knows energy and direction, but not a list
20  /// of hits.
21  class SRTrack
22  {
23  public:
24  SRTrack();
25  ~SRTrack(){ };
26 
27  unsigned short nhit; ///< number of hits
28  unsigned short nhitx; ///< number of hits in x-view
29  unsigned short nhity; ///< number of hits in y-view
30  unsigned short nplane; ///< number of planes spanned
31  unsigned short maxplanecont; ///< maximum number of contiguous planes in prong
32  unsigned short maxplanegap; ///< maximum number of gapped planes in prong
33  unsigned short nplanegap; ///< total number of missing planes on track
34  float calE; ///< energy based on summed calibrated deposited charge [GeV]
35  SRVector3D start; ///< Shower start point in detector coordinates. [cm]
36  SRVector3D dir; ///< Shower direction at start point [unit vector recommended]
37  float pngminx; ///< Minimum X that contain all the cell hits. [cm]
38  float pngmaxx; ///< Maximum X that contain all the cell hits. [cm]
39  float pngminy; ///< Minimum Y that contain all the cell hits. [cm]
40  float pngmaxy; ///< Maximum Y that contain all the cell hits. [cm]
41  float len; ///< track length [cm]
42  View_t view; ///< Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2
43 
44  float lenE; ///< energy based on track length and MIP assumption [GeV]
45  float overlapE; ///< overlapping energy calculated by the NumuEnergy/TrackOverlapECalc module.
46  SRVector3D stop; ///< Track end point in detector coordinates. [cm]
47  SRVector3D stopdir; ///< Track direction at end point [unit vector recommended]
48  SRParticleTruth truth; ///< Truth information for the track
49  SRParticleTruth truthXView; ///< Truth information for the track
50  SRParticleTruth truthYView; ///< Truth information for the track
51 
52  std::vector<SRTrkME> me;
53 
54  std::vector<SRMRProperties> mrdif; ///< cosmogenic DiF shower properties
55  std::vector<SRMRProperties> mrbrem; ///< cosmogenic Brem shower properties
56 
57  int trkfwdcell; ///< track forward cell from end to detector edge
58  int trkfwdcellnd; ///< track forward cell from end to detector edge with muon catcher included
59  int trkbakcell; ///< track backeard cell from start to detector edge
60  int trkbakcellnd; ///< track backeard cell from start to detector edge with muon catcher included
61  double leninact; ///< track length in active detector
62  double lenincat; ///< track length in muon catcher
63  float trkyposattrans; ///< Y position at transition to muon catcher, for determining if track went through air gap (ND only)
64  float vtxdist;
65  float enddist;
66  float trkfwddist; ///< Kalmantrack projected distance (cm) from end point forwards to det edge
67  float trkfwdair; ///< for Kalmantrack projected distance forwards how much is through air (ND only, NYI)
68  float trkfwdsteel; ///< for Kalmantrack projected distance forwards, how much is through steel (ND only, currently is just distance in muon catcher, cells and all)
69  float trkbakdist; ///< Kalmantrack projected distance (cm) from start point backwards to det edge
70  float trkbakair; ///< for Kalmantrack projected distance backwards how much is through air (ND only, NYI)
71  float trkbaksteel; ///< for Kalmantrack projected distance backwards, how much is through steel (ND only, currently is just distance in muon catcher, cells and all)
72  float avedEdxlast10cm; ///<Average dE/dx in the last 10 cm approximately
73  float avedEdxlast20cm; ///<Average dE/dx in the last 20 cm approximately
74  float avedEdxlast30cm; ///<Average dE/dx in the last 30 cm approximately
75  float avedEdxlast40cm; ///<Average dE/dx in the last 40 cm approximately
76 
77  float meantime; ///<Average time weighted by the energy of the cell(s) hit
78  float maxtime; ///<Max time of cell(s)
79  float mintime; ///<Min time of cell(s)
80  float meantimeRes; ///<Average time weighted by the time resolution of the cell(s) hit
81  };
82 
83 } // end namespace
84 
85 #endif // SRTRACK_H
86 //////////////////////////////////////////////////////////////////////////////
SRVector3D dir
Shower direction at start point [unit vector recommended].
Definition: SRTrack.h:36
float avedEdxlast20cm
Average dE/dx in the last 20 cm approximately.
Definition: SRTrack.h:73
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:14
float trkbakdist
Kalmantrack projected distance (cm) from start point backwards to det edge.
Definition: SRTrack.h:69
std::vector< SRMRProperties > mrdif
cosmogenic DiF shower properties
Definition: SRTrack.h:54
float enddist
Definition: SRTrack.h:65
unsigned short nplane
number of planes spanned
Definition: SRTrack.h:30
float avedEdxlast30cm
Average dE/dx in the last 30 cm approximately.
Definition: SRTrack.h:74
float trkfwdair
for Kalmantrack projected distance forwards how much is through air (ND only, NYI) ...
Definition: SRTrack.h:67
View_t
Detector view, following GeometryObjects/PlaneGeo.h.
Definition: SREnums.h:20
float pngmaxy
Maximum Y that contain all the cell hits. [cm].
Definition: SRTrack.h:40
unsigned short maxplanecont
maximum number of contiguous planes in prong
Definition: SRTrack.h:31
float trkyposattrans
Y position at transition to muon catcher, for determining if track went through air gap (ND only) ...
Definition: SRTrack.h:63
float avedEdxlast40cm
Average dE/dx in the last 40 cm approximately.
Definition: SRTrack.h:75
float calE
energy based on summed calibrated deposited charge [GeV]
Definition: SRTrack.h:34
float mintime
Min time of cell(s)
Definition: SRTrack.h:79
unsigned short nhit
number of hits
Definition: SRTrack.h:25
float trkbaksteel
for Kalmantrack projected distance backwards, how much is through steel (ND only, currently is just d...
Definition: SRTrack.h:71
The truth information of reco objects within a slice.
double leninact
track length in active detector
Definition: SRTrack.h:61
SRParticleTruth truthXView
Truth information for the track.
Definition: SRTrack.h:49
SRParticleTruth truth
Truth information for the track.
Definition: SRTrack.h:48
unsigned short maxplanegap
maximum number of gapped planes in prong
Definition: SRTrack.h:32
int trkfwdcell
track forward cell from end to detector edge
Definition: SRTrack.h:57
SRVector3D start
Shower start point in detector coordinates. [cm].
Definition: SRTrack.h:35
int trkbakcellnd
track backeard cell from start to detector edge with muon catcher included
Definition: SRTrack.h:60
float lenE
energy based on track length and MIP assumption [GeV]
Definition: SRTrack.h:44
float meantimeRes
Average time weighted by the time resolution of the cell(s) hit.
Definition: SRTrack.h:80
unsigned short nplanegap
total number of missing planes on track
Definition: SRTrack.h:33
float maxtime
Max time of cell(s)
Definition: SRTrack.h:78
float pngminy
Minimum Y that contain all the cell hits. [cm].
Definition: SRTrack.h:39
unsigned short nhitx
number of hits in x-view
Definition: SRTrack.h:28
float pngmaxx
Maximum X that contain all the cell hits. [cm].
Definition: SRTrack.h:38
SRVector3D stop
Track end point in detector coordinates. [cm].
Definition: SRTrack.h:46
SRParticleTruth truthYView
Truth information for the track.
Definition: SRTrack.h:50
View_t view
Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2.
Definition: SRTrack.h:42
int trkbakcell
track backeard cell from start to detector edge
Definition: SRTrack.h:59
float vtxdist
Definition: SRTrack.h:64
float len
track length [cm]
Definition: SRTrack.h:41
unsigned short nhity
number of hits in y-view
Definition: SRTrack.h:29
float trkfwdsteel
for Kalmantrack projected distance forwards, how much is through steel (ND only, currently is just di...
Definition: SRTrack.h:68
std::vector< SRMRProperties > mrbrem
cosmogenic Brem shower properties
Definition: SRTrack.h:55
float meantime
Average time weighted by the energy of the cell(s) hit.
Definition: SRTrack.h:77
float overlapE
overlapping energy calculated by the NumuEnergy/TrackOverlapECalc module.
Definition: SRTrack.h:45
float trkbakair
for Kalmantrack projected distance backwards how much is through air (ND only, NYI) ...
Definition: SRTrack.h:70
float pngminx
Minimum X that contain all the cell hits. [cm].
Definition: SRTrack.h:37
int trkfwdcellnd
track forward cell from end to detector edge with muon catcher included
Definition: SRTrack.h:58
This module creates Common Analysis Files.
Definition: FileReducer.h:10
float avedEdxlast10cm
Average dE/dx in the last 10 cm approximately.
Definition: SRTrack.h:72
std::vector< SRTrkME > me
Definition: SRTrack.h:52
SRVector3D stopdir
Track direction at end point [unit vector recommended].
Definition: SRTrack.h:47
double lenincat
track length in muon catcher
Definition: SRTrack.h:62
float trkfwddist
Kalmantrack projected distance (cm) from end point forwards to det edge.
Definition: SRTrack.h:66