Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MetadataAlg.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 JETTAGDERIVATIONUTILS_METADATAALG_H
6 #define JETTAGDERIVATIONUTILS_METADATAALG_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
10 #include "GaudiKernel/IIncidentListener.h"
14 #include "HDF5Utils/IH5GroupSvc.h"
15 
17 
18 namespace ftag {
19 
21  public AthAlgorithm,
22  public IIncidentListener
23  {
24  public:
25  MetadataAlg(const std::string& name, ISvcLocator* pSvcLocator);
26 
27  StatusCode initialize() override;
28  StatusCode execute() override;
29  StatusCode finalize() override;
30 
31  // hook to call this alg on each new input file
32  void handle(const Incident&) override;
33 
34  private:
36 
37  ToolHandle<PMGTools::IPMGTruthWeightTool> m_truthWeightTool {
38  this, "truthWeightTool", "PMGTools::PMGTruthWeightTool",
39  "the truth weight tool"};
41  this, "h5Output", "", "output file service"};
42  Gaudi::Property<std::string> m_json_output {
43  this, "jsonOutput", "", "json output file"
44  };
45  std::unordered_map<size_t, OriginalAodCounts> m_weights;
46 
47  };
48 
49 } // end namespace ftag
50 
51 #endif
CutBookkeeper.h
IH5GroupSvc.h
ftag::MetadataAlg::m_output_svc
ServiceHandle< IH5GroupSvc > m_output_svc
Definition: MetadataAlg.h:40
ftag::MetadataAlg::m_inputMetaStore
ServiceHandle< StoreGateSvc > m_inputMetaStore
Definition: MetadataAlg.h:35
SystematicSet.h
OriginalAodCounts.h
ftag::MetadataAlg::m_weights
std::unordered_map< size_t, OriginalAodCounts > m_weights
Definition: MetadataAlg.h:45
ftag::MetadataAlg::m_json_output
Gaudi::Property< std::string > m_json_output
Definition: MetadataAlg.h:42
AthAlgorithm.h
ftag::MetadataAlg::handle
void handle(const Incident &) override
Definition: MetadataAlg.cxx:101
ftag::MetadataAlg
Definition: MetadataAlg.h:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ftag::MetadataAlg::m_truthWeightTool
ToolHandle< PMGTools::IPMGTruthWeightTool > m_truthWeightTool
Definition: MetadataAlg.h:37
ftag::MetadataAlg::initialize
StatusCode initialize() override
Definition: MetadataAlg.cxx:78
IPMGTruthWeightTool.h
columnar::final
CM final
Definition: ColumnAccessor.h:106
AthAlgorithm
Definition: AthAlgorithm.h:47
ftag::MetadataAlg::finalize
StatusCode finalize() override
Definition: MetadataAlg.cxx:179
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ftag::MetadataAlg::MetadataAlg
MetadataAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MetadataAlg.cxx:70
ftag
Definition: FlowSelectorAlg.cxx:12
ftag::MetadataAlg::execute
StatusCode execute() override
Definition: MetadataAlg.cxx:96
ServiceHandle< StoreGateSvc >