ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisEventDisplay
xAODJiveXML
xAODJiveXML
xAODPhotonRetriever.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JIVEXML_XAODPHOTONRETRIEVER_H
6
#define JIVEXML_XAODPHOTONRETRIEVER_H
7
8
#include <string>
9
#include <vector>
10
#include <map>
11
12
#include "
JiveXML/IDataRetriever.h
"
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
xAODEgamma/PhotonContainer.h
"
15
16
namespace
JiveXML
{
17
29
class
xAODPhotonRetriever
:
virtual
public
IDataRetriever
,
30
public
AthAlgTool
{
31
32
public
:
33
35
xAODPhotonRetriever
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
36
37
virtual
StatusCode
retrieve
(ToolHandle<IFormatTool> &FormatTool);
38
virtual
StatusCode
initialize
();
40
const
DataMap
getData
(
const
xAOD::PhotonContainer
*);
42
virtual
std::string
dataTypeName
()
const
{
return
m_typeName
; };
43
44
private
:
45
47
const
std::string
m_typeName
=
"Photon"
;
48
49
SG::ReadHandleKeyArray<xAOD::PhotonContainer>
m_keys
{
this
,
"PhotonCollections"
, {
"Photons"
},
"Name of the Photon containers that will be written out to the JiveXML file"
};
50
51
};
52
}
53
#endif
AthAlgTool.h
PhotonContainer.h
IDataRetriever.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
JiveXML::IDataRetriever
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Definition
IDataRetriever.h:25
JiveXML::xAODPhotonRetriever::m_typeName
const std::string m_typeName
The data type that is generated by this retriever.
Definition
xAODPhotonRetriever.h:47
JiveXML::xAODPhotonRetriever::getData
const DataMap getData(const xAOD::PhotonContainer *)
Puts the variables into a DataMap.
Definition
xAODPhotonRetriever.cxx:60
JiveXML::xAODPhotonRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Definition
xAODPhotonRetriever.h:42
JiveXML::xAODPhotonRetriever::m_keys
SG::ReadHandleKeyArray< xAOD::PhotonContainer > m_keys
Definition
xAODPhotonRetriever.h:49
JiveXML::xAODPhotonRetriever::xAODPhotonRetriever
xAODPhotonRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition
xAODPhotonRetriever.cxx:19
JiveXML::xAODPhotonRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each photon collection retrieve basic parameters.
Definition
xAODPhotonRetriever.cxx:33
JiveXML::xAODPhotonRetriever::initialize
virtual StatusCode initialize()
Definition
xAODPhotonRetriever.cxx:23
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition
BadLArRetriever.cxx:22
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition
DataType.h:59
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
xAOD::PhotonContainer
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/PhotonContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0