ATLAS Offline Software
PhysicsAnalysis
AnalysisCommon
PATInterfaces
Root
StreamTestWrapper.cxx
Go to the documentation of this file.
1
// Implementation of SysStreamTest for the streaming unit-test
2
// Author: Steve Farrell
3
4
#include <iostream>
5
6
#include <
PATInterfaces/StreamTestWrapper.h
>
7
8
namespace
SysStreamTest
9
{
10
11
// Constructor
12
StreamTestWrapper::StreamTestWrapper
(
CP::SystematicVariation
& sysVar,
13
CP::SystematicSet
& sysSet,
14
std::vector<CP::SystematicSet>& sysList)
15
: m_sysVar(sysVar), m_sysSet(sysSet), m_sysList(sysList)
16
{}
17
18
// Dump the systematics
19
void
StreamTestWrapper::print
()
20
{
21
std::cout <<
"StreamTestWrapper: printing my systematics"
<< std::endl;
22
std::cout <<
" sysVar: "
<< m_sysVar.name() << std::endl;
23
std::cout <<
" sysSet: "
<<
m_sysSet
.name() << std::endl;
24
std::cout <<
" sysList: "
<< std::endl;
25
for
(
unsigned
int
i
= 0;
i
<
m_sysList
.size(); ++
i
){
26
if
(
m_sysList
[
i
].
size
() == 0)
27
std::cout <<
" nominal"
<< std::endl;
28
else
29
std::cout <<
" "
<<
m_sysList
[
i
].name() << std::endl;
30
}
31
}
32
33
}
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition:
SystematicSet.h:31
SysStreamTest::StreamTestWrapper::m_sysSet
ClassDef(StreamTestWrapper, 1) private CP::SystematicSet m_sysSet
Definition:
StreamTestWrapper.h:37
CP::SystematicVariation
Definition:
SystematicVariation.h:47
SysStreamTest::StreamTestWrapper::print
void print()
Print the systematics.
Definition:
StreamTestWrapper.cxx:19
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
StreamTestWrapper.h
SysStreamTest
Definition:
StreamTestWrapper.h:12
lumiFormat.i
int i
Definition:
lumiFormat.py:85
SysStreamTest::StreamTestWrapper::m_sysList
std::vector< CP::SystematicSet > m_sysList
Definition:
StreamTestWrapper.h:43
SysStreamTest::StreamTestWrapper::StreamTestWrapper
StreamTestWrapper()
Default constructor.
Definition:
StreamTestWrapper.h:22
Generated on Fri Jan 10 2025 21:18:07 for ATLAS Offline Software by
1.8.18