ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
virtual StatusCode initialize () override
 Standard Gaudi initialize method. More...
 
virtual StatusCode writeMetadata (ID3PD *d3pd) override
 Write metadata to a D3PD. More...
 

Private Attributes

std::string m_metakey
 Key for output metadata. More...
 

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 }

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 }

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:
initialize
void initialize()
Definition: run_EoverP.cxx:894
ExtractEBRunDetails.xml
xml
Definition: ExtractEBRunDetails.py:239
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
D3PD::LBMetadataTool::m_metakey
std::string m_metakey
Key for output metadata.
Definition: LBMetadataTool.h:57
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78