ATLAS Offline Software
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 
11 #ifndef TElectronTestAlg_H
12 #define TElectronTestAlg_H
13 
14 #include <memory>
15 //
20 //
23 namespace 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 
SG::WriteDecorHandleKey< xAOD::ElectronContainer >
PropertyWrapper.h
CP::TElectronTestAlg::m_TotalUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalUp
Definition: TElectronTestAlg.h:74
CP::TElectronTestAlg::m_TotalDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_TotalDown
Definition: TElectronTestAlg.h:76
CP::TElectronTestAlg::m_corrUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrUp
Definition: TElectronTestAlg.h:86
CP::TElectronTestAlg::m_doToys
bool m_doToys
Definition: TElectronTestAlg.h:34
CP::TElectronTestAlg::m_uncorrDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrDown
Definition: TElectronTestAlg.h:80
CP::TElectronTestAlg::m_doDetail
bool m_doDetail
Definition: TElectronTestAlg.h:33
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
CP::TElectronTestAlg
Definition: TElectronTestAlg.h:24
CP::TElectronTestAlg::m_electronContainer
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronContainer
Input collection name.
Definition: TElectronTestAlg.h:41
CP::TElectronTestAlg::m_uncorrUp
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_uncorrUp
Definition: TElectronTestAlg.h:78
CP::TElectronTestAlg::mode
mode
Definition: TElectronTestAlg.h:65
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SG::ReadHandleKey< xAOD::ElectronContainer >
CP::TElectronTestAlg::m_HistIndex
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistIndex
Definition: TElectronTestAlg.h:82
CP::TElectronTestAlg::m_mapFile
Gaudi::Property< std::string > m_mapFile
Label for the collection.
Definition: TElectronTestAlg.h:45
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::TElectronTestAlg::m_HistBin
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_HistBin
Definition: TElectronTestAlg.h:84
CP::TElectronTestAlg::TElectronTestAlg
TElectronTestAlg(const std::string &n, ISvcLocator *l)
Definition: TElectronTestAlg.h:27
CP::TElectronTestAlg::m_dataType
Gaudi::Property< int > m_dataType
Definition: TElectronTestAlg.h:61
PATCore::ParticleDataType::Full
@ Full
Definition: PATCoreEnums.h:22
CP::TElectronTestAlg::m_isoKey
Gaudi::Property< std::string > m_isoKey
Definition: TElectronTestAlg.h:55
ElectronContainer.h
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CP::TElectronTestAlg::m_toys
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_toys
Definition: TElectronTestAlg.h:90
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
CP::TElectronTestAlg::m_idKey
Gaudi::Property< std::string > m_idKey
Definition: TElectronTestAlg.h:52
CP::TElectronTestAlg::All
@ All
Definition: TElectronTestAlg.h:65
CP::TElectronTestAlg::m_numberCorr
int m_numberCorr
Definition: TElectronTestAlg.h:35
CP::TElectronTestAlg::initialize
virtual StatusCode initialize() override final
Definition: TElectronTestAlg.cxx:18
CP::TElectronTestAlg::m_mode
Gaudi::Property< int > m_mode
Definition: TElectronTestAlg.h:66
CP::TElectronTestAlg::Toys
@ Toys
Definition: TElectronTestAlg.h:65
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
CP::TElectronTestAlg::m_SF
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_SF
Definition: TElectronTestAlg.h:72
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaReentrantAlgorithm.cxx:29
CP::TElectronTestAlg::m_corrDown
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_corrDown
Definition: TElectronTestAlg.h:88
CP::TElectronTestAlg::m_lowestEt
double m_lowestEt
Number of Correlated syst.
Definition: TElectronTestAlg.h:36
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition: AnaReentrantAlgorithm.h:51
WriteDecorHandleKey.h
CP::TElectronTestAlg::m_pimpl
std::unique_ptr< Root::TElectronEfficiencyCorrectionTool > m_pimpl
Lowest Et for the reccomendations.
Definition: TElectronTestAlg.h:39
CP::TElectronTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: TElectronTestAlg.cxx:87
AnaReentrantAlgorithm.h
CP::TElectronTestAlg::Total
@ Total
Definition: TElectronTestAlg.h:65
CP::TElectronTestAlg::m_recoKey
Gaudi::Property< std::string > m_recoKey
Definition: TElectronTestAlg.h:50
CP::TElectronTestAlg::m_triggerKey
Gaudi::Property< std::string > m_triggerKey
Definition: TElectronTestAlg.h:58
CP::TElectronTestAlg::m_decorate
Gaudi::Property< bool > m_decorate
Definition: TElectronTestAlg.h:70
TElectronEfficiencyCorrectionTool.h
CP::TElectronTestAlg::m_number_of_toys
Gaudi::Property< int > m_number_of_toys
Definition: TElectronTestAlg.h:67
CP::TElectronTestAlg::Full
@ Full
Definition: TElectronTestAlg.h:65