LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lcvn::LArTrainingData< T > Class Template Reference

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

#include "LArTrainingData.h"

Public Member Functions

 LArTrainingData ()
 
 LArTrainingData (const InteractionType &interaction, const PixelMap &pMap, const T info)
 
unsigned int NOutput () const
 
void FillOutputVector (float *output) const
 

Public Attributes

InteractionType fInt
 Class of the event. More...
 
PixelMap fPMap
 PixelMap for the event. More...
 
fInfo
 

Detailed Description

template<class T>
class lcvn::LArTrainingData< T >

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

Definition at line 63 of file LArTrainingData.h.

Constructor & Destructor Documentation

template<class T>
lcvn::LArTrainingData< T >::LArTrainingData ( )
inline

Definition at line 66 of file LArTrainingData.h.

References lcvn::interaction.

66 {};
template<class T >
lcvn::LArTrainingData< T >::LArTrainingData ( const InteractionType interaction,
const PixelMap pMap,
const T  info 
)

Definition at line 95 of file LArTrainingData.cxx.

98  : fInt(interaction), fPMap(pMap), fInfo(info)
99  {}
PixelMap fPMap
PixelMap for the event.
InteractionType fInt
Class of the event.

Member Function Documentation

template<class T >
void lcvn::LArTrainingData< T >::FillOutputVector ( float *  output) const

Definition at line 102 of file LArTrainingData.cxx.

References lcvn::LArTrainingData< T >::fInt, and lcvn::kNIntType.

103  {
104  for (unsigned int i = 0; i < kNIntType; ++i)
105  output[i] = 0;
106 
107  output[fInt] = 1;
108  }
Number of interaction types, used like a vector size.
InteractionType fInt
Class of the event.
template<class T>
unsigned int lcvn::LArTrainingData< T >::NOutput ( ) const
inline

Definition at line 69 of file LArTrainingData.h.

References lcvn::kNIntType.

69 { return (unsigned int)kNIntType; };
Number of interaction types, used like a vector size.

Member Data Documentation

template<class T>
T lcvn::LArTrainingData< T >::fInfo

Definition at line 75 of file LArTrainingData.h.

Referenced by lcvn::LArNuCVNZlibMaker::write_files().

template<class T>
InteractionType lcvn::LArTrainingData< T >::fInt

Class of the event.

Definition at line 73 of file LArTrainingData.h.

Referenced by lcvn::LArTrainingData< T >::FillOutputVector(), and lcvn::LArNuCVNZlibMaker::write_files().

template<class T>
PixelMap lcvn::LArTrainingData< T >::fPMap

PixelMap for the event.

Definition at line 74 of file LArTrainingData.h.

Referenced by lcvn::LArNuCVNZlibMaker::write_files().


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