ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
PU1
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
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
#include "
StoreGate/WriteHandleKey.h
"
17
18
#include "
PU1SuppPortsIn.h
"
19
#include "
PU1SuppExpectations.h
"
20
21
#include <string>
22
#include <memory>
23
#include <vector>
24
25
namespace
GlobalSim
{
26
34
class
PU1SuppTestBenchAlg
:
public
AthAlgorithm
{
35
public
:
37
PU1SuppTestBenchAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
38
40
virtual
StatusCode
initialize
()
override
;
41
43
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
44
45
private
:
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
57
SG::WriteHandleKey<GepAlgoPU1SuppFIFO>
m_suppFIFO_WriteKey
{
58
this
,
"SuppFIFOKey"
,
"SuppFIFO"
,
"Key to write FIFO of TOBs to SG"
59
};
60
62
SG::WriteHandleKey<PU1SuppExpectations>
m_PU1SuppExpectations_WriteKey
{
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
AthAlgorithm.h
PU1SuppExpectations.h
PU1SuppPortsIn.h
Defines the data structure for PU1 Suppression algorithm inputs.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
GlobalSim::PU1SuppTestBenchAlg::init_from_file
StatusCode init_from_file()
Populate m_fifos from file.
Definition
PU1SuppTestBench.cxx:70
GlobalSim::PU1SuppTestBenchAlg::m_fifos
std::vector< std::unique_ptr< GepAlgoPU1SuppFIFO > > m_fifos
Preloaded list of TOB FIFOs from file.
Definition
PU1SuppTestBench.h:67
GlobalSim::PU1SuppTestBenchAlg::PU1SuppTestBenchAlg
PU1SuppTestBenchAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
PU1SuppTestBench.cxx:26
GlobalSim::PU1SuppTestBenchAlg::m_suppFIFO_WriteKey
SG::WriteHandleKey< GepAlgoPU1SuppFIFO > m_suppFIFO_WriteKey
Write handle key for TOB FIFO.
Definition
PU1SuppTestBench.h:57
GlobalSim::PU1SuppTestBenchAlg::m_testsFileName
Gaudi::Property< std::string > m_testsFileName
Path to input file containing 256-bit TOBs as 64-character hex strings.
Definition
PU1SuppTestBench.h:47
GlobalSim::PU1SuppTestBenchAlg::m_PU1SuppExpectations_WriteKey
SG::WriteHandleKey< PU1SuppExpectations > m_PU1SuppExpectations_WriteKey
Write handle key for dummy expectations.
Definition
PU1SuppTestBench.h:62
GlobalSim::PU1SuppTestBenchAlg::m_fifo_ptr
std::size_t m_fifo_ptr
Index of next FIFO to write during execution.
Definition
PU1SuppTestBench.h:70
GlobalSim::PU1SuppTestBenchAlg::m_rhoFileName
Gaudi::Property< std::string > m_rhoFileName
Path to input file containing rho values, one per line.
Definition
PU1SuppTestBench.h:52
GlobalSim::PU1SuppTestBenchAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Athena execute hook (called once per event).
Definition
PU1SuppTestBench.cxx:49
GlobalSim::PU1SuppTestBenchAlg::trim
std::string trim(const std::string &s)
Strip whitespace from both ends of a string.
Definition
PU1SuppTestBench.cxx:144
GlobalSim::PU1SuppTestBenchAlg::initialize
virtual StatusCode initialize() override
Athena initialize hook.
Definition
PU1SuppTestBench.cxx:31
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