Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
xAODCaloClusterRetriever.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_XAODCALOCLUSTERRetriever_H
6 #define JIVEXML_XAODCALOCLUSTERRetriever_H
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
12 #include "JiveXML/IDataRetriever.h"
15 
17 
18 namespace JiveXML{
19 
37  class xAODCaloClusterRetriever : virtual public IDataRetriever,
38  public AthAlgTool {
39 
40  public:
41 
43  xAODCaloClusterRetriever(const std::string& type,const std::string& name,const IInterface* parent);
44 
45  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
49  const std::vector<std::string> getKeys();
51  virtual std::string dataTypeName() const { return m_typeName; };
52 
53  private:
54 
56  const std::string m_typeName = "Cluster";
57 
58  Gaudi::Property<bool> m_doWriteHLT {this, "DoWriteHLT", false, "Write out other collections that have HLT in the name"};
59  Gaudi::Property<bool> m_doWriteAllCollections {this, "DoWriteAllCollections", false, "Write out all CaloCluster collections"};
60  Gaudi::Property<std::vector<std::string>> m_otherKeys {this, "OtherClusterCollections", {}, "Other collections to be retrieved. If DoWriteAllCollections is set to true all available CaloCluster collections will be retrieved"};
61  Gaudi::Property<std::string> m_priorityKey {this,"PriorityClusterCollection","egammaClusters", "Name of the priority CaloCluster container that will be written out first"};
62 
63  };
64 }
65 #endif
JiveXML::xAODCaloClusterRetriever::m_doWriteAllCollections
Gaudi::Property< bool > m_doWriteAllCollections
Definition: xAODCaloClusterRetriever.h:59
JiveXML::xAODCaloClusterRetriever::xAODCaloClusterRetriever
xAODCaloClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: xAODCaloClusterRetriever.cxx:19
JiveXML::xAODCaloClusterRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each cluster collection retrieve basic parameters.
Definition: xAODCaloClusterRetriever.cxx:28
CaloClusterContainer
Storable container for CaloCluster.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
JiveXML::xAODCaloClusterRetriever::getKeys
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
Definition: xAODCaloClusterRetriever.cxx:159
JiveXML::xAODCaloClusterRetriever::m_doWriteHLT
Gaudi::Property< bool > m_doWriteHLT
Definition: xAODCaloClusterRetriever.h:58
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
JiveXML::xAODCaloClusterRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Definition: xAODCaloClusterRetriever.h:51
JiveXML::xAODCaloClusterRetriever::getData
const DataMap getData(const xAOD::CaloClusterContainer *)
Puts the variables into a DataMap.
Definition: xAODCaloClusterRetriever.cxx:63
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::xAODCaloClusterRetriever::m_otherKeys
Gaudi::Property< std::vector< std::string > > m_otherKeys
Definition: xAODCaloClusterRetriever.h:60
JiveXML::xAODCaloClusterRetriever
Retrieves all Calo Cluster objects.
Definition: xAODCaloClusterRetriever.h:38
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:228
CaloClusterContainer.h
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::xAODCaloClusterRetriever::m_priorityKey
Gaudi::Property< std::string > m_priorityKey
Definition: xAODCaloClusterRetriever.h:61
JiveXML::xAODCaloClusterRetriever::m_typeName
const std::string m_typeName
The data type that is generated by this retriever.
Definition: xAODCaloClusterRetriever.h:56
IDataRetriever.h