SRProng.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRProng.h
3 // \version $Id: SRProng.h,v 1.4 2012-11-13 22:06:10 rocco Exp $
4 // \author $Author: rocco $
5 // \date $Date: 2012-11-13 22:06:10 $
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef SRPRONG_H
8 #define SRPRONG_H
9 
12 #include "StandardRecord/SREnums.h"
17 
18 namespace caf
19 {
20  /// An SRProng is a simple descriptor for a prong. This class does not
21  /// contain individual cell hits, but does know it's start point and
22  /// direction.
23  class SRProng
24  {
25  public:
26  SRProng();
27 
28  ~SRProng(){ };
29 
30  unsigned short nhit; ///< number of hits
31  unsigned short nhitx; ///< number of hits in x-view
32  unsigned short nhity; ///< number of hits in y-view
33  unsigned short nplane; ///< number of planes spanned
34  unsigned short maxplanecont; ///< maximum number of contiguous planes in prong
35  unsigned short maxplanegap; ///< maximum number of gapped planes in prong
36  float calE; ///< energy based on summed calibrated deposited charge [GeV]
37  float weightedCalE; ///< calE, weighted to take into account hits shared between prongs [GeV]
38  SRVector3D start; ///< Shower start point in detector coordinates. [cm]
39  SRVector3D dir; ///< Shower direction at start point [unit vector recommended]
40  float pngminx; ///< Minimum X that contain all the cell hits. [cm]
41  float pngmaxx; ///< Maximum X that contain all the cell hits. [cm]
42  float pngminy; ///< Minimum Y that contain all the cell hits. [cm]
43  float pngmaxy; ///< Maximum Y that contain all the cell hits. [cm]
44  float len; ///< track length [cm]
45  View_t view; ///< Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2
46  SRParticleTruth truth; ///< Truth information for the prong
47  SRParticleTruth truthXView; ///< Truth information for the prong
48  SRParticleTruth truthYView; ///< Truth information for the prong
49  SRCVNNeutronDaughterResult cvnneutron; ///< Neutron Daughter CVN information
50  SRCVNParticleResult cvnpart; ///< CVN prongID information for 4 views
51  SRCVNParticleResult cvnpart_opphorn; ///< cvnpart trained with opposite horn current
52  SRCVNParticleResult spprongcvnpart5label; ///< Single particle-trained prong CVN, Electron/Photon/Proton/Pion/Muon
53  SRCVNParticleResult spprongcvnpartnumuccemid; ///< Single particle-trained prong CVN for NumuCC (exclude muons in training sample), EMid
54 
55  std::vector<SRPixelMap> cvnmaps; ///<Pixel maps used in CVN evaluation and training 80 cells x 100 planes in each view
56  std::vector<SRProngTrainingData> prongtrainingdata; ///<Prong label information
57 
58  float meantime; ///< Average time of cell(s) hits weighted by their energy
59  float maxtime; ///< Max time of cell(s) hits
60  float mintime; ///< Min time of cell(s) hits
61  float meantimeRes; ///< Average time of cell(s) hits weighted by their time resolution
62 
63 
64  };
65 
66 } // end namespace
67 
68 #endif // SRPRONG_H
69 //////////////////////////////////////////////////////////////////////////////
unsigned short nhity
number of hits in y-view
Definition: SRProng.h:32
float pngmaxx
Maximum X that contain all the cell hits. [cm].
Definition: SRProng.h:41
SRParticleTruth truthXView
Truth information for the prong.
Definition: SRProng.h:47
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:14
float weightedCalE
calE, weighted to take into account hits shared between prongs [GeV]
Definition: SRProng.h:37
SRCVNParticleResult cvnpart_opphorn
cvnpart trained with opposite horn current
Definition: SRProng.h:51
float len
track length [cm]
Definition: SRProng.h:44
float pngminy
Minimum Y that contain all the cell hits. [cm].
Definition: SRProng.h:42
View_t
Detector view, following GeometryObjects/PlaneGeo.h.
Definition: SREnums.h:20
SRVector3D start
Shower start point in detector coordinates. [cm].
Definition: SRProng.h:38
float mintime
Min time of cell(s) hits.
Definition: SRProng.h:60
The truth information of reco objects within a slice.
unsigned short nhitx
number of hits in x-view
Definition: SRProng.h:31
SRCVNParticleResult cvnpart
CVN prongID information for 4 views.
Definition: SRProng.h:50
SRCVNParticleResult spprongcvnpart5label
Single particle-trained prong CVN, Electron/Photon/Proton/Pion/Muon.
Definition: SRProng.h:52
View_t view
Prong view caf::kX = 0, caf::kY = 1 or caf::kXorY = 2.
Definition: SRProng.h:45
float meantime
Average time of cell(s) hits weighted by their energy.
Definition: SRProng.h:58
CVN PID output for a single particle.
float pngminx
Minimum X that contain all the cell hits. [cm].
Definition: SRProng.h:40
float maxtime
Max time of cell(s) hits.
Definition: SRProng.h:59
std::vector< SRProngTrainingData > prongtrainingdata
Prong label information.
Definition: SRProng.h:56
unsigned short maxplanegap
maximum number of gapped planes in prong
Definition: SRProng.h:35
CVN PID output for a single particle.
float meantimeRes
Average time of cell(s) hits weighted by their time resolution.
Definition: SRProng.h:61
SRParticleTruth truth
Truth information for the prong.
Definition: SRProng.h:46
SRCVNNeutronDaughterResult cvnneutron
Neutron Daughter CVN information.
Definition: SRProng.h:49
SRParticleTruth truthYView
Truth information for the prong.
Definition: SRProng.h:48
float pngmaxy
Maximum Y that contain all the cell hits. [cm].
Definition: SRProng.h:43
unsigned short nplane
number of planes spanned
Definition: SRProng.h:33
unsigned short maxplanecont
maximum number of contiguous planes in prong
Definition: SRProng.h:34
unsigned short nhit
number of hits
Definition: SRProng.h:28
SRVector3D dir
Shower direction at start point [unit vector recommended].
Definition: SRProng.h:39
SRCVNParticleResult spprongcvnpartnumuccemid
Single particle-trained prong CVN for NumuCC (exclude muons in training sample), EMid.
Definition: SRProng.h:53
This module creates Common Analysis Files.
Definition: FileReducer.h:10
std::vector< SRPixelMap > cvnmaps
Pixel maps used in CVN evaluation and training 80 cells x 100 planes in each view.
Definition: SRProng.h:55
float calE
energy based on summed calibrated deposited charge [GeV]
Definition: SRProng.h:36