ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
PixelConditionsAlgorithms
src
PixelDistortionAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
10
11
#ifndef PIXELDISTORTIONALG_H
12
#define PIXELDISTORTIONALG_H
13
14
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
15
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
#include "
DetDescrConditions/DetCondCFloat.h
"
18
19
#include "
StoreGate/WriteCondHandleKey.h
"
20
#include "
PixelConditionsData/PixelDistortionData.h
"
21
#include "
AthenaKernel/IAthRNGSvc.h
"
22
23
#include "Gaudi/Property.h"
24
25
class
PixelID
;
26
27
class
PixelDistortionAlg
:
public
AthCondAlgorithm
{
28
public
:
29
PixelDistortionAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
30
virtual
~PixelDistortionAlg
() =
default
;
31
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
34
35
private
:
36
const
PixelID
*
m_pixelID
{
nullptr
};
37
ServiceHandle<IAthRNGSvc>
m_rndmSvc
{
this
,
"RndmSvc"
,
"AthRNGSvc"
};
38
39
SG::ReadCondHandleKey<DetCondCFloat>
m_readKey
40
{
this
,
"ReadKey"
,
"/Indet/PixelDist"
,
"Input readout distortion folder"
};
41
42
SG::WriteCondHandleKey<PixelDistortionData>
m_writeKey
43
{
this
,
"WriteKey"
,
"PixelDistortionData"
,
"Output readout distortion data"
};
44
45
Gaudi::Property<int>
m_distortionInputSource
46
{
this
,
"DistortionInputSource"
, 4,
"Source of module distortions: 0 (none), 1 (constant), 2 (text file), 3 (random), 4 (database)"
};
47
48
Gaudi::Property<int>
m_distortionVersion
49
{
this
,
"DistortionVersion"
, -1,
"Version number for distortion model"
};
50
51
Gaudi::Property<bool>
m_writeToFile
52
{
this
,
"DistortionWriteToFile"
,
false
,
"Record data in storegate"
};
53
54
Gaudi::Property<std::string>
m_inputFileName
55
{
this
,
"DistortionFileName"
,
"/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/TrackingCP/PixelDistortions/PixelDistortionsData_v2_BB.txt"
,
"Read distortions from this file"
};
56
57
};
58
59
#endif
AthCondAlgorithm.h
Base class for conditions algorithms.
DetCondCFloat.h
IAthRNGSvc.h
PixelDistortionData.h
Hold pixel distortion data produced by PixelDistortionAlg.
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
PixelDistortionAlg::m_distortionVersion
Gaudi::Property< int > m_distortionVersion
Definition
PixelDistortionAlg.h:49
PixelDistortionAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
PixelDistortionAlg.cxx:40
PixelDistortionAlg::PixelDistortionAlg
PixelDistortionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
PixelDistortionAlg.cxx:23
PixelDistortionAlg::m_inputFileName
Gaudi::Property< std::string > m_inputFileName
Definition
PixelDistortionAlg.h:55
PixelDistortionAlg::m_readKey
SG::ReadCondHandleKey< DetCondCFloat > m_readKey
Definition
PixelDistortionAlg.h:40
PixelDistortionAlg::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Random number service.
Definition
PixelDistortionAlg.h:37
PixelDistortionAlg::m_writeKey
SG::WriteCondHandleKey< PixelDistortionData > m_writeKey
Definition
PixelDistortionAlg.h:43
PixelDistortionAlg::~PixelDistortionAlg
virtual ~PixelDistortionAlg()=default
PixelDistortionAlg::initialize
virtual StatusCode initialize() override
Definition
PixelDistortionAlg.cxx:28
PixelDistortionAlg::m_writeToFile
Gaudi::Property< bool > m_writeToFile
Definition
PixelDistortionAlg.h:52
PixelDistortionAlg::m_pixelID
const PixelID * m_pixelID
Definition
PixelDistortionAlg.h:36
PixelDistortionAlg::m_distortionInputSource
Gaudi::Property< int > m_distortionInputSource
Definition
PixelDistortionAlg.h:46
PixelID
This is an Identifier helper class for the Pixel subdetector.
Definition
PixelID.h:69
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
ServiceHandle
Definition
ClusterMakerTool.h:36
Generated on
for ATLAS Offline Software by
1.17.0