ATLAS Offline Software
Reconstruction
LwtnnUtils
LwtnnUtils
FastInputPreprocessor.h
Go to the documentation of this file.
1
// this is -*- C++ -*-
2
/*
3
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4
*/
5
6
// Any modifications to this file may be copied to lwtnn[1] without
7
// attribution.
8
//
9
// [1]: https::www.github.com/lwtnn/lwtnn
10
11
12
#ifndef LWTNN_UTILS_FAST_INPUT_PREPROCESSOR_H
13
#define LWTNN_UTILS_FAST_INPUT_PREPROCESSOR_H
14
15
#include "lwtnn/lightweight_network_config.hh"
16
#include "lwtnn/Exceptions.hh"
17
19
#include "
EventPrimitives/EventPrimitives.h
"
20
21
#include <Eigen/Dense>
22
#include <vector>
23
24
namespace
lwt::atlas
{
25
26
using
Eigen::VectorXd;
27
using
Eigen::MatrixXd;
28
29
// ______________________________________________________________________
30
// input preprocessor (handles normalization and packing into Eigen)
31
32
class
FastInputPreprocessor
33
{
34
public
:
35
FastInputPreprocessor
(
const
std::vector<Input>&
inputs
,
36
const
std::vector<std::string>&
order
);
37
VectorXd
operator()
(
const
VectorXd&)
const
;
38
private
:
39
// input transformations
40
VectorXd
m_offsets
;
41
VectorXd
m_scales
;
42
std::vector<size_t>
m_indices
;
43
};
44
45
class
FastInputVectorPreprocessor
46
{
47
public
:
48
FastInputVectorPreprocessor
(
const
std::vector<Input>&
inputs
,
49
const
std::vector<std::string>&
order
);
50
MatrixXd
operator()
(
const
MatrixXd&)
const
;
51
private
:
52
// input transformations
53
VectorXd
m_offsets
;
54
VectorXd
m_scales
;
55
std::vector<size_t>
m_indices
;
56
};
57
}
58
59
60
#endif
lwt::atlas::FastInputPreprocessor::m_indices
std::vector< size_t > m_indices
Definition:
FastInputPreprocessor.h:42
lwt::atlas::FastInputPreprocessor::m_scales
VectorXd m_scales
Definition:
FastInputPreprocessor.h:41
postInclude.inputs
inputs
Definition:
postInclude.SortInput.py:15
lwt::atlas::FastInputVectorPreprocessor::m_scales
VectorXd m_scales
Definition:
FastInputPreprocessor.h:54
lwt::atlas::FastInputPreprocessor::FastInputPreprocessor
FastInputPreprocessor(const std::vector< Input > &inputs, const std::vector< std::string > &order)
Definition:
FastInputPreprocessor.cxx:44
lwt::atlas::FastInputVectorPreprocessor::FastInputVectorPreprocessor
FastInputVectorPreprocessor(const std::vector< Input > &inputs, const std::vector< std::string > &order)
Definition:
FastInputPreprocessor.cxx:75
mc.order
order
Configure Herwig7.
Definition:
mc.Herwig7_Dijet.py:12
lwt::atlas::FastInputVectorPreprocessor
Definition:
FastInputPreprocessor.h:46
lwt::atlas::FastInputVectorPreprocessor::m_offsets
VectorXd m_offsets
Definition:
FastInputPreprocessor.h:53
lwt::atlas
Ensure that the extensions for the Vector3D are properly loaded.
Definition:
LWTNNCondAlg.h:24
lwt::atlas::FastInputPreprocessor::m_offsets
VectorXd m_offsets
Definition:
FastInputPreprocessor.h:40
EventPrimitives.h
lwt::atlas::FastInputVectorPreprocessor::m_indices
std::vector< size_t > m_indices
Definition:
FastInputPreprocessor.h:55
lwt::atlas::FastInputPreprocessor::operator()
VectorXd operator()(const VectorXd &) const
Definition:
FastInputPreprocessor.cxx:58
lwt::atlas::FastInputVectorPreprocessor::operator()
MatrixXd operator()(const MatrixXd &) const
Definition:
FastInputPreprocessor.cxx:94
lwt::atlas::FastInputPreprocessor
Definition:
FastInputPreprocessor.h:33
Generated on Thu Nov 7 2024 21:15:11 for ATLAS Offline Software by
1.8.18