Belle II Software
release-08-01-10
|
Struct for training data of a single MLP for the neuro trigger. More...
#include <CDCTriggerMLPData.h>
Classes | |
struct | HeaderSet |
struct | NeuroSet |
Struct to keep one set of training data for either training, validation or testing. More... | |
Public Member Functions | |
CDCTriggerMLPData () | |
default constructor. | |
~CDCTriggerMLPData () | |
destructor, empty because we don't allocate memory anywhere. | |
void | addCounters (unsigned nWires) |
add hit counters for a layer with nWires | |
void | addHit (unsigned iSL, int iTS) |
increase counter for super layer and track segment number in super layer. More... | |
void | countTrack () |
increase track counter | |
template<unsigned inLen, unsigned outLen> | |
void | addSample (const NeuroSet< inLen, outLen > &dsample) |
void | addSample (const std::vector< float > &input, const std::vector< float > &target, const int &expnumber, const int &runnumber, const int &subrunnumber, const int &eventnumber, const int &tracknumber) |
add a pair of input and target | |
short | getTrackCounter () const |
get track counter | |
unsigned short | getHitCounter (unsigned iSL, int iTS) const |
get hit counter for super layer and track segment number is super layer. More... | |
unsigned | nSamples () const |
get number of samples (same for input and target) | |
const std::vector< float > & | getInput (unsigned i) const |
get input vector of sample i | |
const std::vector< float > & | getTarget (unsigned i) const |
get target value of sample i | |
const std::vector< int > & | getevtList () const |
const std::vector< int > & | getEvtList () const |
const std::vector< int > & | getExpList () const |
const std::vector< int > & | getRunList () const |
const std::vector< int > & | getSubRunList () const |
const std::vector< int > & | getTrackList () const |
const int & | getevtnum (unsigned i) const |
Private Member Functions | |
ClassDef (CDCTriggerMLPData, 3) | |
Needed to make the ROOT object storable. | |
Private Attributes | |
std::vector< std::vector< float > > | m_inputSamples |
list of input vectors for network training. | |
std::vector< std::vector< float > > | m_targetSamples |
list of target values for network training. | |
std::vector< std::vector< unsigned short > > | m_hitCounters |
hit counter of active track segment IDs, used to determine the relevant id range for an MLP. | |
short | m_trackCounter |
number of tracks used for the hit counter. | |
std::vector< int > | m_expList |
Vectors for experiment, run, event and tracknumber. | |
std::vector< int > | m_runList |
std::vector< int > | m_subRunList |
std::vector< int > | m_evtList |
List for debug purposes to store the event number for every entry of input/target vector. | |
std::vector< int > | m_trackList |
Struct for training data of a single MLP for the neuro trigger.
Definition at line 27 of file CDCTriggerMLPData.h.
void addHit | ( | unsigned | iSL, |
int | iTS | ||
) |
increase counter for super layer and track segment number in super layer.
track segment number can be negative. hits in the wrong hemisphere (not in [-nWires/4, nWires/4]) are skipped.
Definition at line 13 of file CDCTriggerMLPData.cc.
unsigned short getHitCounter | ( | unsigned | iSL, |
int | iTS | ||
) | const |
get hit counter for super layer and track segment number is super layer.
track segment number can be negative.
Definition at line 31 of file CDCTriggerMLPData.cc.