ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
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
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgTools/PropertyWrapper.h
>
13
14
namespace
CP
15
{
17
18
class
MetadataHistAlg
final :
public
EL::AnaAlgorithm
19
{
25
public
:
26
using
EL::AnaAlgorithm::AnaAlgorithm
;
27
virtual ::StatusCode
initialize
()
override
;
28
virtual ::StatusCode
execute
(
const
EventContext& ctx)
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
AnaAlgorithm.h
PropertyWrapper.h
CP::MetadataHistAlg
Dump metadata information into a histogram.
Definition
MetadataHistAlg.h:19
CP::MetadataHistAlg::finalize
virtual::StatusCode finalize() override
Definition
MetadataHistAlg.cxx:84
CP::MetadataHistAlg::m_etag
Gaudi::Property< std::string > m_etag
the e-tag of the sample to store
Definition
MetadataHistAlg.h:49
CP::MetadataHistAlg::m_campaign
Gaudi::Property< std::string > m_campaign
the campaign of the sample to store
Definition
MetadataHistAlg.h:41
CP::MetadataHistAlg::m_firstEvent
bool m_firstEvent
whether the next event will be the first event
Definition
MetadataHistAlg.h:54
CP::MetadataHistAlg::initialize
virtual::StatusCode initialize() override
Definition
MetadataHistAlg.cxx:23
CP::MetadataHistAlg::m_mcChannelNumber
Gaudi::Property< std::string > m_mcChannelNumber
the mc channel number of the sample to store
Definition
MetadataHistAlg.h:45
CP::MetadataHistAlg::m_histogramName
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Definition
MetadataHistAlg.h:33
CP::MetadataHistAlg::m_dataType
Gaudi::Property< std::string > m_dataType
the data type of the sample to store
Definition
MetadataHistAlg.h:37
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0