12#ifndef GLOBALSIM_PU1SUPPTESTBENCHALG_H
13#define GLOBALSIM_PU1SUPPTESTBENCHALG_H
43 virtual StatusCode
execute()
override;
48 this,
"TestsFileName",
"",
"Path to file containing 256-bit TOB hex strings"
53 this,
"RhoFileName",
"",
"Path to file containing rho values"
58 this,
"SuppFIFOKey",
"SuppFIFO",
"Key to write FIFO of TOBs to SG"
63 this,
"ExpectationsKey",
"ExpectedTOBs",
"Key to write dummy expectations (optional)"
67 std::vector<std::unique_ptr<GepAlgoPU1SuppFIFO>>
m_fifos;
76 std::string
trim(
const std::string& s);
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...