Skip to content
Snippets Groups Projects
Commit be7417ed authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'dep.TrigEgammaMonitoring-20201030' into 'master'

TrigEgammaMonitoring: Dependency fix.

See merge request atlas/athena!37798
parents 652d7bcd 710f269f
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,8 @@ StatusCode egammaMonitorElectronAlgorithm::initialize()
{
ATH_CHECK(m_electronsKey.initialize());
m_ptcone20Key = m_electronsKey.key() + ".ptcone20";
ATH_CHECK(m_ptcone20Key.initialize());
if (!m_monTool.empty()) CHECK(m_monTool.retrieve());
return StatusCode::SUCCESS;
}
......@@ -133,15 +135,23 @@ void egammaMonitorElectronAlgorithm::filltopoElectronIsolation( const EventConte
auto ptcone30_col = Monitored::Collection("ptcone30", ptcone30_vec);
auto ptcone40_col = Monitored::Collection("ptcone40", ptcone40_vec);
for (const auto& electron : *electrons) {
for (const xAOD::Electron* electron : *electrons){
val = 0;
electron->isolationValue(val,xAOD::Iso::topoetcone20);
topoetcone20_vec.push_back( val/Gaudi::Units::GeV );
topoetcone20_vec.push_back( electron->isolationValue(val,xAOD::Iso::topoetcone20)/Gaudi::Units::GeV);
ptcone20_vec.push_back(electron->isolationValue(val,xAOD::Iso::ptcone20));
ptcone30_vec.push_back(electron->isolationValue(val,xAOD::Iso::ptcone30));
ptcone40_vec.push_back(electron->isolationValue(val,xAOD::Iso::ptcone40));
val = 0;
electron->isolationValue(val,xAOD::Iso::ptcone20);
ptcone20_vec.push_back( val/Gaudi::Units::GeV );
val = 0;
electron->isolationValue(val,xAOD::Iso::ptcone30);
ptcone30_vec.push_back( val/Gaudi::Units::GeV );
val = 0;
electron->isolationValue(val,xAOD::Iso::ptcone40);
ptcone40_vec.push_back( val/Gaudi::Units::GeV );
}
auto mon = Monitored::Group(m_monTool,ptcone20_col, ptcone30_col, ptcone40_col, topoetcone20_col);
......
......@@ -21,6 +21,7 @@
#include "xAODTrigger/EmTauRoIContainer.h"
#include "StoreGate/ReadHandleKey.h"
#include "StoreGate/ReadCondHandleKey.h"
#include "StoreGate/ReadDecorHandleKey.h"
#include "AthenaBaseComps/AthAlgorithm.h"
#include "StoreGate/DataHandle.h"
#include "AthenaMonitoringKernel/Monitored.h"
......@@ -49,6 +50,7 @@ class egammaMonitorElectronAlgorithm: public AthAlgorithm
private:
SG::ReadHandleKey<xAOD::ElectronContainer> m_electronsKey{ this, "ElectronKey", "Electrons", ""};
SG::ReadDecorHandleKey<xAOD::ElectronContainer> m_ptcone20Key{ this, "ElectronPtcone20Key", "Electrons.ptcone20", ""};
ToolHandle<GenericMonitoringTool> m_monTool{this,"MonTool","","Monitoring tool"};
};
......
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