ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
BeamSpotConditions
src
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
7
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
8
#include "
StoreGate/ReadCondHandleKey.h
"
9
#include "
StoreGate/WriteCondHandleKey.h
"
10
#include "
AthenaPoolUtilities/AthenaAttributeList.h
"
11
12
#include "GaudiKernel/EventIDRange.h"
13
#include <limits>
14
15
#include "
BeamSpotConditionsData/BeamSpotData.h
"
16
17
class
BeamSpotCondAlg
:
public
AthCondAlgorithm
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
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
AthCondAlgorithm.h
Base class for conditions algorithms.
AthenaAttributeList.h
BeamSpotData.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table.
Definition
PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:46
BeamSpotCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
BeamSpotCondAlg.cxx:38
BeamSpotCondAlg::m_tiltX
Gaudi::Property< float > m_tiltX
Definition
BeamSpotCondAlg.h:44
BeamSpotCondAlg::m_posY
Gaudi::Property< float > m_posY
Definition
BeamSpotCondAlg.h:39
BeamSpotCondAlg::m_sigmaY
Gaudi::Property< float > m_sigmaY
Definition
BeamSpotCondAlg.h:42
BeamSpotCondAlg::m_sigmaXY
Gaudi::Property< float > m_sigmaXY
Definition
BeamSpotCondAlg.h:46
BeamSpotCondAlg::m_status
Gaudi::Property< int > m_status
Definition
BeamSpotCondAlg.h:37
BeamSpotCondAlg::m_sigmaX
Gaudi::Property< float > m_sigmaX
Definition
BeamSpotCondAlg.h:41
BeamSpotCondAlg::m_posZ
Gaudi::Property< float > m_posZ
Definition
BeamSpotCondAlg.h:40
BeamSpotCondAlg::m_tiltY
Gaudi::Property< float > m_tiltY
Definition
BeamSpotCondAlg.h:45
BeamSpotCondAlg::m_writeKey
SG::WriteCondHandleKey< InDet::BeamSpotData > m_writeKey
Definition
BeamSpotCondAlg.h:33
BeamSpotCondAlg::~BeamSpotCondAlg
virtual ~BeamSpotCondAlg()
BeamSpotCondAlg::BeamSpotCondAlg
BeamSpotCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
BeamSpotCondAlg.cxx:20
BeamSpotCondAlg::alwaysValid
static const EventIDRange alwaysValid
Definition
BeamSpotCondAlg.h:8
BeamSpotCondAlg::m_readKey
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
Definition
BeamSpotCondAlg.h:30
BeamSpotCondAlg::m_useDB
Gaudi::Property< bool > m_useDB
Definition
BeamSpotCondAlg.h:36
BeamSpotCondAlg::m_posX
Gaudi::Property< float > m_posX
Definition
BeamSpotCondAlg.h:38
BeamSpotCondAlg::initialize
virtual StatusCode initialize() override final
Definition
BeamSpotCondAlg.cxx:28
BeamSpotCondAlg::m_sigmaZ
Gaudi::Property< float > m_sigmaZ
Definition
BeamSpotCondAlg.h:43
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0