ATLAS Offline Software
eFexTOBDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //***************************************************************************
6 // eFexTOBDecorator - description:
7 // This algorithm decorates the eFEX TOBs with the recalculated isolation variables
8 // -------------------
9 // begin : 13 02 2023
10 // email : paul.daniel.thompson@cern.ch
11 //***************************************************************************/
12 
13 #ifndef EFEXTOBDECORATORTOOL_H
14 #define EFEXTOBDECORATORTOOL_H
15 
17 #include "AsgTools/ToolHandle.h"
20 
21 
25 
26 namespace LVL1 {
27 
29  public:
30  eFexTOBDecorator(const std::string& name, ISvcLocator* svc);
31 
32  // Function initialising the algorithm
33  virtual StatusCode initialize();
34  // Function executing the algorithm
35  virtual StatusCode execute();
36 
37  private:
38  const std::string m_ReadKeyEM_name = "L1_eEMRoI";
39  const std::string m_ReadKeyTau_name = "L1_eTauRoI";
40 
41  // Readhandles for eFEX TOBs
42  SG::ReadHandleKey<xAOD::eFexEMRoIContainer> m_eFEXegEDMContainerKey{this,"eFexEMRoIContainer",m_ReadKeyEM_name,"SG key of the input eFex RoI container"};
43  SG::ReadHandleKey<xAOD::eFexTauRoIContainer> m_eFEXtauEDMContainerKey{this,"eFexTauRoIContainer",m_ReadKeyTau_name,"SG key of the input eFex Tau RoI container"};
44 
45  // WriteDecor handles for the EM RoI decorations
46  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_RetaCoreDec { this, "RetaCoreDecDecorKey" , m_ReadKeyEM_name+".RetaCoreDec" , "Recalculated EM RetaCore" };
47  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_RetaEnvDec { this, "RetaEnvDecDecorKey" , m_ReadKeyEM_name+".RetaEnvDec" , "Recalculated EM RetaEnv" };
48  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_RhadEMDec { this, "RetaEMDecDecorKey" , m_ReadKeyEM_name+".RhadEMDec" , "Recalculated EM RetaEM" };
49  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_RhadHadDec { this, "RhadHadDecDecorKey" , m_ReadKeyEM_name+".RhadHadDec" , "Recalculated EM RhadHad" };
50  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotDenDec { this, "WstotDenDecDecorKey" , m_ReadKeyEM_name+".WstotDenDec" , "Recalculated EM WstotDen" };
51  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotNumDec { this, "WstotNumDecDecorKey" , m_ReadKeyEM_name+".WstotNumDec" , "Recalculated EM WstotNum" };
52 
53  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumPSDec { this, "ClusterEtSumPSDecorKey" , m_ReadKeyEM_name+".ClusterEtSumPS" , "Cluster ET sum PS PS" };
54  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL1Dec { this, "ClusterEtSumL1DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL1" , "Cluster ET sum PSL1" };
55  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL2Dec { this, "ClusterEtSumL2DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL2" , "Cluster ET sum PSL2" };
56  SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL3Dec { this, "ClusterEtSumL3DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL3" , "Cluster ET sum PSL3" };
57 
58 
59  // WriteDecor handles for the Tau RoI decorations
60  SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_RCoreDec { this, "RCoreDecorKey" , m_ReadKeyTau_name+".RCoreDec" , "Recalculated Tau RCore" };
61  SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_REnvDec { this, "REnvDecorKey" , m_ReadKeyTau_name+".REnvDec" , "Recalculated Tau REnv" };
62  SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_REMCoreDec { this, "REMCoreDecorKey" , m_ReadKeyTau_name+".REMCoreDec" , "Recalculated Tau REMCore" };
63  SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_REMHadDec { this, "REMHadDecorKey" , m_ReadKeyTau_name+".REMHadDec" , "Recalculated Tau REMHad" };
64 
65  ToolHandle<IeFEXTOBEtTool> m_eFEXTOBEtTool {this, "eFEXTOBEtTool", "LVL1::eFEXTOBEtTool", "Tool for reconstructing TOB ET sums"};
66  };
67 }
68 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
LVL1::eFexTOBDecorator::m_RhadHadDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_RhadHadDec
Definition: eFexTOBDecorator.h:49
LVL1::eFexTOBDecorator::m_RetaEnvDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_RetaEnvDec
Definition: eFexTOBDecorator.h:47
LVL1::eFexTOBDecorator::m_ClusterEtSumL2Dec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_ClusterEtSumL2Dec
Definition: eFexTOBDecorator.h:55
LVL1::eFexTOBDecorator::eFexTOBDecorator
eFexTOBDecorator(const std::string &name, ISvcLocator *svc)
Definition: eFexTOBDecorator.cxx:21
eFexTauRoIContainer.h
LVL1::eFexTOBDecorator::m_RCoreDec
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainer > m_RCoreDec
Definition: eFexTOBDecorator.h:60
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
LVL1::eFexTOBDecorator::execute
virtual StatusCode execute()
Definition: eFexTOBDecorator.cxx:53
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::eFexTOBDecorator::m_ClusterEtSumPSDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_ClusterEtSumPSDec
Definition: eFexTOBDecorator.h:53
LVL1::eFexTOBDecorator::m_WstotNumDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_WstotNumDec
Definition: eFexTOBDecorator.h:51
AthAlgorithm.h
LVL1::eFexTOBDecorator::m_ClusterEtSumL1Dec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_ClusterEtSumL1Dec
Definition: eFexTOBDecorator.h:54
LVL1::eFexTOBDecorator::m_RetaCoreDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_RetaCoreDec
Definition: eFexTOBDecorator.h:46
LVL1::eFexTOBDecorator::m_ReadKeyTau_name
const std::string m_ReadKeyTau_name
Definition: eFexTOBDecorator.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
WriteDecorHandle.h
Handle class for adding a decoration to an object.
LVL1::eFexTOBDecorator::m_eFEXegEDMContainerKey
SG::ReadHandleKey< xAOD::eFexEMRoIContainer > m_eFEXegEDMContainerKey
Definition: eFexTOBDecorator.h:42
LVL1::eFexTOBDecorator::m_REnvDec
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainer > m_REnvDec
Definition: eFexTOBDecorator.h:61
LVL1::eFexTOBDecorator::m_ClusterEtSumL3Dec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_ClusterEtSumL3Dec
Definition: eFexTOBDecorator.h:56
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
LVL1::eFexTOBDecorator
Definition: eFexTOBDecorator.h:28
AthAlgorithm
Definition: AthAlgorithm.h:47
TrigConf::name
Definition: HLTChainList.h:35
LVL1::eFexTOBDecorator::m_REMCoreDec
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainer > m_REMCoreDec
Definition: eFexTOBDecorator.h:62
LVL1::eFexTOBDecorator::initialize
virtual StatusCode initialize()
Definition: eFexTOBDecorator.cxx:23
LVL1::eFexTOBDecorator::m_REMHadDec
SG::WriteDecorHandleKey< xAOD::eFexTauRoIContainer > m_REMHadDec
Definition: eFexTOBDecorator.h:63
LVL1::eFexTOBDecorator::m_eFEXTOBEtTool
ToolHandle< IeFEXTOBEtTool > m_eFEXTOBEtTool
Definition: eFexTOBDecorator.h:65
IeFEXTOBEtTool.h
LVL1::eFexTOBDecorator::m_RhadEMDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_RhadEMDec
Definition: eFexTOBDecorator.h:48
ToolHandle.h
LVL1::eFexTOBDecorator::m_ReadKeyEM_name
const std::string m_ReadKeyEM_name
Definition: eFexTOBDecorator.h:38
LVL1::eFexTOBDecorator::m_eFEXtauEDMContainerKey
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_eFEXtauEDMContainerKey
Definition: eFexTOBDecorator.h:43
LVL1::eFexTOBDecorator::m_WstotDenDec
SG::WriteDecorHandleKey< xAOD::eFexEMRoIContainer > m_WstotDenDec
Definition: eFexTOBDecorator.h:50
eFexEMRoIContainer.h