ATLAS Offline Software
Loading...
Searching...
No Matches
D3PD::LBMetadataTool Class Reference

Add luminosity metadata info to a D3PD. More...

#include <LBMetadataTool.h>

Inheritance diagram for D3PD::LBMetadataTool:
Collaboration diagram for D3PD::LBMetadataTool:

Public Member Functions

 LBMetadataTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard Gaudi tool constructor.
virtual StatusCode initialize () override
 Standard Gaudi initialize method.
virtual StatusCode writeMetadata (ID3PD *d3pd) override
 Write metadata to a D3PD.

Private Attributes

std::string m_metakey
 Key for output metadata.

Detailed Description

Add luminosity metadata info to a D3PD.

Definition at line 30 of file LBMetadataTool.h.

Constructor & Destructor Documentation

◆ LBMetadataTool()

D3PD::LBMetadataTool::LBMetadataTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard Gaudi tool constructor.

Parameters
typeThe name of the tool type.
nameThe tool name.
parentThe tool's Gaudi parent.

Definition at line 30 of file LBMetadataTool.cxx.

33 : base_class (type, name, parent)
34{
35 declareProperty ("Metakey", m_metakey = "Lumi",
36 "Key for output metadata.");
37}
std::string m_metakey
Key for output metadata.

Member Function Documentation

◆ initialize()

StatusCode D3PD::LBMetadataTool::initialize ( )
overridevirtual

Standard Gaudi initialize method.

Definition at line 43 of file LBMetadataTool.cxx.

44{
45 return AthAlgTool::initialize();
46}

◆ writeMetadata()

StatusCode D3PD::LBMetadataTool::writeMetadata ( ID3PD * d3pd)
overridevirtual

Write metadata to a D3PD.

Parameters
d3pdThe D3PD to which to write.

Definition at line 53 of file LBMetadataTool.cxx.

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}
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.

Member Data Documentation

◆ m_metakey

std::string D3PD::LBMetadataTool::m_metakey
private

Key for output metadata.

Definition at line 57 of file LBMetadataTool.h.


The documentation for this class was generated from the following files: