Belle II Software development
KLMMuonIDDNNInputVariable.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 <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
24
25 public:
26
29
32
34 void setKLMMuonIDDNNInputVariable(const std::vector<float>& inputdata)
35 {
36 m_dataset.assign(inputdata.begin(), inputdata.end());
37 }
38
40 void addAdditionalInput(float input)
41 {
42 m_dataset.push_back(input);
43 }
44
46 float getInputVariable(const unsigned int iInput) const {return m_dataset[iInput];}
47
49 float getInputLength() const {return m_dataset.size();}
50
51 private:
52
54 std::vector<float> m_dataset;
55
58 };
60}
KLM MuonID DNN input variables datastore object to store the input variables for retraining KLMMuonID...
void addAdditionalInput(float input)
Add additional input variables.
ClassDef(KLMMuonIDDNNInputVariable, 1)
ClassDef.
float getInputLength() const
get the length of DNN input variables.
float getInputVariable(const unsigned int iInput) const
get the DNN input variable with index iInput.
std::vector< float > m_dataset
vector to store the input array of KLMMuonIDDNNExpertModule.
void setKLMMuonIDDNNInputVariable(const std::vector< float > &inputdata)
set the DNN input variables.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.