ATLAS Offline Software
CaloClusterRetriever.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML_CALOCLUSTERRETRIEVER_H
6 #define JIVEXML_CALOCLUSTERRETRIEVER_H
7 
8 
9 #include "CaloEvent/CaloClusterContainer.h"
10 #include "JiveXML/IDataRetriever.h"
12 #include "GaudiKernel/ToolHandle.h"
13 
15 #include "JiveXML/DataType.h" //DataMap typedef
16 #include <string>
17 #include <vector>
18 namespace JiveXML{
19 
35  class CaloClusterRetriever : virtual public IDataRetriever,
36  public AthAlgTool {
37 
38  public:
39 
41  CaloClusterRetriever(const std::string& type,const std::string& name,const IInterface* parent);
42 
44  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
46 
48  virtual std::string dataTypeName() const { return "Cluster"; };
49 
52 
53  private:
54  SG::ReadHandleKey<xAOD::CaloClusterContainer> m_sgKeyFavourite{this, "StoreGateKey", "LArClusterEM", "Name of the CaloClusterContainer"};
55  std::vector<std::string> m_otherKeys;
57  };
58 }
59 #endif
DataType.h
JiveXML::CaloClusterRetriever::m_otherKeys
std::vector< std::string > m_otherKeys
Definition: CaloClusterRetriever.h:55
SG::ReadHandleKey< xAOD::CaloClusterContainer >
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
JiveXML::CaloClusterRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: CaloClusterRetriever.cxx:48
JiveXML::CaloClusterRetriever::CaloClusterRetriever
CaloClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: CaloClusterRetriever.cxx:19
JiveXML::CaloClusterRetriever::getData
const DataMap getData(const xAOD::CaloClusterContainer *)
Retrieve basic parameters, mainly four-vectors.
Definition: CaloClusterRetriever.cxx:123
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
JiveXML::CaloClusterRetriever::m_doWriteHLT
bool m_doWriteHLT
Definition: CaloClusterRetriever.h:56
JiveXML::CaloClusterRetriever::initialize
StatusCode initialize()
Default AthAlgTool methods.
Definition: CaloClusterRetriever.cxx:33
CaloClusterContainer.h
JiveXML::CaloClusterRetriever::m_sgKeyFavourite
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_sgKeyFavourite
Definition: CaloClusterRetriever.h:54
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::CaloClusterRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: CaloClusterRetriever.h:48
JiveXML::CaloClusterRetriever
Retrieves all Calo Cluster objects.
Definition: CaloClusterRetriever.h:36
IDataRetriever.h