8 #ifndef CDCTRIGGERMLPDATA_H
9 #define CDCTRIGGERMLPDATA_H
29 std::vector<unsigned short> counters;
30 counters.assign(nWires, 0);
36 void addHit(
unsigned iSL,
int iTS);
40 void addSample(
const std::vector<float>& input,
const std::vector<float>& target)
Struct for training data of a single MLP for the neuro trigger.
std::vector< std::vector< unsigned short > > hitCounters
hit counter of active track segment IDs, used to determine the relevant id range for an MLP.
short getTrackCounter() const
get track counter
void addSample(const std::vector< float > &input, const std::vector< float > &target)
add a pair of input and target
void addHit(unsigned iSL, int iTS)
increase counter for super layer and track segment number in super layer.
ClassDef(CDCTriggerMLPData, 1)
Needed to make the ROOT object storable.
void countTrack()
increase track counter
std::vector< std::vector< float > > targetSamples
list of target values for network training.
unsigned short getHitCounter(unsigned iSL, int iTS) const
get hit counter for super layer and track segment number is super layer.
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
std::vector< std::vector< float > > inputSamples
list of input vectors for network training.
void addCounters(unsigned nWires)
add hit counters for a layer with nWires
CDCTriggerMLPData()
default constructor.
~CDCTriggerMLPData()
destructor, empty because we don't allocate memory anywhere.
short trackCounter
number of tracks used for the hit counter.
const std::vector< float > & getTarget(unsigned i) const
get target value of sample i
Abstract base class for different kinds of events.