ATLAS Offline Software
InDetBeamSpotReader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDET_INDETBEAMSPOTREADER_H
6 #define INDET_INDETBEAMSPOTREADER_H
7 // Author jwalder@cern.ch
9 // Simple Alogrithm to read the current beamspot value
11 
12 
15 #include "VxVertex/VxContainer.h"
17 
18 namespace InDet {
24 
25  public:
26  //Standard constructor and methods
27  InDetBeamSpotReader (const std::string& name, ISvcLocator* pSvcLocator);
28  StatusCode initialize() override;
29  StatusCode execute(const EventContext& ctx) const override;
30 
31  private:
33  this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
34 
36  {this, "VxContainer", "VxPrimaryCandidate", "Vertex container name"};
37  };
38 
39 }//end namespace
40 
41 #endif
42 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::InDetBeamSpotReader::InDetBeamSpotReader
InDetBeamSpotReader(const std::string &name, ISvcLocator *pSvcLocator)
Definition: InDetBeamSpotReader.cxx:8
SG::ReadHandleKey< VxContainer >
InDet::InDetBeamSpotReader::initialize
StatusCode initialize() override
Definition: InDetBeamSpotReader.cxx:13
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
InDet::InDetBeamSpotReader::m_beamSpotKey
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Definition: InDetBeamSpotReader.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
VxContainer.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::InDetBeamSpotReader::execute
StatusCode execute(const EventContext &ctx) const override
Definition: InDetBeamSpotReader.cxx:22
InDet::InDetBeamSpotReader::m_vxContainer
SG::ReadHandleKey< VxContainer > m_vxContainer
Definition: InDetBeamSpotReader.h:36
SG::ReadCondHandleKey< InDet::BeamSpotData >
BeamSpotData.h
InDet::InDetBeamSpotReader
An example class of how to read beamspot position.
Definition: InDetBeamSpotReader.h:23