8#ifndef GRLNEUROMODULE_H
9#define GRLNEUROMODULE_H
11#include <framework/core/Module.h>
13#include <trg/grl/GRLNeuro.h>
14#include <trg/grl/dataobjects/TRGGRLInfo.h>
15#include <trg/grl/dataobjects/GRLMLPData.h>
42 virtual void event()
override;
51 bool loadTraindata(
const std::string& filename,
const std::string& arrayname =
"trainSets");
The module for application of the neural networks of the GRL.
bool loadTraindata(const std::string &filename, const std::string &arrayname="trainSets")
Load saved training samples.
bool m_use_ecl
switch to use trg ecl cluster.
std::vector< float > TCThetaCOM
Polar angle of a given TRGcluster.
std::string m_HistFileName
Name of root file to save the histogram.
virtual void initialize() override
Initialize the module.
std::string m_TrgECLClusterName
Name of the StoreArray containing the ECL clusters.
std::vector< int > TCThetaID
TCID of a given TRGcluster.
GRLNeuro m_GRLNeuro
Instance of the NeuroTrigger.
virtual void event() override
Called once for each event.
GRLNeuro::Parameters m_parameters
Parameters for the NeuroTrigger.
GRLNeuroModule()
Constructor, for setting module description and parameters.
std::string m_arrayname
Name of the TObjArray holding the networks.
virtual void terminate() override
This method is called at the end of the event processing.
std::vector< std::string > m_weightFileNames
Name of file where network weights etc.
std::string m_GRLCollectionName
Name of the StoreObj containing the input GRL.
bool m_use_klm
switch to use trg klm summary.
std::string m_TrgGrlInformationName
name of TRG GRL information object
bool m_saveHist
save the output histogram
std::vector< float > TCPhiCOM
Azimuth angle of a given TRGcluster.
std::vector< float > m_nn_thres
cut on MVA to separate signal
std::vector< float > m_nNodes
Number of nodes in all laysers.
bool m_use_cdc
switch to use cdc tracks.
std::vector< TH1D * > h_target
Histograms to save the NN classifiers.
int trainMode
selection which is signal and which is background
virtual ~GRLNeuroModule()
Destructor.
std::vector< std::string > m_biasFileNames
Name of file where network bias etc.
Class to represent the GRL Neuro.
Abstract base class for different kinds of events.
Struct to keep neurotrigger parameters.