ATLAS Offline Software
Loading...
Searching...
No Matches
TElectronTestAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#ifndef TElectronTestAlg_H
12#define TElectronTestAlg_H
13
14#include <memory>
15//
21//
24namespace ADD_CMODE(CP) {
26
27 public:
28 TElectronTestAlg(const std::string& n, ISvcLocator* l)
30 virtual StatusCode initialize() override final;
31 virtual StatusCode execute(const EventContext& ctx) const override final;
32
33 private:
34 bool m_doDetail{false};
35 bool m_doToys{false};
36 int m_numberCorr{0};
37 double m_lowestEt{0};
38
40 std::unique_ptr<Root::TElectronEfficiencyCorrectionTool> m_pimpl = nullptr;
43 this, "ElectronContainer", "Electrons", "The input Electrons container"};
44
46 Gaudi::Property<std::string> m_mapFile{
47 this, "MapFilePath",
48 "ElectronEfficiencyCorrection/2015_2025/rel22.2/"
49 "2022_Summer_Prerecom_v1/map2.txt",
50 "Full path to the map file"};
51 Gaudi::Property<std::string> m_recoKey{this, "RecoKey", "",
52 "Key associated with reconstruction"};
53 Gaudi::Property<std::string> m_idKey{
54 this, "IdKey", "", "Key associated with identification working point"};
55
56 Gaudi::Property<std::string> m_isoKey{
57 this, "IsoKey", "", "Key associated with isolation working point"};
58
59 Gaudi::Property<std::string> m_triggerKey{
60 this, "TriggerKey", "", "Key associated with trigger working point"};
61
62 Gaudi::Property<int> m_dataType{this, "dataType",
64 "Particle Data Type Full/Fast"};
65
66 enum mode { All = 0, Full = 1, Total = 2, Toys = 3 };
67 Gaudi::Property<int> m_mode{this, "mode", All, "Mode (All/Full/Total/Toys"};
68 Gaudi::Property<int> m_number_of_toys{this, "number_of_toys", 40,
69 "Number of toys in the ensemble"};
70
71 Gaudi::Property<bool> m_decorate{this, "doDecorate", true, "Do decorations"};
72
74 "Electrons.SF", ""};
76 this, "DoNotSet_TotalUp", "Electrons.TotalUp", ""};
78 this, "DoNotSet_TotalDown", "Electrons.TotalDown", ""};
80 this, "DoNotSet_UnCorrUp", "Electrons.UnCorrUp", ""};
82 this, "DoNotSet_UnCorrDown", "Electrons.UnCorrDown", ""};
84 this, "DoNotSet_HistIndex", "Electrons.HistIndex", ""};
86 this, "DoNotSet_HistBin", "Electrons.HistBin", ""};
88 this, "DoNotSet_CorrUp", "Electrons.CorrUp", ""};
90 this, "DoNotSet_CorrDown", "Electrons.CorrDown", ""};
92 "Electrons.toys", ""};
93};
94} // namespace ADD_CMODE(CP)
95#endif
96
Property holding a SG store/key/clid from which a ReadHandle is made.
the base class for EventLoop reentrant algorithms
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Dual use Test Alg for TElectronEfficiencyTool.
void initialize()