ATLAS Offline Software
Control
AthenaExamples
AthExStoreGateExample
src
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef ATHEXSTOREGATEEXAMPLE_READDATA_H
8
#define ATHEXSTOREGATEEXAMPLE_READDATA_H 1
9
10
#include <string>
11
#include "
AthenaBaseComps/AthAlgorithm.h
"
12
#include "
AthExStoreGateExample/MyDataObj.h
"
13
#include "
StoreGate/ReadHandle.h
"
14
#include "
StoreGate/ReadHandleKey.h
"
15
#include "
xAODEventInfo/EventInfo.h
"
16
class
StoreGateSvc
;
17
19
20
class
ReadData
:
public
AthAlgorithm
{
21
public
:
22
ReadData
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
23
StatusCode
initialize
();
24
StatusCode
execute
();
25
StatusCode
finalize
();
26
27
private
:
28
//Properties
29
std::string
m_DataProducer
;
30
SG::ReadHandle<MyDataObj>
m_dobj3
;
31
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfo
{
this
,
"EvtInfo"
,
"EventInfo"
,
"EventInfo name"
};
32
};
33
34
#endif // not ATHEXSTOREGATEEXAMPLE_READDATA_H
35
36
37
38
39
40
41
42
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadData::ReadData
ReadData(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.cxx:26
SG::ReadHandle< MyDataObj >
ReadData::finalize
StatusCode finalize()
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.cxx:317
ReadData::m_DataProducer
std::string m_DataProducer
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.h:29
SG::ReadHandleKey< xAOD::EventInfo >
AthAlgorithm.h
StoreGateSvc
The Athena Transient Store API.
Definition:
StoreGateSvc.h:128
ReadData::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.h:31
ReadData::execute
StatusCode execute()
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.cxx:59
ReadData
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition:
AthAlgorithm.h:47
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:192
MyDataObj.h
EventInfo.h
ReadData::m_dobj3
SG::ReadHandle< MyDataObj > m_dobj3
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.h:30
ReadData::initialize
StatusCode initialize()
Definition:
Control/AthenaExamples/AthExStoreGateExample/src/ReadData.cxx:37
ReadHandle.h
Handle class for reading from StoreGate.
Generated on Sun Jun 30 2024 21:25:10 for ATLAS Offline Software by
1.8.18