Skip to content
Snippets Groups Projects
Commit f7f086e5 authored by scott snyder's avatar scott snyder
Browse files

LongLivedParticleDPDMaker: Remove reference to xAOD::EventInfo.

Remove unneeded reference to xAOD::EventInfo; use EventContext instead.
parent 2eed5797
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,6 @@
#include "GaudiKernel/IIncidentListener.h"
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/ITHistSvc.h"
#include "StoreGate/ReadHandleKey.h"
#include "xAODEventInfo/EventInfo.h"
#include "TH1.h"
#include "TH2.h"
......@@ -41,7 +39,6 @@ class RPVLLTestRates : public AthAlgorithm {
int m_EventCounter;
ServiceHandle<ITHistSvc> m_tHistSvc;
SG::ReadHandleKey<xAOD::EventInfo> m_evt{this, "EvtInfo", "EventInfo", "EventInfo name"};
std::vector<std::string> m_DecisionLabel;
std::vector<int> m_EventNumber;
......
......@@ -38,7 +38,6 @@ StatusCode RPVLLTestRates::initialize() {
m_EventCounter=0;
ATH_CHECK(m_tHistSvc.retrieve());
ATH_CHECK( m_evt.initialize() );
m_myTree= new TTree("myTree","myTree");
StatusCode sc = m_tHistSvc->regTree("/AANT/myTree",m_myTree);
......@@ -57,6 +56,8 @@ StatusCode RPVLLTestRates::finalize() {
StatusCode RPVLLTestRates::execute() {
const EventContext& ctx = Gaudi::Hive::currentContext();
if (m_EventCounter==0) {
////////// first event! ////////////////////////
......@@ -90,14 +91,9 @@ StatusCode RPVLLTestRates::execute() {
m_EventCounter++;
SG::ReadHandle<xAOD::EventInfo> evt(m_evt);
if (!evt.isValid()) {
ATH_MSG_ERROR( "Could not retrieve event info" );
return StatusCode::FAILURE;
}
m_runNum = evt->runNumber();
m_evtNum = evt->eventNumber();
m_lumiBlock = evt->lumiBlock();
m_runNum = ctx.eventID().run_number();
m_evtNum = ctx.eventID().event_number();
m_lumiBlock = ctx.eventID().lumi_block();
//// these are the ones that are useful for RPVLL filters
......
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