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 namespace IOBitwise {
26 class IeEmTOB;
27 }
28}
29
30namespace GlobalSim {
31
32
38
39
40
42
43 public:
44
45 eEmMultTestBench(const std::string& name, ISvcLocator *pSvcLocator);
46
47 virtual StatusCode initialize () override;
48 virtual StatusCode execute () override;
49
50 private:
51
54 this,
55 "eEmTOBs",
56 "eEmTOBs",
57 "Key for GlobalSim eEmTOB container"};
58
59
62 this,
63 "TIPwordWriteKey",
64 "ExpectedTIPwords",
65 "key to write out expectations for the TIP word"
66 };
67
68 Gaudi::Property<std::string>
70 "tobs_fileName",
71 {"GlobalSimulation/eEmMultTest_tobs.txt"},
72 "name of file with Global Sim eEmTOB data"};
73
74 Gaudi::Property<std::string>
76 "TIPwords_fileName",
77 {"GlobalSimulation/eEmMultTest_TIPwords.txt"},
78 "name of file with expected TIP words"};
79
80
81 std::unique_ptr<TIPword> TIPword_from_file() const;
82
83 std::ifstream m_tob_stream;
84 std::unique_ptr<std::ifstream> m_TIPword_stream{nullptr};
85
86
87 GlobalSim::IOBitwise::IeEmTOB* make_tob(const std::string& s) const;
88
89 };
90
91}
92#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Class to hold eFexROI TOB bits.
Definition IeEmTOB.h:29
eEmMultTestBench(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_TIPword_fileName
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_tobs_fileName
GlobalSim::IOBitwise::IeEmTOB * make_tob(const std::string &s) const
SG::WriteHandleKey< TIPword > m_TIPword_WriteKey
std::unique_ptr< std::ifstream > m_TIPword_stream
std::unique_ptr< TIPword > TIPword_from_file() const
SG::WriteHandleKey< GlobalSim::IOBitwise::IeEmTOBContainer > m_eEmTOBContainer_WriteKey
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...