Belle II Software development
CDCTriggerNeuroIDHistModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <trg/cdc/NeuroTrigger.h>
12#include <trg/cdc/NeuroTriggerParameters.h>
13#include <trg/cdc/NeuroTrainer.h>
14#include <framework/core/Module.h>
15#include <trg/cdc/dataobjects/CDCTriggerMLPData.h>
16
17namespace Belle2 {
26 public:
31
35 virtual void initialize() override;
36
40 virtual void event() override;
41
43 virtual void terminate() override;
44 private:
48 std::vector<CDCTriggerMLPData> m_trainSets_prepare;
58 std::string m_idHistName;
61 std::string m_configFileName;
69 std::string m_hitCollectionName;
74 };
76}
77
std::string m_idHistName
base name for idhist file and config file
NeuroTrigger::Parameters m_parameters
Parameters for the NeuroTrigger.
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.
std::string m_inputCollectionName
name of the event time StoreObjPtr
StoreArray< CDCTriggerTrack > m_tracks
List of input tracks.
std::vector< CDCTriggerMLPData > m_trainSets_prepare
dataset for all idhist prepare data
int m_nPrepare
Number of samples to prepare input ranges.
std::string m_writeconfigFileName
name for the output configuration file which holds all the parameters and the idhist tables for each ...
std::string m_configFileName
name for the input configuration file which holds all the parameters and the idhist tables for each e...
Base class for Modules.
Definition: Module.h:72
Class to represent the CDC Neurotrigger.
Definition: NeuroTrigger.h:40
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
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.
CDCTriggerNeuroIDHistModule()
Constructor, for setting module description and parameters.
Abstract base class for different kinds of events.
Struct to keep neurotrigger parameters.
Definition: NeuroTrigger.h:46