ATLAS Offline Software
xAODElectronRetriever.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_XAODELECTRONRETRIEVER_H
6 #define JIVEXML_XAODELECTRONRETRIEVER_H
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
12 #include "JiveXML/IDataRetriever.h"
15 
16 namespace JiveXML{
17 
29  class xAODElectronRetriever : virtual public IDataRetriever,
30  public AthAlgTool {
31 
32  public:
33 
35  xAODElectronRetriever(const std::string& type,const std::string& name,const IInterface* parent);
36 
37  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
38  virtual StatusCode initialize();
42  virtual std::string dataTypeName() const { return m_typeName; };
43 
44  private:
46  const std::string m_typeName = "Electron";
47 
48  SG::ReadHandleKeyArray<xAOD::ElectronContainer> m_keys {this,"ElectronCollections", {"Electrons"}, "Name of the Electron containers that will be written out to the JiveXML file"};
49 
50  };
51 }
52 #endif
JiveXML::xAODElectronRetriever::getData
const DataMap getData(const xAOD::ElectronContainer *)
Puts the variables into a DataMap.
Definition: xAODElectronRetriever.cxx:59
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
JiveXML::xAODElectronRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Definition: xAODElectronRetriever.h:42
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
ElectronContainer.h
JiveXML::xAODElectronRetriever::m_typeName
const std::string m_typeName
The data type that is generated by this retriever.
Definition: xAODElectronRetriever.h:46
JiveXML::xAODElectronRetriever::xAODElectronRetriever
xAODElectronRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: xAODElectronRetriever.cxx:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JiveXML::xAODElectronRetriever::initialize
virtual StatusCode initialize()
Definition: xAODElectronRetriever.cxx:24
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
JiveXML::IDataRetriever
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Definition: IDataRetriever.h:25
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
JiveXML::xAODElectronRetriever
Retrieves the Electron objects (Electrons etc.)
Definition: xAODElectronRetriever.h:30
JiveXML::xAODElectronRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each electron collection retrieve basic parameters.
Definition: xAODElectronRetriever.cxx:33
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::xAODElectronRetriever::m_keys
SG::ReadHandleKeyArray< xAOD::ElectronContainer > m_keys
Definition: xAODElectronRetriever.h:48
IDataRetriever.h