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//
20//
23namespace CP {
25
26 public:
27 TElectronTestAlg(const std::string& n, ISvcLocator* l)
28 : EL::AnaReentrantAlgorithm(n, l) {}
29 virtual StatusCode initialize() override final;
30 virtual StatusCode execute(const EventContext& ctx) const override final;
31
32 private:
33 bool m_doDetail{false};
34 bool m_doToys{false};
35 int m_numberCorr{0};
36 double m_lowestEt{0};
37
39 std::unique_ptr<Root::TElectronEfficiencyCorrectionTool> m_pimpl = nullptr;
42 this, "ElectronContainer", "Electrons", "The input Electrons container"};
43
45 Gaudi::Property<std::string> m_mapFile{
46 this, "MapFilePath",
47 "ElectronEfficiencyCorrection/2015_2025/rel22.2/"
48 "2022_Summer_Prerecom_v1/map2.txt",
49 "Full path to the map file"};
50 Gaudi::Property<std::string> m_recoKey{this, "RecoKey", "",
51 "Key associated with reconstruction"};
52 Gaudi::Property<std::string> m_idKey{
53 this, "IdKey", "", "Key associated with identification working point"};
54
55 Gaudi::Property<std::string> m_isoKey{
56 this, "IsoKey", "", "Key associated with isolation working point"};
57
58 Gaudi::Property<std::string> m_triggerKey{
59 this, "TriggerKey", "", "Key associated with trigger working point"};
60
61 Gaudi::Property<int> m_dataType{this, "dataType",
63 "Particle Data Type Full/Fast"};
64
65 enum mode { All = 0, Full = 1, Total = 2, Toys = 3 };
66 Gaudi::Property<int> m_mode{this, "mode", All, "Mode (All/Full/Total/Toys"};
67 Gaudi::Property<int> m_number_of_toys{this, "number_of_toys", 40,
68 "Number of toys in the ensemble"};
69
70 Gaudi::Property<bool> m_decorate{this, "doDecorate", true, "Do decorations"};
71
73 "Electrons.SF", ""};
75 this, "DoNotSet_TotalUp", "Electrons.TotalUp", ""};
77 this, "DoNotSet_TotalDown", "Electrons.TotalDown", ""};
79 this, "DoNotSet_UnCorrUp", "Electrons.UnCorrUp", ""};
81 this, "DoNotSet_UnCorrDown", "Electrons.UnCorrDown", ""};
83 this, "DoNotSet_HistIndex", "Electrons.HistIndex", ""};
85 this, "DoNotSet_HistBin", "Electrons.HistBin", ""};
87 this, "DoNotSet_CorrUp", "Electrons.CorrUp", ""};
89 this, "DoNotSet_CorrDown", "Electrons.CorrDown", ""};
91 "Electrons.toys", ""};
92};
93} // namespace CP
94#endif
95
Property holding a SG store/key/clid from which a ReadHandle is made.
TElectronTestAlg(const std::string &n, ISvcLocator *l)
Gaudi::Property< bool > m_decorate
Gaudi::Property< int > m_dataType
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
Input collection name.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_toys
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistIndex
Gaudi::Property< std::string > m_idKey
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalUp
std::unique_ptr< Root::TElectronEfficiencyCorrectionTool > m_pimpl
Lowest Et for the reccomendations.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrDown
double m_lowestEt
Number of Correlated syst.
Gaudi::Property< int > m_mode
Gaudi::Property< std::string > m_isoKey
Gaudi::Property< std::string > m_triggerKey
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalDown
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistBin
virtual StatusCode initialize() override final
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_SF
Gaudi::Property< std::string > m_recoKey
Gaudi::Property< int > m_number_of_toys
Gaudi::Property< std::string > m_mapFile
Label for the collection.
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrUp
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
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.
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
#define private