ATLAS Offline Software
Loading...
Searching...
No Matches
xAODVertexRetriever.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_XAODVERTEXRETRIEVER_H
6#define JIVEXML_XAODVERTEXRETRIEVER_H
7
8#include <string>
9#include <vector>
10#include <map>
11
15
16namespace JiveXML{
17
30 class xAODVertexRetriever : virtual public IDataRetriever,
31 public AthAlgTool {
32
33 public:
34
36 xAODVertexRetriever(const std::string& type,const std::string& name,const IInterface* parent);
37
38 virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
39 virtual StatusCode initialize();
43 virtual std::string dataTypeName() const { return m_typeName; };
44
45 private:
46
48 const std::string m_typeName = "RVx";
49
50 SG::ReadHandleKeyArray<xAOD::VertexContainer> m_keys {this,"VertexCollections", {"PrimaryVertices"}, "Name of the Vertex containers that will be written out to the JiveXML file"};
51 Gaudi::Property<std::string> m_tracksName {this, "TracksName", "InDetTrackParticles_xAOD", "Name of track container"};
52 };
53}
54#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
xAODVertexRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const DataMap getData(const xAOD::VertexContainer *)
Puts the variables into a DataMap.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each Vertex collections retrieve basic parameters.
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Gaudi::Property< std::string > m_tracksName
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_keys
const std::string m_typeName
The data type that is generated by this retriever.
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
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".