12#include <framework/core/Module.h>
13#include <trg/cdc/NeuroTrigger.h>
14#include <trg/cdc/NeuroTriggerParameters.h>
15#include <trg/cdc/dataobjects/CDCTriggerMLPData.h>
17#include "boost/iostreams/filter/gzip.hpp"
18#include "boost/iostreams/filtering_streambuf.hpp"
19#include "boost/iostreams/filtering_stream.hpp"
20#include "boost/multi_array.hpp"
21#define BOOST_MULTI_ARRAY_NO_GENERATORS
45 virtual void event()
override;
50 bool loadIDHist(
const std::string& filename,
NeuroTrigger& neuro);
52 void saveData_gzip(
const std::string& filename,
const std::vector<CDCTriggerMLPData>& dataset,
53 boost::iostreams::filtering_streambuf<boost::iostreams::output> outStream);
std::string m_EventTimeName
name of the event time StoreObjPtr
std::vector< CDCTriggerMLPData > m_trainSet
Sets of training data for all sectors.
bool m_trainOnRecoTracks
Switch between MCParticles or RecoTracks as targets.
NeuroTriggerParameters m_neuroParameters
Parameters for the NeuroTrigger.
NeuroTrigger m_NeuroTrigger
Instance of the NeuroTrigger.
std::string m_targetCollectionName
Name of the MCParticles/RecoTracks collection used as target values.
bool m_neuroTrackInputMode
Switch to rescale out of range target values or ignore them.
std::string m_inputCollectionName
Name of the StoreArray containing the input 2D tracks.
StoreArray< CDCTriggerTrack > m_tracks
List of input tracks.
std::string m_filename
Name of gzip file where the training data are saved.
bool m_singleUse
use a track only once and not for every expert
std::string m_writeconfigFileName
Name of the configuration file used in the module to write the neuroparamters.
int m_trackcounter
counter for tracks
std::string m_hitCollectionName
Name of the StoreArray containing the input track segment hits.
virtual ~CDCTriggerNeuroDataModule()
Destructor.
std::string m_configFileName
Name of the configuration file used in the module to load the neuroparamters.
Class to represent the CDC Neurotrigger.
Accessor to arrays stored in the data store.
virtual void initialize() override
Initialize the module.
virtual void event() override
Called once for each event.
virtual void terminate() override
Do the training for all sectors.
CDCTriggerNeuroDataModule()
Constructor, for setting module description and parameters.
Abstract base class for different kinds of events.