Skip to content
Snippets Groups Projects

Include online monitoring in the TrigSuperCluster algorithms

2 files
+ 20
18
Compare changes
  • Side-by-side
  • Inline
Files
2
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include "egammaMonitorSuperClusterAlgorithm.h"
#include "xAODEgamma/EgammaContainer.h"
#include "xAODEgamma/Electron.h"
@@ -20,9 +24,11 @@
#include "AthenaMonitoringKernel/Monitored.h"
#include "AthenaMonitoringKernel/GenericMonitoringTool.h"
#include "GaudiKernel/SystemOfUnits.h"
#include "GaudiKernel/PhysicalConstants.h"
egammaMonitorSuperClusterAlgorithm::egammaMonitorSuperClusterAlgorithm( const std::string& name, ISvcLocator* pSvcLocator ):
AthAlgorithm( name, pSvcLocator )
AthReentrantAlgorithm( name, pSvcLocator )
{}
@@ -34,7 +40,7 @@ StatusCode egammaMonitorSuperClusterAlgorithm::initialize()
return StatusCode::SUCCESS;
}
StatusCode egammaMonitorSuperClusterAlgorithm::execute_r(const EventContext& ctx) const
StatusCode egammaMonitorSuperClusterAlgorithm::execute(const EventContext& ctx) const
{
fillSuperClusterQuantities(ctx);
@@ -49,22 +55,21 @@ void egammaMonitorSuperClusterAlgorithm::fillSuperClusterQuantities( const Event
ATH_MSG_DEBUG("Fill cluster quantities: ");
std::vector<float> et_vec, eta_vec, phi_vec, clusterSize_vec, signalState_vec;
// float val{-99};
auto et_col = Monitored::Collection("et" , et_vec);
auto eta_col = Monitored::Collection("eta" , eta_vec);
auto phi_col = Monitored::Collection("phi" , phi_vec);
auto clusterSize_col = Monitored::Collection("clusterSize" , clusterSize_vec);
auto signalState_col = Monitored::Collection("signalState" , signalState_vec);
auto et_col = Monitored::Collection("et" , et_vec);
auto eta_col = Monitored::Collection("eta" , eta_vec);
auto phi_col = Monitored::Collection("phi", phi_vec);
auto clusterSize_col = Monitored::Collection("clusterSize" ,clusterSize_vec);
auto signalState_col = Monitored::Collection("signalState" ,signalState_vec);
for (const auto& eg : *egammaRec) {
et_vec.push_back(eg->caloCluster()->et()/1000);
et_vec.push_back(eg->caloCluster()->et()/Gaudi::Units::GeV);
eta_vec.push_back(eg->caloCluster()->eta());
phi_vec.push_back(eg->caloCluster()->phi());
clusterSize_vec.push_back(eg->caloCluster()->clusterSize());
signalState_vec.push_back(eg->caloCluster()->signalState());
}
auto mon = Monitored::Group(m_monTool, et_col,eta_col,phi_col, clusterSize_col,signalState_col);
ATH_MSG_DEBUG("SuperCluster - Online Monitoring in Reconstruction ...");
Loading