ATLAS Offline Software
Loading...
Searching...
No Matches
eEmMultTestBench.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
16
19
20#include <string>
21#include <memory>
22#include <fstream>
23
24namespace GlobalSim {
25
26
32
33
34
36
37 public:
38
39 eEmMultTestBench(const std::string& name, ISvcLocator *pSvcLocator);
40
41 virtual StatusCode initialize () override;
42 virtual StatusCode execute () override;
43
44 private:
45
48 this,
49 "eEmTOBs",
50 "eEmTOBs",
51 "Key for GlobalSim eEmTOB container"};
52
53
56 this,
57 "TIPwordWriteKey",
58 "ExpectedTIPwords",
59 "key to write out expectations for the TIP word"
60 };
61
62 Gaudi::Property<std::string>
64 "tobs_fileName",
65 {"GlobalSimulation/eEmMultTest_tobs.txt"},
66 "name of file with Global Sim eEmTOB data"};
67
68 Gaudi::Property<std::string>
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(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
eEmMultTestBench(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< GlobalSim::IOBitwise::eEmTOBContainer > m_eEmTOBContainer_WriteKey
Gaudi::Property< std::string > m_TIPword_fileName
GlobalSim::IOBitwise::eEmTOB * make_tob(const std::string &s) const
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_tobs_fileName
SG::WriteHandleKey< TIPword > m_TIPword_WriteKey
std::unique_ptr< std::ifstream > m_TIPword_stream
std::unique_ptr< TIPword > TIPword_from_file() const
virtual StatusCode execute() override
Property holding a SG store/key/clid from which a WriteHandle is made.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...