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

VP1BPhysSystems: Remove dependency on EventInfo.

Remove dependency on old EventInfo class.
parent d2af3b34
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( VP1BPhysSystems )
......@@ -22,4 +22,4 @@ atlas_add_library( VP1BPhysSystems VP1BPhysSystems/*.h src/*.h src/*.cxx src/*.q
PUBLIC_HEADERS VP1BPhysSystems
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${COIN3D_INCLUDE_DIRS}
LINK_LIBRARIES GeoPrimitives VP1Base VP1TrackSystems GL
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ${COIN3D_LIBRARIES} EventInfo Particle StoreGateLib TrkExInterfaces TrkParameters TrkTrack VP1Utils )
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ${COIN3D_LIBRARIES} Particle StoreGateLib TrkExInterfaces TrkParameters TrkTrack VP1Utils )
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
/////////////////////////////////////////////////////////////////////////
......@@ -36,8 +36,6 @@
#include "StoreGate/StoreGateSvc.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "TrkTrack/Track.h"
#include "TrkTrack/TrackCollection.h"
......@@ -204,16 +202,9 @@ void VP1BPhysSystem::actualBuild() {
if(m_tree==nullptr) return;
//retrieving event info
const EventInfo* eventInfo;
StatusCode sc = m_sg->retrieve(eventInfo);
if (!sc.isSuccess()) {
message("Error: Could not retrieve EventInfo");
return;
}
const EventID* eventID = eventInfo->event_ID(); // Get EventInfo
int evtNum = eventID->event_number();
int runNum = eventID->run_number();
const EventContext& ctx = Gaudi::Hive::currentContext();
int evtNum = ctx.eventID().event_number();
int runNum = ctx.eventID().run_number();
//retrieve TrackParticle candidates
const Rec::TrackParticleContainer* partCont;
......
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