TrainingData.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file TrainingData.h
3 /// \brief The TrainingData objects contains a PixelMap and the
4 /// output class type, and any other bit that goes into the ANN
5 // \author radovic -- a.radovic@gmail.com
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef CVN_TRAININGDATA_H
8 #define CVN_TRAININGDATA_H
9 
12 
13 namespace cvn
14 {
15 
16 
17  /// \brief The TrainingData objects contains a PixelMap and the
18  /// output class type, and any other bit that goes into the ANN
19 
21  {
22 
23  public:
26  float nuEnergy, float lepEnergy,
27  float nueEnergy, float numuEnergy,
28  float nutauEnergy, float weight,
29  const PixelMap& pMap);
30 
31  unsigned int NOutput() const {return (unsigned int)kNIntType;};
32 
33  void FillOutputVector(float* output) const;
34 
35  // Set topology information separately to save having a large number of
36  // arguments in the constructor.
37  void SetTopologyInformation(int pdg, int nproton, int npion,
38  int npizero, int nneutron, int toptype,
39  int toptypealt);
40 
41  InteractionType fInt; ///< Class of the event
42  float fNuEnergy; ///< True energy of neutrino event
43  float fLepEnergy; ///< True energy of outgoing lepton
44  float fRecoNueEnergy; ///< Reconstructed energy under nue hypothesis
45  float fRecoNumuEnergy; ///< Reconstructed energy under numu hypothesis
46  float fRecoNutauEnergy; ///< Reconstructed energy under nutau hypothesis
47  float fEventWeight; ///< The event weight (norm * oscProb)
48 
49  // If we are using topology information, store it here
51  int fNuPDG;
52  int fNProton;
53  int fNPion;
54  int fNPizero;
55  int fNNeutron;
58 
59  PixelMap fPMap; ///< PixelMap for the event
60  };
61 
62 } // end namespace
63 
64 #endif // CVN_TRAININGDATA_H
65 //////////////////////////////////////////////////////////////////////////////
float fRecoNumuEnergy
Reconstructed energy under numu hypothesis.
Definition: TrainingData.h:45
InteractionType fInt
Class of the event.
Definition: TrainingData.h:41
unsigned int NOutput() const
Definition: TrainingData.h:31
enum cvn::Interaction InteractionType
Utility class for truth labels.
void FillOutputVector(float *output) const
float fRecoNueEnergy
Reconstructed energy under nue hypothesis.
Definition: TrainingData.h:44
weight
Definition: test.py:257
PixelMap fPMap
PixelMap for the event.
Definition: TrainingData.h:59
float fLepEnergy
True energy of outgoing lepton.
Definition: TrainingData.h:43
float fNuEnergy
True energy of neutrino event.
Definition: TrainingData.h:42
Number of interaction types, used like a vector size.
The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes i...
Definition: TrainingData.h:20
PixelMap, basic input to CVN neural net.
Definition: PixelMap.h:22
float fRecoNutauEnergy
Reconstructed energy under nutau hypothesis.
Definition: TrainingData.h:46
float fEventWeight
The event weight (norm * oscProb)
Definition: TrainingData.h:47
void SetTopologyInformation(int pdg, int nproton, int npion, int npizero, int nneutron, int toptype, int toptypealt)