ATLAS Offline Software
Loading...
Searching...
No Matches
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 );
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 static const EventIDRange alwaysValid;
27
28 private:
29
30 SG::ReadCondHandleKey<AthenaAttributeList> m_readKey { this, "BeamSpotFolder", "/Indet/Beampos",
31 "DB folder from which to read raw beam spot data" };
32
33 SG::WriteCondHandleKey<InDet::BeamSpotData> m_writeKey { this, "BeamSpotDataKey", "BeamSpotData",
34 "Key for derived conditions in conditions store" };
35
36 Gaudi::Property<bool> m_useDB { this, "useDB", true, "read beam spot from conditions DB" };
37 Gaudi::Property<int> m_status { this, "status", 1, "default status" };
38 Gaudi::Property<float> m_posX { this, "posX", 0.0f, "default X position" };
39 Gaudi::Property<float> m_posY { this, "posY", 0.0f, "default Y position" };
40 Gaudi::Property<float> m_posZ { this, "posZ", 0.0f, "default Z position" };
41 Gaudi::Property<float> m_sigmaX { this, "sigmaX", 0.15f, "default X width" };
42 Gaudi::Property<float> m_sigmaY { this, "sigmaY", 0.15f, "default Y width" };
43 Gaudi::Property<float> m_sigmaZ { this, "sigmaZ", 53.0f, "default Z width" };
44 Gaudi::Property<float> m_tiltX { this, "tiltX", 0.0f, "default X tilt" };
45 Gaudi::Property<float> m_tiltY { this, "tiltY", 0.0f, "default Y tilt" };
46 Gaudi::Property<float> m_sigmaXY { this, "sigmaXY", 0.0f, "default XY width" };
47
48};
49
50#endif //> !BEAMSPOT_CONDITIONSALGS_BEAMSPOTCONDALG_H
Base class for conditions algorithms.
Base class for conditions algorithms.
An AttributeList represents a logical row of attributes in a metadata table.
virtual StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< float > m_tiltX
Gaudi::Property< float > m_posY
Gaudi::Property< float > m_sigmaY
Gaudi::Property< float > m_sigmaXY
Gaudi::Property< int > m_status
Gaudi::Property< float > m_sigmaX
Gaudi::Property< float > m_posZ
Gaudi::Property< float > m_tiltY
SG::WriteCondHandleKey< InDet::BeamSpotData > m_writeKey
virtual ~BeamSpotCondAlg()
BeamSpotCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
static const EventIDRange alwaysValid
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
Gaudi::Property< bool > m_useDB
Gaudi::Property< float > m_posX
virtual StatusCode initialize() override final
Gaudi::Property< float > m_sigmaZ
Forward declaration.
#define private