ATLAS Offline Software
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 
14 namespace CP
15 {
17 
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
CP::MetadataHistAlg::initialize
virtual ::StatusCode initialize() override
Definition: MetadataHistAlg.cxx:24
PropertyWrapper.h
CP::MetadataHistAlg::m_etag
Gaudi::Property< std::string > m_etag
the e-tag of the sample to store
Definition: MetadataHistAlg.h:49
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:25
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
CP::MetadataHistAlg::m_dataType
Gaudi::Property< std::string > m_dataType
the data type of the sample to store
Definition: MetadataHistAlg.h:37
CP::MetadataHistAlg::m_mcChannelNumber
Gaudi::Property< std::string > m_mcChannelNumber
the mc channel number of the sample to store
Definition: MetadataHistAlg.h:45
AnaAlgorithm.h
CP::MetadataHistAlg::m_histogramName
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Definition: MetadataHistAlg.h:33
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
columnar::final
CM final
Definition: ColumnAccessor.h:106
CP::MetadataHistAlg::m_campaign
Gaudi::Property< std::string > m_campaign
the campaign of the sample to store
Definition: MetadataHistAlg.h:41
CP::MetadataHistAlg::execute
virtual ::StatusCode execute() override
Definition: MetadataHistAlg.cxx:62
CP::MetadataHistAlg::m_firstEvent
bool m_firstEvent
whether the next event will be the first event
Definition: MetadataHistAlg.h:54
CP::MetadataHistAlg::finalize
virtual ::StatusCode finalize() override
Definition: MetadataHistAlg.cxx:85
CP::MetadataHistAlg
Dump metadata information into a histogram.
Definition: MetadataHistAlg.h:19