ATLAS Offline Software
Loading...
Searching...
No Matches
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"
12#include "GaudiKernel/ToolHandle.h"
13
15#include "JiveXML/DataType.h" //DataMap typedef
16#include <string>
17#include <vector>
18namespace 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
51 StatusCode initialize();
52
53 private:
54 SG::ReadHandleKey<xAOD::CaloClusterContainer> m_sgKeyFavourite{this, "StoreGateKey", "egammaClusters", "Name of the CaloClusterContainer"};
55 std::vector<std::string> m_otherKeys;
57 };
58}
59#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
CaloClusterRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
StatusCode initialize()
Default AthAlgTool methods.
virtual std::string dataTypeName() const
Return the name of the data type.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_sgKeyFavourite
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
std::vector< std::string > m_otherKeys
const DataMap getData(const xAOD::CaloClusterContainer *)
Retrieve basic parameters, mainly four-vectors.
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Property holding a SG store/key/clid from which a ReadHandle is made.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
Definition DataType.h:59
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.