ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1CaloFEX
L1CaloFEXSim
src
eFEXDriver.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
eFEXDriver.h
"
7
#include "
eFEXSim.h
"
8
#include "
L1CaloFEXSim/eFEXOutputCollection.h
"
9
10
#include "
StoreGate/WriteHandle.h
"
11
12
13
namespace
LVL1
{
14
15
eFEXDriver::eFEXDriver
(
const
std::string&
name
, ISvcLocator* pSvcLocator)
16
:
AthAlgorithm
(
name
, pSvcLocator)
//AthReentrantAlgorithm(name, pSvcLocator)
17
{
18
19
}
20
21
22
eFEXDriver::~eFEXDriver
()
23
{
24
ATH_MSG_DEBUG
(
"Destroying "
<<
name
() <<
"..."
);
25
}
26
27
28
StatusCode
eFEXDriver::initialize
()
29
{
30
ATH_CHECK
(
m_eFEXSysSimTool
.retrieve() );
31
32
ATH_CHECK
(
m_eFEXOutputCollectionSGKey
.initialize() );
33
34
return
StatusCode::SUCCESS;
35
}
36
37
38
StatusCode
eFEXDriver::finalize
()
39
{
40
ATH_MSG_DEBUG
(
"Finalizing "
<<
name
() <<
"..."
);
41
return
StatusCode::SUCCESS;
42
}
43
44
45
StatusCode
eFEXDriver::execute
(
const
EventContext& ctx)
46
{
47
48
// STEP 2 - Do some monitoring
49
eFEXOutputCollection
* my_eFEXOutputCollection =
new
eFEXOutputCollection
();
50
my_eFEXOutputCollection->
setdooutput
(
true
);
51
52
// STEP 3 - Run THE eFEXSysSim
53
ATH_CHECK
(
m_eFEXSysSimTool
->execute(my_eFEXOutputCollection, ctx));
54
55
// STEP 5 - Write the completed eFEXOutputCollection into StoreGate (move the local copy in memory)
56
std::unique_ptr<eFEXOutputCollection> local_eFEXOutputCollection = std::unique_ptr<eFEXOutputCollection>(my_eFEXOutputCollection);
57
SG::WriteHandle<LVL1::eFEXOutputCollection>
eFEXOutputCollectionSG(
m_eFEXOutputCollectionSGKey
, ctx);
58
ATH_CHECK
(eFEXOutputCollectionSG.
record
(std::move(local_eFEXOutputCollection)));
59
60
return
StatusCode::SUCCESS;
61
}
62
63
64
}
// end of LVL1 namespace
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x,...)
Definition
AthMsgStreamMacros.h:43
WriteHandle.h
Handle class for recording to StoreGate.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
LVL1::eFEXDriver::eFEXDriver
eFEXDriver(const std::string &name, ISvcLocator *pSvcLocator)
Definition
eFEXDriver.cxx:15
LVL1::eFEXDriver::m_eFEXSysSimTool
ToolHandle< eFEXSysSim > m_eFEXSysSimTool
Definition
eFEXDriver.h:30
LVL1::eFEXDriver::finalize
virtual StatusCode finalize() override
Definition
eFEXDriver.cxx:38
LVL1::eFEXDriver::m_eFEXOutputCollectionSGKey
SG::WriteHandleKey< eFEXOutputCollection > m_eFEXOutputCollectionSGKey
Definition
eFEXDriver.h:28
LVL1::eFEXDriver::initialize
virtual StatusCode initialize() override
Definition
eFEXDriver.cxx:28
LVL1::eFEXDriver::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
eFEXDriver.cxx:45
LVL1::eFEXDriver::~eFEXDriver
virtual ~eFEXDriver()
Definition
eFEXDriver.cxx:22
LVL1::eFEXOutputCollection
Definition
eFEXOutputCollection.h:23
LVL1::eFEXOutputCollection::setdooutput
void setdooutput(bool)
setting to true if ntuple output is needed
Definition
eFEXOutputCollection.cxx:98
SG::WriteHandle
Definition
StoreGate/StoreGate/WriteHandle.h:73
SG::WriteHandle::record
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
eFEXDriver.h
eFEXOutputCollection.h
create ntuples output
eFEXSim.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0