ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::Trk2dDistanceSeeder Class Referencefinal

AlgoTool calculates the points of minimum distance between two tracks on the transverse plane, which is analytically well defined (intersection of two circles). More...

#include <Trk2dDistanceSeeder.h>

Inheritance diagram for Trk::Trk2dDistanceSeeder:
Collaboration diagram for Trk::Trk2dDistanceSeeder:

Public Member Functions

 Trk2dDistanceSeeder (const std::string &t, const std::string &n, const IInterface *p)
virtual ~Trk2dDistanceSeeder ()
virtual StatusCode initialize () override
virtual StatusCode finalize () override
TwoPointOnTrack GetSeed (const TwoTracks &mytracks, TwoPoints *twopoints=nullptr) 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 sysInitialize () override
 Perform system initialization for an algorithm.
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

Static Public Member Functions

static const InterfaceID & interfaceID ()

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

double getBField (const Perigee &p, MagField::AtlasFieldCache &cache) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

bool m_solveAmbiguityUsingZ
SG::ReadCondHandleKey< AtlasFieldCacheCondObjm_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"}
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

AlgoTool calculates the points of minimum distance between two tracks on the transverse plane, which is analytically well defined (intersection of two circles).

In case of double intersection different possibilities were considered; at the end I found reasonably good to choose the intersection point where the tracks are nearest in the z coordinate...

changes: 11-11-2007 Intersection case completely rewritten after having done analytical calculation (sign come out of calculation!)

Author
Giaci.nosp@m.nto..nosp@m.Piacq.nosp@m.uadi.nosp@m.o@phy.nosp@m.sik..nosp@m.uni-f.nosp@m.reib.nosp@m.urg.d.nosp@m.e

Definition at line 35 of file Trk2dDistanceSeeder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ Trk2dDistanceSeeder()

Trk::Trk2dDistanceSeeder::Trk2dDistanceSeeder ( const std::string & t,
const std::string & n,
const IInterface * p )

Definition at line 143 of file Trk2dDistanceSeeder.cxx.

143 :
144 AthAlgTool(t,n,p),
146 {
147 declareProperty("SolveAmbiguityUsingZ",m_solveAmbiguityUsingZ);
148 declareInterface<Trk2dDistanceSeeder>(this);
149 }
AthAlgTool()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ ~Trk2dDistanceSeeder()

Trk::Trk2dDistanceSeeder::~Trk2dDistanceSeeder ( )
virtualdefault

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ finalize()

StatusCode Trk::Trk2dDistanceSeeder::finalize ( )
overridevirtual

Definition at line 161 of file Trk2dDistanceSeeder.cxx.

162 {
163 ATH_MSG_DEBUG( "Finalize successful" );
164 return StatusCode::SUCCESS;
165 }
#define ATH_MSG_DEBUG(x,...)

◆ getBField()

double Trk::Trk2dDistanceSeeder::getBField ( const Perigee & p,
MagField::AtlasFieldCache & cache ) const
private

Definition at line 426 of file Trk2dDistanceSeeder.cxx.

427 {
428 double magnFieldVect[3];
429 double posXYZ[3];
430 posXYZ[0] = p.associatedSurface().center().x();
431 posXYZ[1] = p.associatedSurface().center().y();
432 posXYZ[2] = p.associatedSurface().center().z();
433
434 cache.getField(posXYZ,magnFieldVect);
435 const double bfield = magnFieldVect[2]*299.792;//should be in GeV/mm
436 if (bfield==0. || std::isnan(bfield)) {
437 ATH_MSG_DEBUG( "Could not find a magnetic field different from zero: very very strange" );
438 return 0.60407; //Value in GeV/mm (ATLAS units)
439 }
440 ATH_MSG_DEBUG( "Magnetic field projection of z axis in the perigee position is: " << bfield << " GeV/mm " );
441
442 return bfield;
443 }
const IIntersectionCache * cache() const
Retrieve the associated cache block, if it exists.

◆ GetSeed()

TwoPointOnTrack Trk::Trk2dDistanceSeeder::GetSeed ( const TwoTracks & mytracks,
TwoPoints * twopoints = nullptr ) const

Definition at line 169 of file Trk2dDistanceSeeder.cxx.

171 {
172 SG::ReadCondHandle<AtlasFieldCacheCondObj> readHandle{m_fieldCacheCondObjInputKey, Gaudi::Hive::currentContext()};
173 const AtlasFieldCacheCondObj* fieldCondObj{*readHandle};
174 if (!fieldCondObj)[[unlikely]]{
175 ATH_MSG_ERROR("GetSeed: fieldCondObj is nullptr.");
176 return {};
177 }
178 MagField::AtlasFieldCache fieldCache;
179 fieldCondObj->getInitializedCache (fieldCache);
180
181 const double bfield1 = getBField (mytracks.getFirstPerigee(), fieldCache);
182 const double bfield2 = getBField (mytracks.getSecondPerigee(), fieldCache);
183
184 //phitanpoca here means not the tan to poca (which is phi0) but the direction from perigee to the center of curvature (I don't know
185 //why I chose this strange name, sorry!)
186 const double phitanpoca1=getphipoca(mytracks.getFirstPerigee());
187 const double phitanpoca2=getphipoca(mytracks.getSecondPerigee());
188
189 //Temporary abs1 and abs2 are the signed radius quantities (later we will reduce it to unsigned quantities)
190 double abs1 = getRadiusOfCurvature(mytracks.getFirstPerigee(), bfield1);
191 double abs2 = getRadiusOfCurvature(mytracks.getSecondPerigee(),bfield2);
192
193 const double sgnr1 = abs1>0 ? 1. : -1.;
194 const double sgnr2 = abs2>0 ? 1. : -1.;
195
196 //component x of center of curv of first particle
197 const std::pair<Amg::Vector3D,Amg::Vector3D> centersofcurv
198 (getCenterOfCurvature(mytracks.getFirstPerigee(),abs1,phitanpoca1),
199 getCenterOfCurvature(mytracks.getSecondPerigee(),abs2,phitanpoca2));
200
201#ifdef TRK2DDISTANCESEEDER_DEBUG
202 ATH_MSG_DEBUG( " Center of track number 1: " << centersofcurv.first << " center of track 2 " << centersofcurv.second );
203#endif
204
205 const double distance2d = dist2d(centersofcurv.first,centersofcurv.second);
206
207 abs1 = std::abs(abs1);
208 abs2 = std::abs(abs2);
209
210
211#ifdef TRK2DDISTANCESEEDER_DEBUG
212 ATH_MSG_DEBUG( "abs1: " << abs1 << " abs2: " << abs2 );
213 ATH_MSG_DEBUG( "phitanpoca1: " << phitanpoca1 << " phitanpoca2: " << phitanpoca2 );
214 ATH_MSG_DEBUG( "distance2d " << distance2d );
215#endif
216
217 double phi1 = 0;
218 double phi2 = 0;
219
220 // Strictly redundant with phi1 and phi2 above, but needed to get results
221 // that are rounded identically with the pre-MT version.
222 double phi1poca = 0;
223 double phi2poca = 0;
224
225 //first case (the two circles are the one distinct from the other)
226 if (distance2d > (abs1+abs2)) {
227
228#ifdef TRK2DDISTANCESEEDER_DEBUG
229 ATH_MSG_DEBUG ("Distinct circles " );
230#endif
231
232 phi1 = safeAtan2(centersofcurv.second.y()-centersofcurv.first.y(),
233 centersofcurv.second.x()-centersofcurv.first.x());
234
235 if (sgnr2<0) {
236 phi2=phi1;
237 } else {
238 phi2=oppositeangle(phi1);
239 }
240
241 if (sgnr1<0) {
242 phi1=oppositeangle(phi1);
243 }
244
245 //Now you are worried that the solution has to be the one nearest to the original phi...
246 phi1=takenearest(phi1,phitanpoca1);
247 phi2=takenearest(phi2,phitanpoca2);
248 }
249 else {
250 //second case(if distance2d<abs1+abs2 we have still two cases
251 //1) one circle inside the other (nobody is touched) (if |abs2-abs1|>d)
252 //2) two intersections (if |abs2-abs1|<d)
253 // -->(case with one intersection seems me of no physical interest)
254 if (fabs(abs2-abs1)>=distance2d) {
255
256#ifdef TRK2DDISTANCESEEDER_DEBUG
257 ATH_MSG_DEBUG( " one circle inside the other " );
258#endif
259
260 //1)
261 if (abs2<abs1) {
262
263#ifdef TRK2DDISTANCESEEDER_DEBUG
264 ATH_MSG_DEBUG(" second radius smaller than first " );
265#endif
266 phi1 = safeAtan2(centersofcurv.second.y()-centersofcurv.first.y(),
267 centersofcurv.second.x()-centersofcurv.first.x());
268 phi2=phi1;
269 }
270 else {
271
272#ifdef TRK2DDISTANCESEEDER_DEBUG
273 ATH_MSG_DEBUG( " first radius smaller than second " );
274#endif
275
276
277 phi1 = safeAtan2(-(centersofcurv.second.y()-centersofcurv.first.y()),
278 -(centersofcurv.second.x()-centersofcurv.first.x()));
279 phi2=phi1;
280 }
281
282 //adjust the sign, taking into account possible q(1,2)<0
283 if (sgnr2<0) {
284 phi2=oppositeangle(phi2);
285 }
286
287 if (sgnr1<0) {
288 phi1=oppositeangle(phi1);
289 }
290
291 phi1=takenearest(setphipoca(phi1),setphipoca(phitanpoca1));
292 phi2=takenearest(setphipoca(phi2),setphipoca(phitanpoca2));
293 phi1poca = setphipoca(phi1);
294 phi2poca = setphipoca(phi2);
295 }
296 else {
297
298 //Do it easier...
299 const double projection2=(square(abs1)-square(abs2)-square(distance2d))/2./distance2d;
300 const double cosinus2=projection2/sgnr2/abs2;
301
302
303#ifdef TRK2DDISTANCESEEDER_DEBUG
304 const double projection1=(square(abs2)-square(abs1)-square(distance2d))/2./distance2d;
305 const double cosinus1=projection1/sgnr1/abs1;
306 ATH_MSG_DEBUG( "projection1: " << projection1 << " cosinus1 " << cosinus1
307 << "projection2: " << projection2 << " cosinus2 " << cosinus2 );
308#endif
309
310 const double phibase2 =
311 safeAtan2(centersofcurv.second.y() - centersofcurv.first.y(),
312 centersofcurv.second.x() - centersofcurv.first.x());
313
314 const double addtophi2=
315 safeAcos(cosinus2);
316
317#ifdef TRK2DDISTANCESEEDER_DEBUG
318 ATH_MSG_DEBUG( " phibase2 is : " << phibase2 << " add to phi " << addtophi2 );
319#endif
320
321 const std::pair<double,double> possiblephiontrack2(phibase2+addtophi2,phibase2-addtophi2);
322
323#ifdef TRK2DDISTANCESEEDER_DEBUG
324 ATH_MSG_DEBUG( "the two phis are: " << possiblephiontrack2.first << " and " << possiblephiontrack2.second );
325#endif
326
327 const std::pair<double,double>
328 possiblecosphitrack1((centersofcurv.second.x()-centersofcurv.first.x()
329 +sgnr2*abs2*std::cos(possiblephiontrack2.first))/sgnr1/abs1,
330 (centersofcurv.second.x()-centersofcurv.first.x()
331 +sgnr2*abs2*std::cos(possiblephiontrack2.second))/sgnr1/abs1);
332
333 const std::pair<double,double>
334 possiblesigntrack1(sgnr1*(centersofcurv.second.y()-centersofcurv.first.y()
335 +sgnr2*abs2*std::sin(possiblephiontrack2.first))>0?1.:-1.,
336 sgnr1*(centersofcurv.second.y()-centersofcurv.first.y()
337 +sgnr2*abs2*std::sin(possiblephiontrack2.second))>0?1.:-1.);
338
339 const std::pair<double,double>
340 possiblephiontrack1(possiblesigntrack1.first*safeAcos(possiblecosphitrack1.first),
341 possiblesigntrack1.second*safeAcos(possiblecosphitrack1.second));
342
343
344 const std::pair<PointOnTrack,PointOnTrack>
345 possiblepointsontrack1(PointOnTrack(mytracks.getFirstPerigee(),
346 takenearest(setphipoca(possiblephiontrack1.first),
347 setphipoca(phitanpoca1))),
348 PointOnTrack(mytracks.getFirstPerigee(),
349 takenearest(setphipoca(possiblephiontrack1.second),
350 setphipoca(phitanpoca1))));
351
352 const std::pair<PointOnTrack,PointOnTrack>
353 possiblepointsontrack2(PointOnTrack(mytracks.getSecondPerigee(),
354 takenearest(setphipoca(possiblephiontrack2.first),
355 setphipoca(phitanpoca2))),
356 PointOnTrack(mytracks.getSecondPerigee(),
357 takenearest(setphipoca(possiblephiontrack2.second),
358 setphipoca(phitanpoca2))));
359
360
361 const std::pair<Amg::Vector3D,Amg::Vector3D>
362 possiblepoints1(getSeedPoint(possiblepointsontrack1.first.getPerigee(),centersofcurv.first,
363 abs1*sgnr1,possiblepointsontrack1.first.getPhiPoint()),
364 getSeedPoint(possiblepointsontrack1.second.getPerigee(),centersofcurv.first,
365 abs1*sgnr1,possiblepointsontrack1.second.getPhiPoint()));
366
367 const std::pair<Amg::Vector3D,Amg::Vector3D>
368 possiblepoints2(getSeedPoint(possiblepointsontrack2.first.getPerigee(),centersofcurv.second,
369 abs2*sgnr2,possiblepointsontrack2.first.getPhiPoint()),
370 getSeedPoint(possiblepointsontrack2.second.getPerigee(),centersofcurv.second,
371 abs2*sgnr2,possiblepointsontrack2.second.getPhiPoint()));
372
373
374#ifdef TRK2DDISTANCESEEDER_DEBUG
375 ATH_MSG_DEBUG( "Point 1a: x " << possiblepoints1.first.x() << " y " << possiblepoints1.first.y() );
376 ATH_MSG_DEBUG( "Point 2a: x " << possiblepoints2.first.x() << " y " << possiblepoints2.first.y() );
377 ATH_MSG_DEBUG( "Point 1b: x " << possiblepoints1.second.x() << " y " << possiblepoints1.second.y() );
378 ATH_MSG_DEBUG( "Point 2b: x " << possiblepoints2.second.x() << " y " << possiblepoints2.second.y() );
379 ATH_MSG_DEBUG( "Distance between 1a and 2a:" << fabs(possiblepoints1.first.z()-possiblepoints2.first.z()) <<
380 "Distance between 1a and 2a:" << fabs(possiblepoints1.second.z()-possiblepoints2.second.z()) );
381#endif
382
383
384 //now discover what couple of points are the nearest ones
386 {
387 if (fabs(possiblepoints1.first.z()-possiblepoints2.first.z())<
388 fabs(possiblepoints1.second.z()-possiblepoints2.second.z()))
389 {
390 phi1poca = possiblepointsontrack1.first.getPhiPoint();
391 phi2poca = possiblepointsontrack2.first.getPhiPoint();
392 } else {
393 phi1poca = possiblepointsontrack1.second.getPhiPoint();
394 phi2poca = possiblepointsontrack2.second.getPhiPoint();
395 }
396 }
397 else
398 {
399 if (sqrt(possiblepoints1.first.x()*possiblepoints1.first.x()+possiblepoints1.first.y()*possiblepoints1.first.y())<
400 sqrt(possiblepoints2.first.x()*possiblepoints2.first.x()+possiblepoints2.first.y()*possiblepoints2.first.y()))
401 {
402 phi1poca = possiblepointsontrack1.first.getPhiPoint();
403 phi2poca = possiblepointsontrack2.first.getPhiPoint();
404 } else {
405 phi1poca = possiblepointsontrack1.second.getPhiPoint();
406 phi2poca = possiblepointsontrack2.second.getPhiPoint();
407 }
408 }
409 phi1=goFromPhipocaToPhi(phi1poca);
410 phi2=goFromPhipocaToPhi(phi2poca);
411 }
412 }
413
414 if (twopoints) {
415 *twopoints = TwoPoints (getSeedPoint(centersofcurv.first,
416 abs1*sgnr1,setphipoca(phi1)),
417 getSeedPoint(centersofcurv.second,
418 abs2*sgnr2,setphipoca(phi2)));
419 }
420
421 return std::make_pair (PointOnTrack (mytracks.getFirstPerigee(), phi1poca),
422 PointOnTrack (mytracks.getSecondPerigee(),phi2poca));
423 }
#define ATH_MSG_ERROR(x,...)
void getInitializedCache(MagField::AtlasFieldCache &cache) const
get B field cache for evaluation as a function of 2-d or 3-d position.
double getBField(const Perigee &p, MagField::AtlasFieldCache &cache) const
SG::ReadCondHandleKey< AtlasFieldCacheCondObj > m_fieldCacheCondObjInputKey
std::pair< Amg::Vector3D, Amg::Vector3D > TwoPoints
#define unlikely(x)

◆ initialize()

StatusCode Trk::Trk2dDistanceSeeder::initialize ( )
overridevirtual

Definition at line 153 of file Trk2dDistanceSeeder.cxx.

154 {
155 ATH_CHECK( AlgTool::initialize() );
157 ATH_MSG_DEBUG( "Initialize successful" );
158 return StatusCode::SUCCESS;
159 }
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ interfaceID()

const InterfaceID & Trk::Trk2dDistanceSeeder::interfaceID ( )
inlinestatic

Definition at line 39 of file Trk2dDistanceSeeder.h.

40 {
42 };
static const InterfaceID IID_Trk2dDistanceSeeder("Trk2dDistanceSeeder", 1, 1)

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, and AthCheckedComponent<::AthAlgTool >.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_fieldCacheCondObjInputKey

SG::ReadCondHandleKey<AtlasFieldCacheCondObj> Trk::Trk2dDistanceSeeder::m_fieldCacheCondObjInputKey {this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"}
private

Definition at line 65 of file Trk2dDistanceSeeder.h.

66{this, "AtlasFieldCacheCondObj", "fieldCondObj", "Name of the Magnetic Field conditions object key"};

◆ m_solveAmbiguityUsingZ

bool Trk::Trk2dDistanceSeeder::m_solveAmbiguityUsingZ
private

Definition at line 63 of file Trk2dDistanceSeeder.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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