ATLAS Offline Software
Loading...
Searching...
No Matches
PixelDistortionAlg Class Reference

#include <PixelDistortionAlg.h>

Inheritance diagram for PixelDistortionAlg:
Collaboration diagram for PixelDistortionAlg:

Public Member Functions

 PixelDistortionAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~PixelDistortionAlg ()=default
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual bool isReEntrant () const override
 Avoid scheduling algorithm multiple times.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

const PixelIDm_pixelID {nullptr}
ServiceHandle< IAthRNGSvcm_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
 Random number service.
SG::ReadCondHandleKey< DetCondCFloatm_readKey {this, "ReadKey", "/Indet/PixelDist", "Input readout distortion folder"}
SG::WriteCondHandleKey< PixelDistortionDatam_writeKey {this, "WriteKey", "PixelDistortionData", "Output readout distortion data"}
Gaudi::Property< int > m_distortionInputSource {this, "DistortionInputSource", 4, "Source of module distortions: 0 (none), 1 (constant), 2 (text file), 3 (random), 4 (database)"}
Gaudi::Property< int > m_distortionVersion {this, "DistortionVersion", -1, "Version number for distortion model"}
Gaudi::Property< bool > m_writeToFile {this, "DistortionWriteToFile", false, "Record data in storegate"}
Gaudi::Property< std::string > m_inputFileName {this, "DistortionFileName", "/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/TrackingCP/PixelDistortions/PixelDistortionsData_v2_BB.txt","Read distortions from this file"}
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 27 of file PixelDistortionAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ PixelDistortionAlg()

PixelDistortionAlg::PixelDistortionAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 23 of file PixelDistortionAlg.cxx.

23 :
24 ::AthCondAlgorithm(name, pSvcLocator)
25{
26}

◆ ~PixelDistortionAlg()

virtual PixelDistortionAlg::~PixelDistortionAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode PixelDistortionAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 40 of file PixelDistortionAlg.cxx.

40 {
41 ATH_MSG_DEBUG("PixelDistortionAlg::execute(const EventContext& ctx) const");
42
43 SG::WriteCondHandle<PixelDistortionData> writeHandle(m_writeKey, ctx);
44 if (writeHandle.isValid()) {
45 ATH_MSG_DEBUG("CondHandle " << writeHandle.fullKey() << " is already valid.. In theory this should not be called, but may happen if multiple concurrent events are being processed out of order.");
46 return StatusCode::SUCCESS;
47 }
48
49 // Construct the output Cond Object and fill it in
50 std::unique_ptr<PixelDistortionData> writeCdo(std::make_unique<PixelDistortionData>());
51
52
53
54 constexpr int nmodule_max = 2048;
55 std::unordered_map<uint32_t,std::vector<float>> distortionMap;
56 std::unordered_map<uint32_t,unsigned long long> ids;
57 if (m_distortionInputSource==0) { // no bow correction
58 ATH_MSG_DEBUG("No bow correction");
59 writeCdo -> setVersion(m_distortionVersion);
60 for (int i=0; i<nmodule_max; i++) {
61 distortionMap[i].push_back(0.0);
62 distortionMap[i].push_back(0.0);
63 distortionMap[i].push_back(0.0);
64 }
65 }
66 else if (m_distortionInputSource==1) { // constant bow
67 ATH_MSG_DEBUG("Using constant pixel distortions ");
68 writeCdo -> setVersion(m_distortionVersion);
69 for (int i=0; i<nmodule_max; i++) {
70 distortionMap[i].push_back(0.1); // 1/mm
71 distortionMap[i].push_back(0.1); // 1/mm
72 distortionMap[i].push_back(2.0*std::atan(0.0005)/CLHEP::degree); // convert to degree
73 }
74 }
75 else if (m_distortionInputSource==2) { // read from file
76 const std::string &file_name = m_inputFileName;
77 if (file_name.empty()) {
78 ATH_MSG_ERROR("Distortion filename is empty not found! No pixel distortion will be applied.");
79 return StatusCode::FAILURE;
80 }
81
82 ATH_MSG_DEBUG("Reading pixel distortions from file: " << file_name);
83 writeCdo -> setVersion(m_distortionVersion);
84
85 if (file_name[0] != '/') {
86 PathResolver::find_file(file_name, "DATAPATH");
87 }
88 std::ifstream input(file_name);
89 if (!input.good()) {
90 ATH_MSG_ERROR("Cannot open " << file_name);
91 return StatusCode::FAILURE;
92 }
93
94 int distosize;
95 if (m_distortionVersion < 2) distosize = 3;
96 else distosize = 441;
97
98 while (!input.eof()) {
99 unsigned int idmod{};
100 unsigned int hashID {};
101 float data{};
102
103 if (m_distortionVersion == 1) {
104 input >> idmod;
105 hashID = idmod;
106 } else {
107 input >> std::hex >> idmod >> std::dec;
108 hashID = m_pixelID->wafer_hash((Identifier)idmod);
109 }
110 //Values read in from file should be tested to ensure they are within sensible limits
111 //we assume however that the file is a trusted source.
112 //coverity[TAINTED_SCALAR]
113 Identifier modId = m_pixelID->wafer_id((IdentifierHash)hashID);
114 ids[hashID] = modId.get_compact();
115 ATH_MSG_DEBUG("Identifier = 0x" << std::hex << ids[hashID] << std::dec);
116
117 std::stringstream s;
118 for (int i = 0; i < distosize; ++i) {
119 input >> data;
120 s << data << " ";
121 distortionMap[hashID].push_back(data);
122 }
123 ATH_MSG_DEBUG(s.str());
124 }
125 input.close();
126 }
127 else if (m_distortionInputSource==3) { // random generation
128 ATH_MSG_DEBUG("Using random pixel distortions");
129 writeCdo -> setVersion(m_distortionVersion);
130
131 ATHRNG::RNGWrapper* rngWrapper = m_rndmSvc->getEngine(this);
132 CLHEP::HepRandomEngine *rndmEngine = rngWrapper->getEngine(ctx);
133 //these numbers could become properties, but seems unnecessary now (they are the same in all cases):
134 constexpr double distortionMeanR{0.12/CLHEP::meter};
135 constexpr double distortionRMSR{0.08};
136 constexpr double distortionMeanTwist{-0.0005};
137
138 for (int i=0; i<nmodule_max; i++) {
139 float r1 = CLHEP::RandGaussZiggurat::shoot(rndmEngine,distortionMeanR,distortionRMSR);
140 float r2 = CLHEP::RandGaussZiggurat::shoot(rndmEngine,r1,distortionRMSR/10.);//to implement a correlation between distortions on 2 sides of the module
141 float twist = CLHEP::RandGaussZiggurat::shoot(rndmEngine,distortionMeanTwist,distortionMeanTwist);
142 distortionMap[i].push_back(r1*CLHEP::meter); // convert to 1/mm
143 distortionMap[i].push_back(r2*CLHEP::meter); // convert to 1/mm
144 distortionMap[i].push_back(2.0*std::atan(twist)/CLHEP::degree); // convert to degree
145 }
146 }
147 else if (m_distortionInputSource==4) { // read from database here
148 ATH_MSG_DEBUG("Using pixel distortions from database");
149 SG::ReadCondHandle<DetCondCFloat> readHandle(m_readKey, ctx);
150 const DetCondCFloat* readCdo = *readHandle;
151 if (readCdo==nullptr) {
152 ATH_MSG_FATAL("Null pointer to the read conditions object");
153 return StatusCode::FAILURE;
154 }
155 // Get the validitiy range
156 ATH_MSG_DEBUG("Size of DetCondCFloat " << readHandle.fullKey() << " readCdo->size()= " << readCdo->size());
157
158 int version = 0;
159 if (readCdo->tag()=="/Indet/PixelDist") {
160 version = 0; // For reproducing bug in earlier versions for backward compatibility
161 ATH_MSG_INFO("Detected old version of pixel distortions data.");
162 }
163 else {
164 bool gotVersion = false;
165 // Get version number, expecting string to have the form /Indet/PixelDist_v#
166 // If not recongnized will default to latest version.
167 std::string baseStr = "/Indet/PixelDist_v";
168 if (readCdo->tag().compare(0,baseStr.size(),baseStr)==0) {
169 std::istringstream istr(readCdo->tag().substr(baseStr.size()));
170 int version_tmp = 0;
171 istr >> version_tmp;
172 if (istr.eof()) { // Should be have read whole stream if its a number
173 version = version_tmp;
174 gotVersion = true;
175 }
176 }
177 if (!gotVersion) {
178 ATH_MSG_WARNING("Unable to determine version number of pixel distortions data. Version string: " << readCdo->tag());
179 }
180 }
181 writeCdo -> setVersion(version);
182 ATH_MSG_DEBUG("Distortions data version = " << version);
183
184 int distosize = readCdo->size();
185
186 for (int i=0; i<nmodule_max; i++) {
187 if (readCdo->find(m_pixelID->wafer_id(IdentifierHash(i)))) {
188 Identifier modId = m_pixelID->wafer_id((IdentifierHash)i);
189 const float *disto = readCdo->find(modId);
190 ids[i] = modId.get_compact();
191
192 ATH_MSG_DEBUG("Identifier = 0x" << std::hex << ids[i] << std::dec);
193 std::stringstream s;
194 for (int j = 0; j < distosize; ++j) {
195 distortionMap[i].push_back(disto[j]);
196 s << disto[j] << " ";
197 }
198 ATH_MSG_DEBUG(s.str());
199 }
200 }
201 }
202 writeCdo -> setDistortionMap(distortionMap);
203 writeCdo -> setIds(ids);
204
205 if (m_writeToFile) {
206 std::ofstream* outfile = new std::ofstream("output_distortion.txt");
207 for (int i=0; i<nmodule_max; i++) {
208 if (!distortionMap[i].empty()) {
209 if (m_distortionVersion==0) {
210 *outfile << m_pixelID->wafer_id(IdentifierHash(i)) << " " << distortionMap[i].at(0) << " " << distortionMap[i].at(1) << " " << distortionMap[i].at(2) << std::endl;
211 }
212 else if (m_distortionVersion>0) {
213 *outfile << i << " " << distortionMap[i].at(0) << " " << distortionMap[i].at(1) << " " << distortionMap[i].at(2) << std::endl;
214 }
215 }
216 }
217 outfile->close();
218 delete outfile;
219 }
220
221 const EventIDBase start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0, 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
222 const EventIDBase stop {EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
223 const EventIDRange rangeW{start, stop};
224
225 if (writeHandle.record(rangeW, std::move(writeCdo)).isFailure()) {
226 ATH_MSG_FATAL("Could not record PixelDistortionData " << writeHandle.key() << " with EventRange " << rangeW << " into Conditions Store");
227 return StatusCode::FAILURE;
228 }
229 ATH_MSG_DEBUG("recorded new CDO " << writeHandle.key() << " with range " << rangeW << " into Conditions Store");
230
231 return StatusCode::SUCCESS;
232}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
static const Attributes_t empty
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Definition RNGWrapper.h:134
const std::string & tag() const
const float * find(const Identifier &ident) const
int size() const
value_type get_compact() const
Get the compact id.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
Gaudi::Property< int > m_distortionVersion
Gaudi::Property< std::string > m_inputFileName
SG::ReadCondHandleKey< DetCondCFloat > m_readKey
ServiceHandle< IAthRNGSvc > m_rndmSvc
Random number service.
SG::WriteCondHandleKey< PixelDistortionData > m_writeKey
Gaudi::Property< bool > m_writeToFile
const PixelID * m_pixelID
Gaudi::Property< int > m_distortionInputSource

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode PixelDistortionAlg::initialize ( )
overridevirtual

Definition at line 28 of file PixelDistortionAlg.cxx.

28 {
29 ATH_MSG_DEBUG("PixelDistortionAlg::initialize()");
30
31 ATH_CHECK(detStore()->retrieve(m_pixelID,"PixelID"));
32
33 ATH_CHECK(m_rndmSvc.retrieve());
34 ATH_CHECK(m_readKey.initialize());
35 ATH_CHECK(m_writeKey.initialize());
36
37 return StatusCode::SUCCESS;
38}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ isReEntrant()

virtual bool AthCondAlgorithm::isReEntrant ( ) const
inlineoverridevirtualinherited

Avoid scheduling algorithm multiple times.

With multiple concurrent events, conditions objects often expire simultaneously for all slots. To avoid that the scheduler runs the CondAlg in each slot, we declare it as "non-reentrant". This ensures that the conditions objects are only created once.

In case a particular CondAlg should behave differently, it can override this method again and return true.

See also
ATEAM-836

Definition at line 39 of file AthCondAlgorithm.h.

39{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_distortionInputSource

Gaudi::Property<int> PixelDistortionAlg::m_distortionInputSource {this, "DistortionInputSource", 4, "Source of module distortions: 0 (none), 1 (constant), 2 (text file), 3 (random), 4 (database)"}
private

Definition at line 45 of file PixelDistortionAlg.h.

46{this, "DistortionInputSource", 4, "Source of module distortions: 0 (none), 1 (constant), 2 (text file), 3 (random), 4 (database)"};

◆ m_distortionVersion

Gaudi::Property<int> PixelDistortionAlg::m_distortionVersion {this, "DistortionVersion", -1, "Version number for distortion model"}
private

Definition at line 48 of file PixelDistortionAlg.h.

49{this, "DistortionVersion", -1, "Version number for distortion model"};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_inputFileName

Gaudi::Property<std::string> PixelDistortionAlg::m_inputFileName {this, "DistortionFileName", "/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/TrackingCP/PixelDistortions/PixelDistortionsData_v2_BB.txt","Read distortions from this file"}
private

Definition at line 54 of file PixelDistortionAlg.h.

55{this, "DistortionFileName", "/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/TrackingCP/PixelDistortions/PixelDistortionsData_v2_BB.txt","Read distortions from this file"};

◆ m_pixelID

const PixelID* PixelDistortionAlg::m_pixelID {nullptr}
private

Definition at line 36 of file PixelDistortionAlg.h.

36{nullptr};

◆ m_readKey

SG::ReadCondHandleKey<DetCondCFloat> PixelDistortionAlg::m_readKey {this, "ReadKey", "/Indet/PixelDist", "Input readout distortion folder"}
private

Definition at line 39 of file PixelDistortionAlg.h.

40{this, "ReadKey", "/Indet/PixelDist", "Input readout distortion folder"};

◆ m_rndmSvc

ServiceHandle<IAthRNGSvc> PixelDistortionAlg::m_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
private

Random number service.

Definition at line 37 of file PixelDistortionAlg.h.

37{this, "RndmSvc", "AthRNGSvc"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeKey

SG::WriteCondHandleKey<PixelDistortionData> PixelDistortionAlg::m_writeKey {this, "WriteKey", "PixelDistortionData", "Output readout distortion data"}
private

Definition at line 42 of file PixelDistortionAlg.h.

43{this, "WriteKey", "PixelDistortionData", "Output readout distortion data"};

◆ m_writeToFile

Gaudi::Property<bool> PixelDistortionAlg::m_writeToFile {this, "DistortionWriteToFile", false, "Record data in storegate"}
private

Definition at line 51 of file PixelDistortionAlg.h.

52{this, "DistortionWriteToFile", false, "Record data in storegate"};

The documentation for this class was generated from the following files: