Skip to content
Snippets Groups Projects
Commit 912771d2 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'fixEvt' into 'master'

NSW Simulation - Restore EventNumber and RunNumber

See merge request atlas/athena!48466
parents 4c26e039 fdaf66fc
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,6 @@ namespace NSWL1 {
StatusCode NSWL1Simulation::initialize() {
ATH_MSG_DEBUG( "initialize " << name() );
ATH_CHECK( m_trigRdoContainer.initialize() );
ATH_CHECK( m_xaodevtKey.initialize() );
// Create an register the ntuple if requested, add branch for event and run number
if ( m_doNtuple ) {
ITHistSvc* tHistSvc;
......@@ -118,11 +117,10 @@ namespace NSWL1 {
StatusCode NSWL1Simulation::execute() {
SG::ReadHandle<xAOD::EventInfo> evt(m_xaodevtKey);
if (evt.isValid()) {
m_current_run = evt->runNumber();
m_current_evt = evt->eventNumber();
}
auto ctx = Gaudi::Hive::currentContext();
m_current_evt = ctx.eventID().event_number();
m_current_run = ctx.eventID().run_number();
std::vector<std::shared_ptr<PadData>> pads;
std::vector<std::unique_ptr<PadTrigger>> padTriggers;
std::vector<std::unique_ptr<StripData>> strips;
......
......@@ -104,7 +104,6 @@ namespace NSWL1 {
protected:
SG::ReadHandleKey<xAOD::EventInfo> m_xaodevtKey{this,"xAODEventInfoKey","EventInfo","Key of xAOD::EventInfo"};
SG::WriteHandleKey<Muon::NSW_TrigRawDataContainer> m_trigRdoContainer;
}; // end of NSWL1Simulation class
......
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