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 "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/CVN/func/TrainingData.h"

Public Member Functions

 TrainingData ()
 
 TrainingData (const InteractionType &interaction, const ParentParticleType &parentparticle, const FinalStateType &finalstate, const FinalStateProngsType &finalstateprongs, const ParticlesType &finalstatelong, float nuEnergy, float lepEnergy, double vtxx, double vtxy, double vtxz, const PixelMap &pMap)
 
 TrainingData (const InteractionType &interaction, const FinalStateType &finalstate, const FinalStateProngsType &finalstateprongs, float nuEnergy, float lepEnergy, const PixelMap &pMap)
 
unsigned int NOutput () const
 
unsigned int NPPtOutput () const
 
unsigned int NFStOutput () const
 
unsigned int NFSpOutput () const
 
unsigned int NSimpleOutput () const
 
void FillOutputVector (float *output) const
 
void FillPPtOutputVector (float *output) const
 
void FillFStOutputVector (float *output) const
 
void FillFSpOutputVector (float *output) const
 
void FillFSlongOutputVector (float *output) const
 
void FillSimpleOutputVector (float *output) const
 

Public Attributes

ParentParticleType fPPt
 Class of the event by parent particle. More...
 
InteractionType fInt
 Class of the event. More...
 
FinalStateType fFSt
 Class of the event by final state. More...
 
FinalStateProngsType fFSp
 Class of the event by primary n prongs. More...
 
ParticlesType fFSlong
 Class of the event by primary n prongs. More...
 
float fNuEnergy
 True energy of neutrino event. More...
 
float fLepEnergy
 True energy of outgoing lepton. More...
 
double fVtxX
 True vertex of X position. More...
 
double fVtxY
 True vertex of Y position. More...
 
double fVtxZ
 True vertex of Z position. More...
 
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 23 of file TrainingData.h.

Constructor & Destructor Documentation

cvn::TrainingData::TrainingData ( )
inline

Definition at line 27 of file TrainingData.h.

References vtxx, vtxy, and vtxz.

27 {};
cvn::TrainingData::TrainingData ( const InteractionType interaction,
const ParentParticleType parentparticle,
const FinalStateType finalstate,
const FinalStateProngsType finalstateprongs,
const ParticlesType finalstatelong,
float  nuEnergy,
float  lepEnergy,
double  vtxx,
double  vtxy,
double  vtxz,
const PixelMap pMap 
)

Definition at line 14 of file TrainingData.cxx.

21  :
22  fPPt(parentparticle),
23  fInt(interaction),
24  fFSt(finalstate),
25  fFSp(finalstateprongs),
26  fFSlong(finalstatelong),
27  fNuEnergy(nuEnergy),
28  fLepEnergy(lepEnergy),
29  fVtxX(vtxx),
30  fVtxY(vtxy),
31  fVtxZ(vtxz),
32  fPMap(pMap)
33  { }
InteractionType fInt
Class of the event.
Definition: TrainingData.h:60
ParticlesType fFSlong
Class of the event by primary n prongs.
Definition: TrainingData.h:63
float vtxx
PixelMap fPMap
PixelMap for the event.
Definition: TrainingData.h:69
double fVtxY
True vertex of Y position.
Definition: TrainingData.h:67
float fLepEnergy
True energy of outgoing lepton.
Definition: TrainingData.h:65
float fNuEnergy
True energy of neutrino event.
Definition: TrainingData.h:64
float vtxy
double fVtxX
True vertex of X position.
Definition: TrainingData.h:66
float vtxz
FinalStateProngsType fFSp
Class of the event by primary n prongs.
Definition: TrainingData.h:62
double fVtxZ
True vertex of Z position.
Definition: TrainingData.h:68
ParentParticleType fPPt
Class of the event by parent particle.
Definition: TrainingData.h:59
FinalStateType fFSt
Class of the event by final state.
Definition: TrainingData.h:61
cvn::TrainingData::TrainingData ( const InteractionType interaction,
const FinalStateType finalstate,
const FinalStateProngsType finalstateprongs,
float  nuEnergy,
float  lepEnergy,
const PixelMap pMap 
)

Definition at line 35 of file TrainingData.cxx.

39  :
40  fInt(interaction),
41  fFSt(finalstate),
42  fFSp(finalstateprongs),
43  fNuEnergy(nuEnergy),
44  fLepEnergy(lepEnergy),
45  fPMap(pMap)
46  { }
InteractionType fInt
Class of the event.
Definition: TrainingData.h:60
PixelMap fPMap
PixelMap for the event.
Definition: TrainingData.h:69
float fLepEnergy
True energy of outgoing lepton.
Definition: TrainingData.h:65
float fNuEnergy
True energy of neutrino event.
Definition: TrainingData.h:64
FinalStateProngsType fFSp
Class of the event by primary n prongs.
Definition: TrainingData.h:62
FinalStateType fFSt
Class of the event by final state.
Definition: TrainingData.h:61

Member Function Documentation

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

Referenced by NSimpleOutput().

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

Definition at line 78 of file TrainingData.cxx.

References fFSp, MECModelEnuComparisons::i, and cvn::kNFSpType.

Referenced by NSimpleOutput().

79  {
80  for(unsigned int i = 0; i < kNFSpType; ++i)
81  output[i] = 0;
82 
83  output[fFSp] = 1;
84 
85  }
ofstream output
Number of interaction types, used like a vector size.
FinalStateProngsType fFSp
Class of the event by primary n prongs.
Definition: TrainingData.h:62
void cvn::TrainingData::FillFStOutputVector ( float *  output) const

Definition at line 69 of file TrainingData.cxx.

References fFSt, MECModelEnuComparisons::i, and cvn::kNFStType.

Referenced by NSimpleOutput().

70  {
71  for(unsigned int i = 0; i < kNFStType; ++i)
72  output[i] = 0;
73 
74  output[fFSt] = 1;
75 
76  }
ofstream output
Number of interaction types, used like a vector size.
FinalStateType fFSt
Class of the event by final state.
Definition: TrainingData.h:61
void cvn::TrainingData::FillOutputVector ( float *  output) const

Definition at line 49 of file TrainingData.cxx.

References fInt, MECModelEnuComparisons::i, and cvn::kNIntType.

Referenced by NSimpleOutput().

50  {
51  for(unsigned int i = 0; i < kNIntType; ++i)
52  output[i] = 0;
53 
54  output[fInt] = 1;
55 
56 
57 
58  }
ofstream output
InteractionType fInt
Class of the event.
Definition: TrainingData.h:60
Number of interaction types, used like a vector size.
void cvn::TrainingData::FillPPtOutputVector ( float *  output) const

Definition at line 60 of file TrainingData.cxx.

References fPPt, MECModelEnuComparisons::i, and cvn::kNPPtType.

Referenced by NSimpleOutput().

61  {
62  for(unsigned int i = 0; i < kNPPtType; ++i)
63  output[i] = 0;
64 
65  output[fPPt] = 1;
66 
67  }
ofstream output
Number of Parent Particle types, used like a vector size.
ParentParticleType fPPt
Class of the event by parent particle.
Definition: TrainingData.h:59
void cvn::TrainingData::FillSimpleOutputVector ( float *  output) const

Definition at line 87 of file TrainingData.cxx.

References fInt, cvn::GetSimpleNeutrinoType(), MECModelEnuComparisons::i, and cvn::kNSimpleNeutrinoType.

Referenced by NSimpleOutput().

88  {
89  for(unsigned int i = 0; i < kNSimpleNeutrinoType; ++i)
90  output[i] = 0;
91 
93 
94  output[fSimpInt] = 1;
95 
96  }
ofstream output
InteractionType fInt
Class of the event.
Definition: TrainingData.h:60
SimpleNeutrinoType GetSimpleNeutrinoType(const InteractionType &intType)
enum cvn::SimpleNeutrino SimpleNeutrinoType
Number of types, used like a vector size.
unsigned int cvn::TrainingData::NFSpOutput ( ) const
inline

Definition at line 46 of file TrainingData.h.

References cvn::kNFSpType.

46 {return (unsigned int)kNFSpType;};
Number of interaction types, used like a vector size.
unsigned int cvn::TrainingData::NFStOutput ( ) const
inline

Definition at line 45 of file TrainingData.h.

References cvn::kNFStType.

45 {return (unsigned int)kNFStType;};
Number of interaction types, used like a vector size.
unsigned int cvn::TrainingData::NOutput ( ) const
inline

Definition at line 43 of file TrainingData.h.

References cvn::kNIntType.

43 {return (unsigned int)kNIntType;};
Number of interaction types, used like a vector size.
unsigned int cvn::TrainingData::NPPtOutput ( ) const
inline

Definition at line 44 of file TrainingData.h.

References cvn::kNPPtType.

44 {return (unsigned int)kNPPtType;};
Number of Parent Particle types, used like a vector size.
unsigned int cvn::TrainingData::NSimpleOutput ( ) const
inline

Member Data Documentation

ParticlesType cvn::TrainingData::fFSlong

Class of the event by primary n prongs.

Definition at line 63 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().

FinalStateProngsType cvn::TrainingData::fFSp

Class of the event by primary n prongs.

Definition at line 62 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData(), and FillFSpOutputVector().

FinalStateType cvn::TrainingData::fFSt

Class of the event by final state.

Definition at line 61 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData(), and FillFStOutputVector().

InteractionType cvn::TrainingData::fInt

Class of the event.

Definition at line 60 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData(), FillOutputVector(), and FillSimpleOutputVector().

float cvn::TrainingData::fLepEnergy

True energy of outgoing lepton.

Definition at line 65 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().

float cvn::TrainingData::fNuEnergy

True energy of neutrino event.

Definition at line 64 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().

PixelMap cvn::TrainingData::fPMap
ParentParticleType cvn::TrainingData::fPPt

Class of the event by parent particle.

Definition at line 59 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData(), and FillPPtOutputVector().

double cvn::TrainingData::fVtxX

True vertex of X position.

Definition at line 66 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().

double cvn::TrainingData::fVtxY

True vertex of Y position.

Definition at line 67 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().

double cvn::TrainingData::fVtxZ

True vertex of Z position.

Definition at line 68 of file TrainingData.h.

Referenced by caf::FillCVNTrainingData().


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