ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
Hypothesis
eEmMultTestBench.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef GLOBALSIM_EMMULTTESTBENCH_H
6
#define GLOBALSIM_EMMULTTESTBENCH_H
7
8
/*
9
* Create and write out a FIFO (vector) of eEMTObs to the event store/
10
* This simulates the action of the APP FIFOs, which feed TOBs to the
11
* APU Algorithhms
12
*
13
*/
14
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
17
#include "
../GlobalSimComponents/ITIPWriterAlgTool.h
"
18
#include "
../IO/eEmTOB.h
"
19
20
#include <string>
21
#include <memory>
22
#include <fstream>
23
24
namespace
GlobalSim
{
25
26
32
33
34
35
class
eEmMultTestBench
:
public
AthAlgorithm
{
36
37
public
:
38
39
eEmMultTestBench
(
const
std::string& name, ISvcLocator *pSvcLocator);
40
41
virtual
StatusCode
initialize
()
override
;
42
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
43
44
private
:
45
46
SG::WriteHandleKey<GlobalSim::IOBitwise::eEmTOBContainer>
47
m_eEmTOBContainer_WriteKey
{
48
this
,
49
"eEmTOBs"
,
50
"eEmTOBs"
,
51
"Key for GlobalSim eEmTOB container"
};
52
53
54
SG::WriteHandleKey<TIPword>
55
m_TIPword_WriteKey
{
56
this
,
57
"TIPwordWriteKey"
,
58
"ExpectedTIPwords"
,
59
"key to write out expectations for the TIP word"
60
};
61
62
Gaudi::Property<std::string>
63
m_tobs_fileName
{
this
,
64
"tobs_fileName"
,
65
{
"GlobalSimulation/eEmMultTest_tobs.txt"
},
66
"name of file with Global Sim eEmTOB data"
};
67
68
Gaudi::Property<std::string>
69
m_TIPword_fileName
{
this
,
70
"TIPwords_fileName"
,
71
{
"GlobalSimulation/eEmMultTest_TIPwords.txt"
},
72
"name of file with expected TIP words"
};
73
74
75
std::unique_ptr<TIPword>
TIPword_from_file
()
const
;
76
77
std::ifstream
m_tob_stream
;
78
std::unique_ptr<std::ifstream>
m_TIPword_stream
{
nullptr
};
79
80
81
GlobalSim::IOBitwise::eEmTOB
*
make_tob
(
const
std::string& s)
const
;
82
83
};
84
85
}
86
#endif
AthAlgorithm.h
eEmTOB.h
ITIPWriterAlgTool.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
GlobalSim::IOBitwise::eEmTOB
Definition
Global/GlobalSimulation/src/IO/eEmTOB.h:24
GlobalSim::eEmMultTestBench::eEmMultTestBench
eEmMultTestBench(const std::string &name, ISvcLocator *pSvcLocator)
Definition
eEmMultTestBench.cxx:17
GlobalSim::eEmMultTestBench::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
eEmMultTestBench.cxx:69
GlobalSim::eEmMultTestBench::m_eEmTOBContainer_WriteKey
SG::WriteHandleKey< GlobalSim::IOBitwise::eEmTOBContainer > m_eEmTOBContainer_WriteKey
Definition
eEmMultTestBench.h:47
GlobalSim::eEmMultTestBench::m_TIPword_fileName
Gaudi::Property< std::string > m_TIPword_fileName
Definition
eEmMultTestBench.h:69
GlobalSim::eEmMultTestBench::make_tob
GlobalSim::IOBitwise::eEmTOB * make_tob(const std::string &s) const
Definition
eEmMultTestBench.cxx:115
GlobalSim::eEmMultTestBench::initialize
virtual StatusCode initialize() override
Definition
eEmMultTestBench.cxx:22
GlobalSim::eEmMultTestBench::m_tobs_fileName
Gaudi::Property< std::string > m_tobs_fileName
Definition
eEmMultTestBench.h:63
GlobalSim::eEmMultTestBench::m_TIPword_WriteKey
SG::WriteHandleKey< TIPword > m_TIPword_WriteKey
Definition
eEmMultTestBench.h:55
GlobalSim::eEmMultTestBench::m_TIPword_stream
std::unique_ptr< std::ifstream > m_TIPword_stream
Definition
eEmMultTestBench.h:78
GlobalSim::eEmMultTestBench::TIPword_from_file
std::unique_ptr< TIPword > TIPword_from_file() const
Definition
eEmMultTestBench.cxx:103
GlobalSim::eEmMultTestBench::m_tob_stream
std::ifstream m_tob_stream
Definition
eEmMultTestBench.h:77
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
Trigger/TrigT1/Global/GlobalSimulation/src/Egamma1BDT/Egamma1BDT/BDT.h:11
Generated on
for ATLAS Offline Software by
1.17.0