ATLAS Offline Software
Loading...
Searching...
No Matches
KinematicHistAlg.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__KINEMATIC_HIST_ALG_H
9#define ASG_ANALYSIS_ALGORITHMS__KINEMATIC_HIST_ALG_H
10
17
18namespace CP
19{
25
27 {
29 public:
31 StatusCode initialize () override;
32 StatusCode execute () override;
33
34
36 private:
38
40 private:
42 this, "input", "", "the input collection to run on"};
43
45 private:
47 this, "preselection", "", "the preselection to apply"};
48
50 private:
51 Gaudi::Property<std::string> m_histPattern {this, "histPattern", "%VAR%_%SYS%", "the pattern for histogram names"};
52
53
55 private:
57 {
58 TH1 *pt = nullptr;
59 TH1 *eta = nullptr;
60 TH1 *phi = nullptr;
61 };
62
63
65 private:
66 struct HistGroup
67 {
68 TH1 *multiplicity = nullptr;
69 std::vector<HistSubgroup> perObject;
70 };
71
73 private:
74 std::unordered_map<CP::SystematicSet,HistGroup> m_hist;
75 };
76}
77
78#endif
an algorithm for dumping the kinematics of an IParticle container into histograms
SysListHandle m_systematicsList
the systematics list we run
StatusCode initialize() override
Gaudi::Property< std::string > m_histPattern
the pattern for histogram names
std::unordered_map< CP::SystematicSet, HistGroup > m_hist
the created histograms
StatusCode execute() override
SysReadHandle< xAOD::IParticleContainer > m_inputHandle
the jet collection we run on
SysReadSelectionHandle m_preselection
the preselection we apply to our input
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Select isolated Photons, Electrons and Muons.
the histograms we fill per systematic
std::vector< HistSubgroup > perObject
the histograms we fill per systematic and object