ATLAS Offline Software
Loading...
Searching...
No Matches
LBMetadataTool.cxx
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#include "LBMetadataTool.h"
19#include "TString.h"
20
21namespace D3PD {
22
23
31 const std::string& name,
32 const IInterface* parent)
33 : base_class (type, name, parent)
34{
35 declareProperty ("Metakey", m_metakey = "Lumi",
36 "Key for output metadata.");
37}
38
39
44{
45 return AthAlgTool::initialize();
46}
47
48
54{
55 TString xml;
56 ATH_MSG_WARNING( "Luminosity metadata not added correctly to the D3PD!" );
57 CHECK( d3pd->addMetadata (m_metakey, &xml) );
58 return StatusCode::SUCCESS;
59}
60
61
62} // namespace D3PD
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Abstract interface for a D3PD tree.
Add luminosity metadata info to a D3PD.
Define an abstract interface for building a D3PD tree.
Definition ID3PD.h:37
virtual StatusCode addMetadata(const std::string &key, const void *obj, const std::type_info &ti)=0
Add a new piece of metadata to the tuple.
std::string m_metakey
Key for output metadata.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode writeMetadata(ID3PD *d3pd) override
Write metadata to a D3PD.
LBMetadataTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.