ATLAS Offline Software
Loading...
Searching...
No Matches
PU1SuppTestBench.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
11
12#ifndef GLOBALSIM_PU1SUPPTESTBENCHALG_H
13#define GLOBALSIM_PU1SUPPTESTBENCHALG_H
14
17
18#include "PU1SuppPortsIn.h"
19#include "PU1SuppExpectations.h"
20
21#include <string>
22#include <memory>
23#include <vector>
24
25namespace GlobalSim {
26
35public:
37 PU1SuppTestBenchAlg(const std::string& name, ISvcLocator* pSvcLocator);
38
40 virtual StatusCode initialize() override;
41
43 virtual StatusCode execute() override;
44
45private:
47 Gaudi::Property<std::string> m_testsFileName{
48 this, "TestsFileName", "", "Path to file containing 256-bit TOB hex strings"
49 };
50
52 Gaudi::Property<std::string> m_rhoFileName{
53 this, "RhoFileName", "", "Path to file containing rho values"
54 };
55
58 this, "SuppFIFOKey", "SuppFIFO", "Key to write FIFO of TOBs to SG"
59 };
60
63 this, "ExpectationsKey", "ExpectedTOBs", "Key to write dummy expectations (optional)"
64 };
65
67 std::vector<std::unique_ptr<GepAlgoPU1SuppFIFO>> m_fifos;
68
70 std::size_t m_fifo_ptr{0};
71
73 StatusCode init_from_file();
74
76 std::string trim(const std::string& s);
77};
78
79} // namespace GlobalSim
80
81#endif // GLOBALSIM_PU1SUPPTESTBENCHALG_H
82
Defines the data structure for PU1 Suppression algorithm inputs.
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
StatusCode init_from_file()
Populate m_fifos from file.
std::vector< std::unique_ptr< GepAlgoPU1SuppFIFO > > m_fifos
Preloaded list of TOB FIFOs from file.
PU1SuppTestBenchAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode execute() override
Athena execute hook (called once per event)
SG::WriteHandleKey< GepAlgoPU1SuppFIFO > m_suppFIFO_WriteKey
Write handle key for TOB FIFO.
Gaudi::Property< std::string > m_testsFileName
Path to input file containing 256-bit TOBs as 64-character hex strings.
SG::WriteHandleKey< PU1SuppExpectations > m_PU1SuppExpectations_WriteKey
Write handle key for dummy expectations.
std::size_t m_fifo_ptr
Index of next FIFO to write during execution.
Gaudi::Property< std::string > m_rhoFileName
Path to input file containing rho values, one per line.
std::string trim(const std::string &s)
Strip whitespace from both ends of a string.
virtual StatusCode initialize() override
Athena initialize hook.
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...