Skip to content
Snippets Groups Projects
Commit 70da0824 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'ei.TrigT1CaloByteStream-20221025' into 'master'

TrigT1CaloByteStream: Remove references to EventInfo.

See merge request atlas/athena!57851
parents 9f1b3b26 2045b6ba
No related merge requests found
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ISvcLocator.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "TrigT1CaloEvent/CMXCPTob.h"
#include "TrigT1CaloEvent/CMXCPHits.h"
......@@ -461,15 +459,8 @@ void CpmErrors::cpmTobRoiErrors(const CpmTobRoiCollection* /*crCollection*/,
void CpmErrors::errorMessage(const std::string& errmsg)
{
int eventNumber = 0;
const EventInfo* evInfo = 0;
StatusCode sc = evtStore()->retrieve(evInfo);
if (sc.isFailure()) {
msg(MSG::ERROR) << "No EventInfo found" << endmsg;
} else {
const EventID* evID = evInfo->event_ID();
if (evID) eventNumber = evID->event_number();
}
const EventContext& ctx = Gaudi::Hive::currentContext();
int eventNumber = ctx.eventID().event_number();
msg(MSG::INFO) << "Event " << eventNumber
<< " has error " << errmsg << endmsg;
}
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ISvcLocator.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "TrigT1CaloEvent/CMXEtSums.h"
#include "TrigT1CaloEvent/CMXJetTob.h"
......@@ -627,15 +625,8 @@ void JemErrors::cmxHitsErrors(const CmxJetHitsCollection* hitCollection,
void JemErrors::errorMessage(const std::string& errmsg)
{
int eventNumber = 0;
const EventInfo* evInfo = 0;
StatusCode sc = evtStore()->retrieve(evInfo);
if (sc.isFailure()) {
msg(MSG::ERROR) << "No EventInfo found" << endmsg;
} else {
const EventID* evID = evInfo->event_ID();
if (evID) eventNumber = evID->event_number();
}
const EventContext& ctx = Gaudi::Hive::currentContext();
int eventNumber = ctx.eventID().event_number();
msg(MSG::INFO) << "Event " << eventNumber
<< " has error " << errmsg << endmsg;
}
......
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