All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CRUMBSResult.h
Go to the documentation of this file.
1 // Class for holding the result of the CRUMBS slice ID
2 #include <limits>
3 
4 #ifndef sbnobj_CRUMBSResult_H
5 #define sbnobj_CRUMBSResult_H
6 
7 namespace sbn {
8 
9  constexpr int default_int = std::numeric_limits<int>::max();
10  constexpr float default_float = std::numeric_limits<float>::signaling_NaN();
11 
12  class CRUMBSResult {
13  public:
14 
22 
23  float score; //!< CRUMBS result, for inclusive neutrino signal
24  float ccnumuscore; //!< CRUMBS result, for CCNuMu signal
25  float ccnuescore; //!< CRUMBS result, for CCNuE signal
26  float ncscore; //!< CRUMBS result, for NC signal
27  float bestscore; //!< Best score from the three signal-specific versions
28  int bestid; //!< ID corresponding to the best score, 14 for CCNuMu, 12 for CCNuE, 1 for NC
29  float tpc_CRFracHitsInLongestTrack; //!< fraction of slice’s space points in longest track (cosmic reco)
30  float tpc_CRLongestTrackDeflection; //!< 1 - the cosine of the angle between the starting and finishing directions of the longest track (cosmic reco)
31  float tpc_CRLongestTrackDirY; //!< relative direction of the longest track in Y (cosmic reco)
32  int tpc_CRNHitsMax; //!< the number of space points in the largest pfp
33  float tpc_NuEigenRatioInSphere; //!< the ratio between the first and second eigenvalues from a PCA of spacepoints within 10cm of the vertex (nu reco)
34  int tpc_NuNFinalStatePfos; //!< the number of final state pfos (nu reco)
35  int tpc_NuNHitsTotal; //!< the total number of space points (nu reco)
36  int tpc_NuNSpacePointsInSphere; //!< the total number of space points within 10cm of the vertex (nu reco)
37  float tpc_NuVertexY; //!< the vertex position in Y (nu reco) [cm]
38  float tpc_NuWeightedDirZ; //!< the Z component of the space-point weighted direction of the final state pfos (nu reco)
39  float tpc_StoppingChi2CosmicRatio; //!< a ratio of chi2 values intended to find Bragg peaks in stopping muon tracks
40  float pds_FMTotalScore; //!< the total flash match score
41  float pds_FMPE; //!< the total number of photoelectrons in the associated flash
42  float pds_FMTime; //!< the time associated with the flash [us]
43  float crt_TrackScore; //!< a combination of the DCA and angle between the best matched TPC & CRT tracks
44  float crt_HitScore; //!< the best distance from an extrapolated TPC track to a CRT hit [cm]
45  float crt_TrackTime; //!< the time associated with the matched CRT track [us]
46  float crt_HitTime; //!< the time associated with the matched CRT hit [us]
47  };
48 }
49 
50 #endif
float tpc_CRFracHitsInLongestTrack
fraction of slice’s space points in longest track (cosmic reco)
Definition: CRUMBSResult.h:29
float crt_HitTime
the time associated with the matched CRT hit [us]
Definition: CRUMBSResult.h:46
float tpc_CRLongestTrackDeflection
1 - the cosine of the angle between the starting and finishing directions of the longest track (cosmi...
Definition: CRUMBSResult.h:30
constexpr float default_float
Definition: CRUMBSResult.h:10
int tpc_NuNHitsTotal
the total number of space points (nu reco)
Definition: CRUMBSResult.h:35
float ncscore
CRUMBS result, for NC signal.
Definition: CRUMBSResult.h:26
int bestid
ID corresponding to the best score, 14 for CCNuMu, 12 for CCNuE, 1 for NC.
Definition: CRUMBSResult.h:28
float tpc_NuEigenRatioInSphere
the ratio between the first and second eigenvalues from a PCA of spacepoints within 10cm of the verte...
Definition: CRUMBSResult.h:33
float pds_FMTotalScore
the total flash match score
Definition: CRUMBSResult.h:40
float ccnumuscore
CRUMBS result, for CCNuMu signal.
Definition: CRUMBSResult.h:24
float score
CRUMBS result, for inclusive neutrino signal.
Definition: CRUMBSResult.h:23
float tpc_NuVertexY
the vertex position in Y (nu reco) [cm]
Definition: CRUMBSResult.h:37
float pds_FMTime
the time associated with the flash [us]
Definition: CRUMBSResult.h:42
float crt_TrackTime
the time associated with the matched CRT track [us]
Definition: CRUMBSResult.h:45
CRUMBSResult(float score=default_float, float ccnumuscore=default_float, float ccnuescore=default_float, float ncscore=default_float, float bestscore=default_float, int bestid=default_int, float tpc_CRFracHitsInLongestTrack=default_float, float tpc_CRLongestTrackDeflection=default_float, float tpc_CRLongestTrackDirY=default_float, int tpc_CRNHitsMax=default_int, float tpc_NuEigenRatioInSphere=default_float, int tpc_NuNFinalStatePfos=default_int, int tpc_NuNHitsTotal=default_int, int tpc_NuNSpacePointsInSphere=default_int, float tpc_NuVertexY=default_float, float tpc_NuWeightedDirZ=default_float, float tpc_StoppingChi2CosmicRatio=default_float, float pds_FMTotalScore=default_float, float pds_FMPE=default_float, float pds_FMTime=default_float, float crt_TrackScore=default_float, float crt_HitScore=default_float, float crt_TrackTime=default_float, float crt_HitTime=default_float)
Definition: CRUMBSResult.cc:3
int tpc_CRNHitsMax
the number of space points in the largest pfp
Definition: CRUMBSResult.h:32
float pds_FMPE
the total number of photoelectrons in the associated flash
Definition: CRUMBSResult.h:41
float crt_HitScore
the best distance from an extrapolated TPC track to a CRT hit [cm]
Definition: CRUMBSResult.h:44
float tpc_NuWeightedDirZ
the Z component of the space-point weighted direction of the final state pfos (nu reco) ...
Definition: CRUMBSResult.h:38
float tpc_CRLongestTrackDirY
relative direction of the longest track in Y (cosmic reco)
Definition: CRUMBSResult.h:31
float bestscore
Best score from the three signal-specific versions.
Definition: CRUMBSResult.h:27
int tpc_NuNFinalStatePfos
the number of final state pfos (nu reco)
Definition: CRUMBSResult.h:34
float tpc_StoppingChi2CosmicRatio
a ratio of chi2 values intended to find Bragg peaks in stopping muon tracks
Definition: CRUMBSResult.h:39
constexpr int default_int
Definition: CRUMBSResult.h:9
float crt_TrackScore
a combination of the DCA and angle between the best matched TPC &amp; CRT tracks
Definition: CRUMBSResult.h:43
float ccnuescore
CRUMBS result, for CCNuE signal.
Definition: CRUMBSResult.h:25
int tpc_NuNSpacePointsInSphere
the total number of space points within 10cm of the vertex (nu reco)
Definition: CRUMBSResult.h:36