Public Member Functions | Public Attributes | List of all members
cvn::TrainingData Class Reference

The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes into the ANN. More...

#include <TrainingData.h>

Public Member Functions

 TrainingData ()
 
 TrainingData (const InteractionType &interaction, float nuEnergy, float lepEnergy, float nueEnergy, float numuEnergy, float nutauEnergy, float weight, const PixelMap &pMap)
 
unsigned int NOutput () const
 
void FillOutputVector (float *output) const
 
void SetTopologyInformation (int pdg, int nproton, int npion, int npizero, int nneutron, int toptype, int toptypealt)
 

Public Attributes

InteractionType fInt
 Class of the event. More...
 
float fNuEnergy
 True energy of neutrino event. More...
 
float fLepEnergy
 True energy of outgoing lepton. More...
 
float fRecoNueEnergy
 Reconstructed energy under nue hypothesis. More...
 
float fRecoNumuEnergy
 Reconstructed energy under numu hypothesis. More...
 
float fRecoNutauEnergy
 Reconstructed energy under nutau hypothesis. More...
 
float fEventWeight
 The event weight (norm * oscProb) More...
 
bool fUseTopology
 
int fNuPDG
 
int fNProton
 
int fNPion
 
int fNPizero
 
int fNNeutron
 
int fTopologyType
 
int fTopologyTypeAlt
 
PixelMap fPMap
 PixelMap for the event. More...
 

Detailed Description

The TrainingData objects contains a PixelMap and the output class type, and any other bit that goes into the ANN.

Definition at line 20 of file TrainingData.h.

Constructor & Destructor Documentation

cvn::TrainingData::TrainingData ( )
inline

Definition at line 24 of file TrainingData.h.

24 {};
cvn::TrainingData::TrainingData ( const InteractionType interaction,
float  nuEnergy,
float  lepEnergy,
float  nueEnergy,
float  numuEnergy,
float  nutauEnergy,
float  weight,
const PixelMap pMap 
)

Definition at line 15 of file TrainingData.cxx.

19  :
21  fNuEnergy(nuEnergy),
22  fLepEnergy(lepEnergy),
23  fRecoNueEnergy(nueEnergy),
24  fRecoNumuEnergy(numuEnergy),
25  fRecoNutauEnergy(nutauEnergy),
27  fUseTopology(false),
28  fNuPDG(0),
29  fNProton(-1),
30  fNPion(-1),
31  fNPizero(-1),
32  fNNeutron(-1),
33  fTopologyType(-1),
34  fTopologyTypeAlt(-1),
35  fPMap(pMap)
36  { }
float fRecoNumuEnergy
Reconstructed energy under numu hypothesis.
Definition: TrainingData.h:45
InteractionType fInt
Class of the event.
Definition: TrainingData.h:41
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
float fRecoNutauEnergy
Reconstructed energy under nutau hypothesis.
Definition: TrainingData.h:46
float fEventWeight
The event weight (norm * oscProb)
Definition: TrainingData.h:47

Member Function Documentation

void cvn::TrainingData::FillOutputVector ( float *  output) const

Definition at line 39 of file TrainingData.cxx.

40  {
41  for(unsigned int i = 0; i < kNIntType; ++i)
42  output[i] = 0;
43 
44  output[fInt] = 1;
45  }
InteractionType fInt
Class of the event.
Definition: TrainingData.h:41
Number of interaction types, used like a vector size.
unsigned int cvn::TrainingData::NOutput ( ) const
inline

Definition at line 31 of file TrainingData.h.

31 {return (unsigned int)kNIntType;};
Number of interaction types, used like a vector size.
void cvn::TrainingData::SetTopologyInformation ( int  pdg,
int  nproton,
int  npion,
int  npizero,
int  nneutron,
int  toptype,
int  toptypealt 
)

Definition at line 47 of file TrainingData.cxx.

49  {
50 
51  fUseTopology = true;
52 
53  fNuPDG = pdg;
54  fNProton = nproton;
55  fNPion = npion;
56  fNPizero = npizero;
57  fNNeutron = nneutron;
58 
59  fTopologyType = toptype;
60  fTopologyTypeAlt = toptypealt;
61 
62  }

Member Data Documentation

float cvn::TrainingData::fEventWeight

The event weight (norm * oscProb)

Definition at line 47 of file TrainingData.h.

InteractionType cvn::TrainingData::fInt

Class of the event.

Definition at line 41 of file TrainingData.h.

float cvn::TrainingData::fLepEnergy

True energy of outgoing lepton.

Definition at line 43 of file TrainingData.h.

int cvn::TrainingData::fNNeutron

Definition at line 55 of file TrainingData.h.

int cvn::TrainingData::fNPion

Definition at line 53 of file TrainingData.h.

int cvn::TrainingData::fNPizero

Definition at line 54 of file TrainingData.h.

int cvn::TrainingData::fNProton

Definition at line 52 of file TrainingData.h.

float cvn::TrainingData::fNuEnergy

True energy of neutrino event.

Definition at line 42 of file TrainingData.h.

int cvn::TrainingData::fNuPDG

Definition at line 51 of file TrainingData.h.

PixelMap cvn::TrainingData::fPMap

PixelMap for the event.

Definition at line 59 of file TrainingData.h.

float cvn::TrainingData::fRecoNueEnergy

Reconstructed energy under nue hypothesis.

Definition at line 44 of file TrainingData.h.

float cvn::TrainingData::fRecoNumuEnergy

Reconstructed energy under numu hypothesis.

Definition at line 45 of file TrainingData.h.

float cvn::TrainingData::fRecoNutauEnergy

Reconstructed energy under nutau hypothesis.

Definition at line 46 of file TrainingData.h.

int cvn::TrainingData::fTopologyType

Definition at line 56 of file TrainingData.h.

int cvn::TrainingData::fTopologyTypeAlt

Definition at line 57 of file TrainingData.h.

bool cvn::TrainingData::fUseTopology

Definition at line 50 of file TrainingData.h.


The documentation for this class was generated from the following files: