ATLAS Offline Software
Loading...
Searching...
No Matches
Event
xAOD
xAODMeasurementBase
xAODMeasurementBase
EigenZeroDefs.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef XAODMEASUREMENTBASE_EIGENZERODEFS_H
14
#define XAODMEASUREMENTBASE_EIGENZERODEFS_H
15
16
17
#include "
EventPrimitives/EventPrimitives.h
"
18
#include "
AthContainers/tools/AuxDataTraits.h
"
19
20
21
namespace
SG
{
22
23
24
// The default Matrix constructor does not initialize the matrix contents.
25
// Specialize this for Matrix, so that when we have Matrix auxiliary variables,
26
// they'll be fully initialized after a resize, etc.
27
template
<
typename
SCALAR,
int
ROWS,
int
COLS,
int
OPTIONS,
int
MAXROWS,
int
MAXCOLS>
28
struct
Zero
<Eigen::
Matrix
<SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS> >
29
{
30
typedef
Eigen::Matrix<SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS>
Matrix
;
31
static
Matrix
zero
()
32
{
33
Matrix
m;
34
m.setZero();
35
return
m;
36
}
37
};
38
39
40
}
// namespace SG
41
42
43
#endif
// not XAODMEASUREMENTBASE_EIGENZERODEFS_H
AuxDataTraits.h
Allow customizing how aux data types are treated.
EventPrimitives.h
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
SG::Zero< Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > >::zero
static Matrix zero()
Definition
EigenZeroDefs.h:31
SG::Zero< Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > >::Matrix
Eigen::Matrix< SCALAR, ROWS, COLS, OPTIONS, MAXROWS, MAXCOLS > Matrix
Definition
EigenZeroDefs.h:30
SG::Zero
Helper to specialize how to make an initialized instance of T.
Definition
AuxDataTraits.h:135
Generated on
for ATLAS Offline Software by
1.14.0