ATLAS Offline Software
Loading...
Searching...
No Matches
MetadataHistAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef ASG_ANALYSIS_ALGORITHMS__METADATA_HIST_ALG_H
9#define ASG_ANALYSIS_ALGORITHMS__METADATA_HIST_ALG_H
10
13
14namespace CP
15{
17
18 class MetadataHistAlg final : public EL::AnaAlgorithm
19 {
25 public:
27 virtual ::StatusCode initialize () override;
28 virtual ::StatusCode execute () override;
29 virtual ::StatusCode finalize () override;
30
32 private:
33 Gaudi::Property<std::string> m_histogramName {this, "histogramName", "metadata", "the name of the output histogram"};
34
36 private:
37 Gaudi::Property<std::string> m_dataType {this, "dataType", "", "dataType"};
38
40 private:
41 Gaudi::Property<std::string> m_campaign {this, "campaign", "", "campaign"};
42
44 private:
45 Gaudi::Property<std::string> m_mcChannelNumber {this, "mcChannelNumber", "", "mcChannelNumber"};
46
48 private:
49 Gaudi::Property<std::string> m_etag {this, "etag", "", "etag"};
50
51
53 private:
54 bool m_firstEvent = true;
55 };
56}
57
58#endif
Dump metadata information into a histogram.
virtual::StatusCode finalize() override
virtual::StatusCode execute() override
Gaudi::Property< std::string > m_etag
the e-tag of the sample to store
Gaudi::Property< std::string > m_campaign
the campaign of the sample to store
bool m_firstEvent
whether the next event will be the first event
virtual::StatusCode initialize() override
Gaudi::Property< std::string > m_mcChannelNumber
the mc channel number of the sample to store
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Gaudi::Property< std::string > m_dataType
the data type of the sample to store
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.