ATLAS Offline Software
xAODTauRetriever.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_XAODTAURETRIEVER_H
6 #define JIVEXML_XAODTAURETRIEVER_H
7 
8 #include <string>
9 #include <vector>
10 #include <map>
11 
12 #include "JiveXML/IDataRetriever.h"
15 
16 namespace JiveXML{
17 
30  class xAODTauRetriever : virtual public IDataRetriever,
31  public AthAlgTool {
32 
33  public:
34 
36  xAODTauRetriever(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 = "TauJet";
49 
50  SG::ReadHandleKeyArray<xAOD::TauJetContainer> m_keys {this,"TauJetCollections", {"TauJets"}, "Name of the Tau Jet containers that will be written out to the JiveXML file"};
51 
52  Gaudi::Property<std::string> m_tracksName {this, "TracksName", "InDetTrackParticles_xAOD", "Name of track container"};
53 
54  };
55 }
56 #endif
JiveXML::xAODTauRetriever::m_keys
SG::ReadHandleKeyArray< xAOD::TauJetContainer > m_keys
Definition: xAODTauRetriever.h:50
JiveXML::xAODTauRetriever
Retrieves the Tau objects (TauJets etc.)
Definition: xAODTauRetriever.h:31
JiveXML::xAODTauRetriever::m_typeName
const std::string m_typeName
The data type that is generated by this retriever.
Definition: xAODTauRetriever.h:48
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
JiveXML::xAODTauRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each Tau collections retrieve basic parameters.
Definition: xAODTauRetriever.cxx:35
JiveXML::xAODTauRetriever::getData
const DataMap getData(const xAOD::TauJetContainer *)
Puts the variables into a DataMap.
Definition: xAODTauRetriever.cxx:60
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
JiveXML::xAODTauRetriever::m_tracksName
Gaudi::Property< std::string > m_tracksName
Definition: xAODTauRetriever.h:52
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
TauJetContainer.h
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:240
JiveXML::xAODTauRetriever::xAODTauRetriever
xAODTauRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: xAODTauRetriever.cxx:21
JiveXML::xAODTauRetriever::initialize
virtual StatusCode initialize()
Definition: xAODTauRetriever.cxx:25
JiveXML::xAODTauRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
Definition: xAODTauRetriever.h:43
AthAlgTool
Definition: AthAlgTool.h:26
IDataRetriever.h