Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
34  class xAODElectronRetriever : virtual public IDataRetriever,
35  public AthAlgTool {
36 
37  public:
38 
40  xAODElectronRetriever(const std::string& type,const std::string& name,const IInterface* parent);
41 
42  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
46  const std::vector<std::string> getKeys();
48  virtual std::string dataTypeName() const { return m_typeName; };
49 
50  private:
52  const std::string m_typeName = "Electron";
53 
54  Gaudi::Property<bool> m_doWriteHLT {this, "DoWriteHLT", false, "Write out other collections that have HLT in the name"};
55  Gaudi::Property<bool> m_doWriteAllCollections {this, "DoWriteAllCollections", false, "Write out all Electron collections"};
56  Gaudi::Property<std::vector<std::string>> m_otherKeys {this, "OtherElectronCollections", {}, "Other collections to be retrieved. If DoWriteAllCollections is set to true all available Electron collections will be retrieved"};
57  Gaudi::Property<std::string> m_priorityKey {this,"PriorityElectronCollection","Electrons", "Name of the priority Electron container that will be written out first"};
58 
59  };
60 }
61 #endif
JiveXML::xAODElectronRetriever::getData
const DataMap getData(const xAOD::ElectronContainer *)
Puts the variables into a DataMap.
Definition: xAODElectronRetriever.cxx:60
JiveXML::xAODElectronRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Definition: xAODElectronRetriever.h:48
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
JiveXML::xAODElectronRetriever::m_priorityKey
Gaudi::Property< std::string > m_priorityKey
Definition: xAODElectronRetriever.h:57
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
ElectronContainer.h
JiveXML::xAODElectronRetriever::m_otherKeys
Gaudi::Property< std::vector< std::string > > m_otherKeys
Definition: xAODElectronRetriever.h:56
JiveXML::xAODElectronRetriever::m_typeName
const std::string m_typeName
The data type that is generated by this retriever.
Definition: xAODElectronRetriever.h:52
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
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
JiveXML::xAODElectronRetriever::m_doWriteHLT
Gaudi::Property< bool > m_doWriteHLT
Definition: xAODElectronRetriever.h:54
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
JiveXML::xAODElectronRetriever::m_doWriteAllCollections
Gaudi::Property< bool > m_doWriteAllCollections
Definition: xAODElectronRetriever.h:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
JiveXML::xAODElectronRetriever::getKeys
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
Definition: xAODElectronRetriever.cxx:165
JiveXML::xAODElectronRetriever
Retrieves all Electron objects (ElectronAODCollection etc.)
Definition: xAODElectronRetriever.h:35
JiveXML::xAODElectronRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each electron collection retrieve basic parameters.
Definition: xAODElectronRetriever.cxx:27
AthAlgTool
Definition: AthAlgTool.h:26
IDataRetriever.h