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