All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SRTrackTruth.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRTrackTruth.h
3 ////////////////////////////////////////////////////////////////////////
4 #ifndef SRTRACKTRUTH_H
5 #define SRTRACKTRUTH_H
6 
9 
10 #include <vector>
11 
12 namespace caf
13 {
14  /// Truth matching information between a SRTrack and a list of SRTrueParticle objects
15  /// matching is done using the sum of energies on each plane, so energy variables use the sum of energy
16  /// seen by each plane
17  //
18  // TODO: should this be done differently? Use the best plane?
19  class SRTrackTruth {
20  public:
21  SRTrackTruth(); //!< Constructor
22  float visEintrk; //!< True total deposited energy associated with this Track across all 3 planes [GeV]. NOTE: this energy is a sum of the depoisted energy as seen individually by each plane
23  float eff; //!< Cluster efficiency for best matched particle
24  float eff_cryo; //!< Clsuter efficiency for best matched particle, for the cryostat this cluster is in
25  float pur; //!< Cluster purity for best matched particle
26 
27  int nmatches; //!< Number of matches
28  std::vector<SRParticleMatch> matches; //!< List of particle matches, sorted by most energy matched */
29  SRParticleMatch bestmatch; //!< Best match for track (most energy). Same as index-0 of matches. Useful for columnar analyses.
30  SRTrueParticle p; //!< A copy of the true particle for the best match. Set to nonsense if there is no such match.
31  };
32 } // end namespace
33 
34 #endif // SRTRACKTRUTH_H
35 //////////////////////////////////////////////////////////////////////////////
SRTrueParticle p
A copy of the true particle for the best match. Set to nonsense if there is no such match...
Definition: SRTrackTruth.h:30
int nmatches
Number of matches.
Definition: SRTrackTruth.h:27
float eff
Cluster efficiency for best matched particle.
Definition: SRTrackTruth.h:23
float visEintrk
True total deposited energy associated with this Track across all 3 planes [GeV]. NOTE: this energy i...
Definition: SRTrackTruth.h:22
std::vector< SRParticleMatch > matches
List of particle matches, sorted by most energy matched */.
Definition: SRTrackTruth.h:28
float pur
Cluster purity for best matched particle.
Definition: SRTrackTruth.h:25
SRTrackTruth()
Constructor.
SRParticleMatch bestmatch
Best match for track (most energy). Same as index-0 of matches. Useful for columnar analyses...
Definition: SRTrackTruth.h:29
Representation of a simb::MCParticle, knows energy, direction,.
Match from a reconstructed track to a true particle */.
float eff_cryo
Clsuter efficiency for best matched particle, for the cryostat this cluster is in.
Definition: SRTrackTruth.h:24