Skip to content
Snippets Groups Projects
Commit 18c1fe0f authored by Jiri Masik's avatar Jiri Masik
Browse files

Merge branch 'update-efex-decorator' into '24.0'

Update efex decorator

See merge request atlas/athena!75566
parents ff05beae 26ca9554
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,7 @@ def eFexTOBDecoratorCfg(flags, name, eFexEMRoIContainer = "L1_eEMRoI", eFexTauRo ...@@ -46,10 +46,7 @@ def eFexTOBDecoratorCfg(flags, name, eFexEMRoIContainer = "L1_eEMRoI", eFexTauRo
decorator.RhadHadDecDecorKey = eFexEMRoIContainer+".RhadHadDec" decorator.RhadHadDecDecorKey = eFexEMRoIContainer+".RhadHadDec"
decorator.WstotDenDecDecorKey = eFexEMRoIContainer+".WstotDenDec" decorator.WstotDenDecDecorKey = eFexEMRoIContainer+".WstotDenDec"
decorator.WstotNumDecDecorKey = eFexEMRoIContainer+".WstotNumDec" decorator.WstotNumDecDecorKey = eFexEMRoIContainer+".WstotNumDec"
decorator.ClusterEtSumPSDecorKey = eFexEMRoIContainer+".ClusterEtSumPS" decorator.ClusterSCellEtSumsDecorKey = eFexEMRoIContainer+".ClusterSCellEtSums"
decorator.ClusterEtSumL1DecorKey = eFexEMRoIContainer+".ClusterEtSumL1"
decorator.ClusterEtSumL2DecorKey = eFexEMRoIContainer+".ClusterEtSumL2"
decorator.ClusterEtSumL3DecorKey = eFexEMRoIContainer+".ClusterEtSumL3"
if eFexEMRoIContainer != "L1_eTauRoI": if eFexEMRoIContainer != "L1_eTauRoI":
decorator.RCoreDecorKey = eFexTauRoIContainer+".RCoreDec" decorator.RCoreDecorKey = eFexTauRoIContainer+".RCoreDec"
......
/* /*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/ */
//*************************************************************************** //***************************************************************************
...@@ -34,10 +34,7 @@ namespace LVL1 { ...@@ -34,10 +34,7 @@ namespace LVL1 {
ATH_CHECK( m_WstotDenDec.initialize() ); ATH_CHECK( m_WstotDenDec.initialize() );
ATH_CHECK( m_WstotNumDec.initialize() ); ATH_CHECK( m_WstotNumDec.initialize() );
ATH_CHECK( m_ClusterEtSumPSDec.initialize() ); ATH_CHECK( m_ClusterSCellEtSumsDec.initialize() );
ATH_CHECK( m_ClusterEtSumL1Dec.initialize() );
ATH_CHECK( m_ClusterEtSumL2Dec.initialize() );
ATH_CHECK( m_ClusterEtSumL3Dec.initialize() );
ATH_CHECK( m_RCoreDec.initialize() ); ATH_CHECK( m_RCoreDec.initialize() );
ATH_CHECK( m_REnvDec.initialize() ); ATH_CHECK( m_REnvDec.initialize() );
...@@ -75,10 +72,7 @@ namespace LVL1 { ...@@ -75,10 +72,7 @@ namespace LVL1 {
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > WstotDenDec (m_WstotDenDec ); SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > WstotDenDec (m_WstotDenDec );
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > WstotNumDec (m_WstotNumDec ); SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > WstotNumDec (m_WstotNumDec );
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > ClusterEtSumPSDec (m_ClusterEtSumPSDec ); SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, std::vector<unsigned int > > ClusterSCellEtSumsDec (m_ClusterSCellEtSumsDec );
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > ClusterEtSumL1Dec (m_ClusterEtSumL1Dec );
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > ClusterEtSumL2Dec (m_ClusterEtSumL2Dec );
SG::WriteDecorHandle<xAOD::eFexEMRoIContainer, unsigned int > ClusterEtSumL3Dec (m_ClusterEtSumL3Dec );
//looping over EM TOB to decorate them //looping over EM TOB to decorate them
for ( const xAOD::eFexEMRoI* emRoI : *emEDMConstPtr ){ for ( const xAOD::eFexEMRoI* emRoI : *emEDMConstPtr ){
...@@ -101,26 +95,7 @@ namespace LVL1 { ...@@ -101,26 +95,7 @@ namespace LVL1 {
WstotDenDec (*emRoI) = WstotSums[0]; WstotDenDec (*emRoI) = WstotSums[0];
WstotNumDec (*emRoI) = WstotSums[1]; WstotNumDec (*emRoI) = WstotSums[1];
// cluster et per layer summed from SCells ClusterSCellEtSumsDec (*emRoI) = ClusterCellETs;
unsigned int ps(0); // 0-1 - pre-sampler
unsigned int l1(0); // 2-7 - layer 1
unsigned int l2(0); // 8-13 - layer 2
unsigned int l3(0); // 14-15 - layer 3
for(std::size_t i = 0; i < ClusterCellETs.size(); ++i) {
if (i<2)
ps += ClusterCellETs[i];
else if (i < 8 )
l1 += ClusterCellETs[i];
else if (i < 14 )
l2 += ClusterCellETs[i];
else
l3 += ClusterCellETs[i];
}
ClusterEtSumPSDec (*emRoI) = ps;
ClusterEtSumL1Dec (*emRoI) = l1;
ClusterEtSumL2Dec (*emRoI) = l2;
ClusterEtSumL3Dec (*emRoI) = l3;
} }
//Setup Tau Decorator Handlers //Setup Tau Decorator Handlers
......
/* /*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/ */
//*************************************************************************** //***************************************************************************
...@@ -50,11 +50,7 @@ namespace LVL1 { ...@@ -50,11 +50,7 @@ namespace LVL1 {
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotDenDec { this, "WstotDenDecDecorKey" , m_ReadKeyEM_name+".WstotDenDec" , "Recalculated EM WstotDen" }; SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotDenDec { this, "WstotDenDecDecorKey" , m_ReadKeyEM_name+".WstotDenDec" , "Recalculated EM WstotDen" };
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotNumDec { this, "WstotNumDecDecorKey" , m_ReadKeyEM_name+".WstotNumDec" , "Recalculated EM WstotNum" }; SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_WstotNumDec { this, "WstotNumDecDecorKey" , m_ReadKeyEM_name+".WstotNumDec" , "Recalculated EM WstotNum" };
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumPSDec { this, "ClusterEtSumPSDecorKey" , m_ReadKeyEM_name+".ClusterEtSumPS" , "Cluster ET sum PS PS" }; SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterSCellEtSumsDec { this, "ClusterSCellEtSumsDecorKey" , m_ReadKeyEM_name+".ClusterSCellEtSums", "name of the decoration key for SCell Ets of the cluster"};
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL1Dec { this, "ClusterEtSumL1DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL1" , "Cluster ET sum PSL1" };
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL2Dec { this, "ClusterEtSumL2DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL2" , "Cluster ET sum PSL2" };
SG::WriteDecorHandleKey<xAOD::eFexEMRoIContainer> m_ClusterEtSumL3Dec { this, "ClusterEtSumL3DecorKey" , m_ReadKeyEM_name+".ClusterEtSumL3" , "Cluster ET sum PSL3" };
// WriteDecor handles for the Tau RoI decorations // WriteDecor handles for the Tau RoI decorations
SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_RCoreDec { this, "RCoreDecorKey" , m_ReadKeyTau_name+".RCoreDec" , "Recalculated Tau RCore" }; SG::WriteDecorHandleKey<xAOD::eFexTauRoIContainer> m_RCoreDec { this, "RCoreDecorKey" , m_ReadKeyTau_name+".RCoreDec" , "Recalculated Tau RCore" };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment