Skip to content
Snippets Groups Projects

TrigT1CaloByteStream: Remove references to EventInfo.

Merged Scott Snyder requested to merge ssnyder/athena:ei.TrigT1CaloByteStream-20221025 into master
2 files
+ 6
24
Compare changes
  • Side-by-side
  • Inline
Files
2
/*
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;
}
Loading