ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
18
22
23#include "Gaudi/Property.h"
24
25class 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(const EventContext& ctx) const 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
Base class for conditions algorithms.
Hold pixel distortion data produced by PixelDistortionAlg.
Base class for conditions algorithms.
Gaudi::Property< int > m_distortionVersion
virtual StatusCode execute(const EventContext &ctx) const override
PixelDistortionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_inputFileName
SG::ReadCondHandleKey< DetCondCFloat > m_readKey
ServiceHandle< IAthRNGSvc > m_rndmSvc
Random number service.
SG::WriteCondHandleKey< PixelDistortionData > m_writeKey
virtual ~PixelDistortionAlg()=default
virtual StatusCode initialize() override
Gaudi::Property< bool > m_writeToFile
const PixelID * m_pixelID
Gaudi::Property< int > m_distortionInputSource
This is an Identifier helper class for the Pixel subdetector.
Definition PixelID.h:67