ATLAS Offline Software
SysListDumperAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 #ifndef ASG_ANALYSIS_ALGORITHMS__SYS_LIST_DUMPER_ALG_H
9 #define ASG_ANALYSIS_ALGORITHMS__SYS_LIST_DUMPER_ALG_H
10 
15 
16 namespace CP
17 {
19 
20  class SysListDumperAlg final : public EL::AnaAlgorithm
21  {
27  public:
29  virtual ::StatusCode initialize () override;
30  virtual ::StatusCode execute () override;
31  virtual ::StatusCode finalize () override;
32 
34  private:
35  std::vector<CP::SystematicSet> makeSystematicsVector (const std::string &regex) const;
36 
38  private:
39  ServiceHandle<ISystematicsSvc> m_systematicsService {this, "systematicsService", "SystematicsSvc", "systematics service"};
40 
42  private:
43  Gaudi::Property<std::string> m_regex {this, "systematicsRegex", "", "systematics regex"};
44 
46  private:
47  Gaudi::Property<std::string> m_histogramName {this, "histogramName", "systematics", "the name of the output histogram"};
48 
50  private:
51  bool m_firstEvent = true;
52  };
53 }
54 
55 #endif
PropertyWrapper.h
SysListHandle.h
CP::SysListDumperAlg::execute
virtual ::StatusCode execute() override
Definition: SysListDumperAlg.cxx:40
CP::SysListDumperAlg::m_regex
Gaudi::Property< std::string > m_regex
the regex
Definition: SysListDumperAlg.h:43
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
CP::SysListDumperAlg::initialize
virtual ::StatusCode initialize() override
Definition: SysListDumperAlg.cxx:24
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
AnaAlgorithm.h
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
CP::SysListDumperAlg::makeSystematicsVector
std::vector< CP::SystematicSet > makeSystematicsVector(const std::string &regex) const
make the systematics vector using a regex
Definition: SysListDumperAlg.cxx:70
CP::SysListDumperAlg
Dump systematics names into a histogram.
Definition: SysListDumperAlg.h:21
CP::SysListDumperAlg::m_firstEvent
bool m_firstEvent
whether the next event will be the first event
Definition: SysListDumperAlg.h:51
CP::SysListDumperAlg::m_histogramName
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Definition: SysListDumperAlg.h:47
ServiceHandle.h
CP::SysListDumperAlg::m_systematicsService
ServiceHandle< ISystematicsSvc > m_systematicsService
the handle for the systematics service
Definition: SysListDumperAlg.h:39
CP::SysListDumperAlg::finalize
virtual ::StatusCode finalize() override
Definition: SysListDumperAlg.cxx:92
ServiceHandle
Definition: ClusterMakerTool.h:37