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>
16#include <framework/database/DBObjPtr.h>
17#include <trg/grl/dbobjects/TRGGRLConfig.h>
47 virtual void event()
override;
56 bool loadTraindata(
const std::string& filename,
const std::string& arrayname =
"trainSets");
Class for accessing objects in the database.
bool loadTraindata(const std::string &filename, const std::string &arrayname="trainSets")
Load saved training samples.
std::vector< double > TCThetaLab
Polar angle of a given TRGcluster.
DBObjPtr< TRGGRLConfig > m_db_trggrlconfig
dbobject to store grl config
bool m_use_ecl
switch to use trg ecl cluster.
std::vector< double > TCPhiLab
Azimuthal 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.
virtual void beginRun() override
Register run-dependent DataStore arrays.
std::string m_TrgGrlInformationName
name of TRG GRL information object
bool m_saveHist
save the output histogram
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
bool m_useDB
flag to use database to load config
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.