Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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 Apr 10 2025 21:10:40 for ATLAS Offline Software by
1.8.18