Skip to content
Snippets Groups Projects
Commit 4351604f authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Migration to xAOD::EventInfo and cleanup of several obsolete includes of the old EventInfo

parent f4e7ee11
No related branches found
No related tags found
No related merge requests found
......@@ -68,11 +68,6 @@
#include "GaudiKernel/ITHistSvc.h"
#include "GaudiKernel/ToolHandle.h"
/*
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "EventInfo/TriggerInfo.h"
*/
#include "TrigDecisionTool/TrigDecisionTool.h"
#include "ZdcIdentifier/ZdcID.h"
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#include "InDetBeamSpotReader.h"
#include "VxVertex/VxCandidate.h"
//#include "TrkEventPrimitives/VertexType.h"
#include "EventInfo/EventID.h"
InDet::InDetBeamSpotReader::InDetBeamSpotReader(const std::string& name, ISvcLocator* pSvcLocator):
AthReentrantAlgorithm(name, pSvcLocator)
......@@ -32,9 +26,8 @@ StatusCode InDet::InDetBeamSpotReader::execute(const EventContext& ctx) const {
//get the set of
SG::ReadCondHandle<InDet::BeamSpotData> beamSpotHandle { m_beamSpotKey, ctx };
SG::ReadHandle<EventInfo> eventInfo(m_eventInfo, ctx);
EventID* eventID = eventInfo->event_ID();
ATH_MSG_INFO( "In event " << (*eventID) );
SG::ReadHandle<xAOD::EventInfo> eventInfo(m_eventInfo, ctx);
ATH_MSG_INFO( "In event " << (*eventInfo) );
ATH_MSG_INFO("BeamSpot Position: \n "
<< beamSpotHandle->beamPos() );
ATH_MSG_INFO("BeamSpot Sigma\n\t"
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef INDET_INDETBEAMSPOTREADER_H
......@@ -13,7 +13,7 @@
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "StoreGate/ReadHandleKey.h"
#include "VxVertex/VxContainer.h"
#include "EventInfo/EventInfo.h"
#include "xAODEventInfo/EventInfo.h"
#include "BeamSpotConditionsData/BeamSpotData.h"
namespace InDet {
......@@ -34,7 +34,7 @@ namespace InDet {
private:
SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
SG::ReadHandleKey<EventInfo> m_eventInfo
SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo
{this, "EvtInfo", "EventInfo", "EventInfo name"};
SG::ReadHandleKey<VxContainer> m_vxContainer
{this, "VxContainer", "VxPrimaryCandidate", "Vertex container name"};
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#include "InDetBeamSpotRooFit.h"
#include "GaudiKernel/ITHistSvc.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "VxVertex/VxCandidate.h"
#include "VxVertex/VxContainer.h"
#include <RooRealVar.h>
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#include "InDetBeamSpotVertex.h"
#include "GaudiKernel/ITHistSvc.h"
#include "EventInfo/EventInfo.h"
#include "EventInfo/EventID.h"
#include "VxVertex/VxCandidate.h"
#include "VxVertex/VxContainer.h"
......
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