ATLAS Offline Software
Loading...
Searching...
No Matches
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"
15
17
18namespace ftag {
19
20 class MetadataAlg final :
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ToolHandle< PMGTools::IPMGTruthWeightTool > m_truthWeightTool
Definition MetadataAlg.h:37
std::unordered_map< size_t, OriginalAodCounts > m_weights
Definition MetadataAlg.h:45
ServiceHandle< IH5GroupSvc > m_output_svc
Definition MetadataAlg.h:40
Gaudi::Property< std::string > m_json_output
Definition MetadataAlg.h:42
void handle(const Incident &) override
StatusCode initialize() override
MetadataAlg(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< StoreGateSvc > m_inputMetaStore
Definition MetadataAlg.h:35
StatusCode execute() override
StatusCode finalize() override