ATLAS Offline Software
PixelDistortionAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
11 #ifndef PIXELDISTORTIONALG_H
12 #define PIXELDISTORTIONALG_H
13 
15 
18 
22 
23 #include "Gaudi/Property.h"
24 
25 class PixelID;
26 
28  public:
29  PixelDistortionAlg(const std::string& name, ISvcLocator* pSvcLocator);
30  virtual ~PixelDistortionAlg() = default;
31 
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute() override;
34 
35  private:
36  const PixelID* m_pixelID{nullptr};
37  ServiceHandle<IAthRNGSvc> m_rndmSvc{this, "RndmSvc", "AthRNGSvc"};
38 
40  {this, "ReadKey", "/Indet/PixelDist", "Input readout distortion folder"};
41 
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
PixelDistortionData.h
Hold pixel distortion data produced by PixelDistortionAlg.
PixelDistortionAlg::m_distortionVersion
Gaudi::Property< int > m_distortionVersion
Definition: PixelDistortionAlg.h:49
WriteCondHandleKey.h
PixelDistortionAlg::execute
virtual StatusCode execute() override
Definition: PixelDistortionAlg.cxx:40
PixelDistortionAlg::m_writeKey
SG::WriteCondHandleKey< PixelDistortionData > m_writeKey
Definition: PixelDistortionAlg.h:43
PixelDistortionAlg::~PixelDistortionAlg
virtual ~PixelDistortionAlg()=default
PixelDistortionAlg::m_writeToFile
Gaudi::Property< bool > m_writeToFile
Definition: PixelDistortionAlg.h:52
AthAlgorithm.h
PixelDistortionAlg::m_readKey
SG::ReadCondHandleKey< DetCondCFloat > m_readKey
Definition: PixelDistortionAlg.h:40
PixelDistortionAlg::initialize
virtual StatusCode initialize() override
Definition: PixelDistortionAlg.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PixelDistortionAlg::PixelDistortionAlg
PixelDistortionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PixelDistortionAlg.cxx:23
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SG::ReadCondHandleKey< DetCondCFloat >
DetCondCFloat.h
PixelDistortionAlg::m_inputFileName
Gaudi::Property< std::string > m_inputFileName
Definition: PixelDistortionAlg.h:55
PixelDistortionAlg
Definition: PixelDistortionAlg.h:27
SG::WriteCondHandleKey< PixelDistortionData >
PixelID
Definition: PixelID.h:67
PixelDistortionAlg::m_distortionInputSource
Gaudi::Property< int > m_distortionInputSource
Definition: PixelDistortionAlg.h:46
PixelDistortionAlg::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Random number service.
Definition: PixelDistortionAlg.h:37
IAthRNGSvc.h
ServiceHandle< IAthRNGSvc >
PixelDistortionAlg::m_pixelID
const PixelID * m_pixelID
Definition: PixelDistortionAlg.h:36