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
13
namespace
Belle2
{
23
class
KLMMuonIDDNNInputVariable
:
public
RelationsObject
{
24
25
public
:
26
28
KLMMuonIDDNNInputVariable
() {};
29
31
virtual
~KLMMuonIDDNNInputVariable
() {};
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
57
ClassDef
(
KLMMuonIDDNNInputVariable
, 1);
58
};
60
}
Belle2::KLMMuonIDDNNInputVariable
KLM MuonID DNN input variables datastore object to store the input variables for retraining KLMMuonID...
Definition:
KLMMuonIDDNNInputVariable.h:23
Belle2::KLMMuonIDDNNInputVariable::KLMMuonIDDNNInputVariable
KLMMuonIDDNNInputVariable()
constructor
Definition:
KLMMuonIDDNNInputVariable.h:28
Belle2::KLMMuonIDDNNInputVariable::addAdditionalInput
void addAdditionalInput(float input)
Add additional input variables.
Definition:
KLMMuonIDDNNInputVariable.h:40
Belle2::KLMMuonIDDNNInputVariable::ClassDef
ClassDef(KLMMuonIDDNNInputVariable, 1)
ClassDef.
Belle2::KLMMuonIDDNNInputVariable::getInputLength
float getInputLength() const
get the length of DNN input variables.
Definition:
KLMMuonIDDNNInputVariable.h:49
Belle2::KLMMuonIDDNNInputVariable::getInputVariable
float getInputVariable(const unsigned int iInput) const
get the DNN input variable with index iInput.
Definition:
KLMMuonIDDNNInputVariable.h:46
Belle2::KLMMuonIDDNNInputVariable::~KLMMuonIDDNNInputVariable
virtual ~KLMMuonIDDNNInputVariable()
destructor
Definition:
KLMMuonIDDNNInputVariable.h:31
Belle2::KLMMuonIDDNNInputVariable::m_dataset
std::vector< float > m_dataset
vector to store the input array of KLMMuonIDDNNExpertModule.
Definition:
KLMMuonIDDNNInputVariable.h:54
Belle2::KLMMuonIDDNNInputVariable::setKLMMuonIDDNNInputVariable
void setKLMMuonIDDNNInputVariable(const std::vector< float > &inputdata)
set the DNN input variables.
Definition:
KLMMuonIDDNNInputVariable.h:34
Belle2::RelationsInterface
Defines interface for accessing relations of objects in StoreArray.
Definition:
RelationsObject.h:100
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
reconstruction
dataobjects
include
KLMMuonIDDNNInputVariable.h
Generated on Fri Nov 8 2024 02:41:08 for Belle II Software by
1.9.6