ATLAS Offline Software
BeamSpotCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef BEAMSPOT_CONDITIONSALGS_BEAMSPOTCONDALG_H
5 #define BEAMSPOT_CONDITIONSALGS_BEAMSPOTCONDALG_H 1
6 
11 
12 #include "GaudiKernel/EventIDRange.h"
13 #include <limits>
14 
16 
18 {
19  public:
20  BeamSpotCondAlg( const std::string& name, ISvcLocator* pSvcLocator );
21  virtual ~BeamSpotCondAlg();
22 
23  //IS EXECUTED:
24  virtual StatusCode initialize() override final; //once, before any input is loaded
25  virtual StatusCode execute(const EventContext& ctx) const override final;//per event
26  virtual bool isReEntrant() const override final { return false; }
27  static const EventIDRange alwaysValid;
28 
29  private:
30 
31  SG::ReadCondHandleKey<AthenaAttributeList> m_readKey { this, "BeamSpotFolder", "/Indet/Beampos",
32  "DB folder from which to read raw beam spot data" };
33 
34  SG::WriteCondHandleKey<InDet::BeamSpotData> m_writeKey { this, "BeamSpotDataKey", "BeamSpotData",
35  "Key for derived conditions in conditions store" };
36 
37  Gaudi::Property<bool> m_useDB { this, "useDB", true, "read beam spot from conditions DB" };
38  Gaudi::Property<int> m_status { this, "status", 1, "default status" };
39  Gaudi::Property<float> m_posX { this, "posX", 0.0f, "default X position" };
40  Gaudi::Property<float> m_posY { this, "posY", 0.0f, "default Y position" };
41  Gaudi::Property<float> m_posZ { this, "posZ", 0.0f, "default Z position" };
42  Gaudi::Property<float> m_sigmaX { this, "sigmaX", 0.15f, "default X width" };
43  Gaudi::Property<float> m_sigmaY { this, "sigmaY", 0.15f, "default Y width" };
44  Gaudi::Property<float> m_sigmaZ { this, "sigmaZ", 53.0f, "default Z width" };
45  Gaudi::Property<float> m_tiltX { this, "tiltX", 0.0f, "default X tilt" };
46  Gaudi::Property<float> m_tiltY { this, "tiltY", 0.0f, "default Y tilt" };
47  Gaudi::Property<float> m_sigmaXY { this, "sigmaXY", 0.0f, "default XY width" };
48 
49 };
50 
51 #endif //> !BEAMSPOT_CONDITIONSALGS_BEAMSPOTCONDALG_H
BeamSpotCondAlg::m_tiltX
Gaudi::Property< float > m_tiltX
Definition: BeamSpotCondAlg.h:45
BeamSpotCondAlg::m_posY
Gaudi::Property< float > m_posY
Definition: BeamSpotCondAlg.h:40
BeamSpotCondAlg::m_writeKey
SG::WriteCondHandleKey< InDet::BeamSpotData > m_writeKey
Definition: BeamSpotCondAlg.h:34
BeamSpotCondAlg::m_sigmaX
Gaudi::Property< float > m_sigmaX
Definition: BeamSpotCondAlg.h:42
WriteCondHandleKey.h
BeamSpotCondAlg::m_useDB
Gaudi::Property< bool > m_useDB
Definition: BeamSpotCondAlg.h:37
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
AthenaAttributeList.h
BeamSpotCondAlg::m_sigmaY
Gaudi::Property< float > m_sigmaY
Definition: BeamSpotCondAlg.h:43
BeamSpotCondAlg::m_status
Gaudi::Property< int > m_status
Definition: BeamSpotCondAlg.h:38
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
BeamSpotCondAlg::initialize
virtual StatusCode initialize() override final
Definition: BeamSpotCondAlg.cxx:28
BeamSpotCondAlg::m_sigmaXY
Gaudi::Property< float > m_sigmaXY
Definition: BeamSpotCondAlg.h:47
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
BeamSpotCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: BeamSpotCondAlg.cxx:38
BeamSpotCondAlg::~BeamSpotCondAlg
virtual ~BeamSpotCondAlg()
BeamSpotCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: BeamSpotCondAlg.h:26
BeamSpotCondAlg::m_posX
Gaudi::Property< float > m_posX
Definition: BeamSpotCondAlg.h:39
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
BeamSpotCondAlg::alwaysValid
static const EventIDRange alwaysValid
Definition: BeamSpotCondAlg.h:27
BeamSpotCondAlg::m_readKey
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
Definition: BeamSpotCondAlg.h:31
SG::ReadCondHandleKey< AthenaAttributeList >
BeamSpotCondAlg::m_tiltY
Gaudi::Property< float > m_tiltY
Definition: BeamSpotCondAlg.h:46
BeamSpotCondAlg::m_sigmaZ
Gaudi::Property< float > m_sigmaZ
Definition: BeamSpotCondAlg.h:44
SG::WriteCondHandleKey< InDet::BeamSpotData >
BeamSpotData.h
BeamSpotCondAlg
Definition: BeamSpotCondAlg.h:18
BeamSpotCondAlg::m_posZ
Gaudi::Property< float > m_posZ
Definition: BeamSpotCondAlg.h:41
BeamSpotCondAlg::BeamSpotCondAlg
BeamSpotCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: BeamSpotCondAlg.cxx:20