ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Trk::IntersectorWrapper Class Referencefinal

#include <IntersectorWrapper.h>

Inheritance diagram for Trk::IntersectorWrapper:
Collaboration diagram for Trk::IntersectorWrapper:

Classes

struct  Cache
 

Public Member Functions

 IntersectorWrapper (const std::string &type, const std::string &name, const IInterface *parent)
 
 ~IntersectorWrapper (void)
 
virtual StatusCode initialize () override final
 
virtual StatusCode finalize () override final
 
virtual std::unique_ptr< NeutralParameterspropagate (const NeutralParameters &, const Surface &, PropDirection, const BoundaryCheck &, bool) const override final
 N 0) Neutral parameters method More...
 
virtual std::unique_ptr< TrackParameterspropagate (const EventContext &ctx, const TrackParameters &parm, const Surface &sf, PropDirection dir, const BoundaryCheck &bcheck, const MagneticFieldProperties &mprop, ParticleHypothesis particle, bool returnCurv, const TrackingVolume *) const override final
 Propagation interface: The propagation method called by the TrkExtrapolator. More...
 
virtual std::unique_ptr< TrackParameterspropagate (const EventContext &, const TrackParameters &, std::vector< DestSurf > &, PropDirection, const MagneticFieldProperties &, ParticleHypothesis, std::vector< unsigned int > &, double &, bool, bool, const TrackingVolume *) const override final
 Propagation interface: The propagation method called by the TrkExtrapolator. More...
 
virtual std::unique_ptr< TrackParameterspropagateT (const EventContext &, const TrackParameters &, std::vector< DestSurf > &, PropDirection, const MagneticFieldProperties &, ParticleHypothesis, std::vector< unsigned int > &, PathLimit &, TimeLimit &, bool, const TrackingVolume *, std::vector< Trk::HitInfo > *&) const override final
 Propagate parameters and covariance with search of closest surface time included. More...
 
virtual std::unique_ptr< TrackParameterspropagate (const EventContext &ctx, const TrackParameters &, const Surface &, PropDirection, const BoundaryCheck &, const MagneticFieldProperties &, std::optional< TransportJacobian > &, double &, ParticleHypothesis, bool, const TrackingVolume *) const override final
 Propagation interface: The propagation method including the return of the TransportJacobian matrix. More...
 
virtual std::unique_ptr< TrackParameterspropagateParameters (const EventContext &ctx, const TrackParameters &parm, const Surface &sf, PropDirection dir, const BoundaryCheck &bcheck, const MagneticFieldProperties &mprop, ParticleHypothesis particle=pion, bool returnCurv=false, const TrackingVolume *tVol=nullptr) const override final
 Propagation interface without Covariance matrix propagation the pathlength has to be returned for eventual following propagateCovariance. More...
 
virtual std::unique_ptr< TrackParameterspropagateParameters (const EventContext &ctx, const TrackParameters &parm, const Surface &sf, PropDirection dir, const BoundaryCheck &bcheck, const MagneticFieldProperties &mprop, std::optional< TransportJacobian > &, ParticleHypothesis particle=pion, bool returnCurv=false, const TrackingVolume *tVol=nullptr) const override final
 implemented More...
 
virtual std::optional< Trk::TrackSurfaceIntersectionintersect (const EventContext &ctx, const TrackParameters &parm, const Surface &sf, const MagneticFieldProperties &mprop, ParticleHypothesis particle=pion, const TrackingVolume *tVol=nullptr) const override final
 Intersection interface: The intersection interface might be used by the material service as well to estimate the surfaces (sensitive and nonesensitive) while propagation. More...
 
virtual void globalPositions (const EventContext &, std::deque< Amg::Vector3D > &, const TrackParameters &, const MagneticFieldProperties &, const CylinderBounds &, double, ParticleHypothesis, const TrackingVolume *) const override final
 GlobalPositions list interface: This is used mostly in pattern recognition in the road finder, the propagation direction is intrinsically given by the sign of the stepSize. More...
 
virtual std::optional< TrackSurfaceIntersectionintersectSurface (const EventContext &, const Surface &, const TrackSurfaceIntersection &, const double, const MagneticFieldProperties &, ParticleHypothesis) const override final
 Intersection and Intersector interface: More...
 
virtual std::unique_ptr< Trk::TrackParameterspropagateM (const EventContext &, const TrackParameters &, std::vector< DestSurf > &, PropDirection, const MagneticFieldProperties &, ParticleHypothesis, std::vector< unsigned int > &, std::vector< const Trk::TrackStateOnSurface * > *&, std::vector< std::pair< std::unique_ptr< Trk::TrackParameters >, int >> *, double &, bool, bool, const Trk::TrackingVolume *, Trk::ExtrapolationCache *) const override final
 unimplemented propagateM More...
 
virtual Trk::MultiComponentState multiStatePropagate (const EventContext &, const MultiComponentState &, const Surface &, const MagneticFieldProperties &, const PropDirection, const BoundaryCheck &, const ParticleHypothesis) const override final
 unimplemented multiStatePropagate More...
 
virtual Trk::ExtrapolationCode propagate (const EventContext &, Trk::ExCellCharged &, Trk::TargetSurfaces &, Trk::TargetSurfaceVector &) const override final
 Propagation method needed for StepEngine. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 AlgTool and IAlgTool interface methods. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void createParameters (Cache &cache, const Surface &surface, const BoundaryCheck &boundsCheck, bool curvilinear) const
 
void findIntersection (Cache &cache, const TrackParameters &parameters, const Surface &surface, PropDirection dir=Trk::anyDirection) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< IIntersectorm_intersector
 
ToolHandle< IPropagatorm_linePropagator
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 23 of file IntersectorWrapper.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

◆ IntersectorWrapper()

Trk::IntersectorWrapper::IntersectorWrapper ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 32 of file IntersectorWrapper.cxx.

36  m_intersector ("Trk::RungeKuttaIntersector/RungeKuttaIntersector"),
37  m_linePropagator ("")
38  {
39  declareInterface<Trk::IPropagator>(this);
40  declareProperty("Intersector", m_intersector);
41  declareProperty("LinePropagator", m_linePropagator);
42  }

◆ ~IntersectorWrapper()

Trk::IntersectorWrapper::~IntersectorWrapper ( void  )
default

Member Function Documentation

◆ createParameters()

void Trk::IntersectorWrapper::createParameters ( Cache cache,
const Surface surface,
const BoundaryCheck boundsCheck,
bool  curvilinear 
) const
private

Definition at line 168 of file IntersectorWrapper.cxx.

172 {
173  cache.m_parameters = nullptr;
174  if (! cache.m_intersection) return;
175 
176  // curvilinear special (simple) case
177  if (curvilinear)
178  {
179  cache.m_parameters=std::make_unique<CurvilinearParameters>(cache.m_intersection->position(),
180  cache.m_intersection->direction().phi(),
181  cache.m_intersection->direction().theta(),
182  cache.m_qOverP);
183  return;
184  }
185 
186  cache.m_parameters=surface.createUniqueTrackParameters(cache.m_intersection->position(),
187  cache.m_intersection->direction(),
188  cache.m_charge,std::nullopt);
189  // unrecognized Surface
190  if( !cache.m_parameters ) ATH_MSG_WARNING( " Failed to create parameters " );
191 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ 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.

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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::IntersectorWrapper::finalize ( )
finaloverridevirtual

Definition at line 64 of file IntersectorWrapper.cxx.

65 {
66  return StatusCode::SUCCESS;
67 }

◆ findIntersection()

void Trk::IntersectorWrapper::findIntersection ( Cache cache,
const TrackParameters parameters,
const Surface surface,
PropDirection  dir = Trk::anyDirection 
) const
private

Definition at line 194 of file IntersectorWrapper.cxx.

198 {
199  cache.m_charge = parameters.charge();
200  cache.m_momentum = parameters.momentum();
201  cache.m_parameters= nullptr;
202  cache.m_position = Amg::Vector3D(parameters.position());
203  cache.m_qOverP = 1./cache.m_momentum.mag();
204  cache.m_intersection = std::make_optional<TrackSurfaceIntersection>(cache.m_position,cache.m_momentum*cache.m_qOverP,0.);
205  cache.m_qOverP *= cache.m_charge;
206 
207  const TrackSurfaceIntersection oldIntersection = (*cache.m_intersection);
208  cache.m_intersection =
209  m_intersector->intersectSurface(surface, oldIntersection, cache.m_qOverP);
210  if (! cache.m_intersection)
211  {
212  ATH_MSG_DEBUG( " no intersection found " );
213  return;
214  }
215 
216  // check for correct propagation direction
217  if ((dir == Trk::alongMomentum && cache.m_intersection->pathlength() < 0.)
218  || (dir == Trk::oppositeMomentum && cache.m_intersection->pathlength() > 0.))
219  {
220  if (msgLvl(MSG::DEBUG))
221  {
222  if (dir == Trk::alongMomentum)
223  {
224  ATH_MSG_DEBUG( " requested alongMomentum, but pathlength "
225  << cache.m_intersection->pathlength() );
226  }
227  else if (dir == Trk::oppositeMomentum)
228  {
229  ATH_MSG_DEBUG( " requested oppositeMomentum, but pathlength "
230  << cache.m_intersection->pathlength() );
231  }
232  }
233  cache.m_intersection=std::nullopt;
234  return;
235  }
236 
237  ATH_MSG_DEBUG( std::setiosflags(std::ios::fixed)
238  << " intersection at r,phi,z "
239  << std::setw(10) << std::setprecision(1) << cache.m_intersection->position().perp()
240  << std::setw(9) << std::setprecision(4) << cache.m_intersection->position().phi()
241  << std::setw(10) << std::setprecision(1) << cache.m_intersection->position().z()
242  << " momentum "
243  << std::setw(9) << std::setprecision(3) << 1./std::abs(cache.m_qOverP*Gaudi::Units::GeV) );
244 }

◆ globalPositions()

virtual void Trk::IntersectorWrapper::globalPositions ( const EventContext &  ctx,
std::deque< Amg::Vector3D > &  positionslist,
const TrackParameters parm,
const MagneticFieldProperties mprop,
const CylinderBounds cylbo,
double  stepSize,
ParticleHypothesis  particle,
const TrackingVolume tVol 
) const
inlinefinaloverridevirtual

GlobalPositions list interface: This is used mostly in pattern recognition in the road finder, the propagation direction is intrinsically given by the sign of the stepSize.

To avoid memory fragmentation in multiple use of pattern recognition processes and respecting the possible iterative filling of the positions list, the list of GlobalPositions is given by reference through the signature and a void method has been chosen.

Implements Trk::IPropagator.

Definition at line 160 of file IntersectorWrapper.h.

168  {
169  ATH_MSG_ERROR("Call to non-implemented globalPositions");
170  return;
171  }

◆ initialize()

StatusCode Trk::IntersectorWrapper::initialize ( )
finaloverridevirtual

Definition at line 50 of file IntersectorWrapper.cxx.

50  {
51  // get the Tools
52 
53  ATH_CHECK(m_intersector.retrieve());
54 
55  ATH_MSG_VERBOSE( "Retrieved tool " << m_intersector );
56 
57  if (!m_linePropagator.empty()) {
58  ATH_CHECK( m_linePropagator.retrieve());
59  }
60  return StatusCode::SUCCESS;
61 }

◆ 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()

static const InterfaceID& Trk::IPropagator::interfaceID ( )
inlinestaticinherited

AlgTool and IAlgTool interface methods.

Definition at line 61 of file IPropagator.h.

61 { return IID_IPropagator; }

◆ intersect()

std::optional< Trk::TrackSurfaceIntersection > Trk::IntersectorWrapper::intersect ( const EventContext &  ctx,
const TrackParameters parm,
const Surface sf,
const MagneticFieldProperties mprop,
ParticleHypothesis  particle = pion,
const TrackingVolume tVol = nullptr 
) const
finaloverridevirtual

Intersection interface: The intersection interface might be used by the material service as well to estimate the surfaces (sensitive and nonesensitive) while propagation.

Implements Trk::IPropagator.

Definition at line 152 of file IntersectorWrapper.cxx.

158 {
159  Cache cache{};
160  findIntersection(cache,parameters,surface);
161  auto solution = cache.m_intersection;
162  return solution;
163 }

◆ intersectSurface()

virtual std::optional<TrackSurfaceIntersection> Trk::IntersectorWrapper::intersectSurface ( const EventContext &  ctx,
const Surface surface,
const TrackSurfaceIntersection trackIntersection,
const double  qOverP,
const MagneticFieldProperties mft,
ParticleHypothesis  particle 
) const
inlinefinaloverridevirtual

Intersection and Intersector interface:

Implements Trk::IPropagator.

Definition at line 174 of file IntersectorWrapper.h.

181  {
182  ATH_MSG_ERROR("Call to non-implemented intersectSurface");
183  return std::nullopt;
184  }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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  }

◆ multiStatePropagate()

virtual Trk::MultiComponentState Trk::IntersectorWrapper::multiStatePropagate ( const EventContext &  ,
const MultiComponentState ,
const Surface ,
const MagneticFieldProperties ,
const  PropDirection,
const BoundaryCheck ,
const  ParticleHypothesis 
) const
inlinefinaloverridevirtual

unimplemented multiStatePropagate

Implements Trk::IPropagator.

Definition at line 206 of file IntersectorWrapper.h.

214  {
215  ATH_MSG_ERROR("Call to non-implemented multiStatePropagate");
216  return {};
217  }

◆ 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.

◆ propagate() [1/5]

virtual std::unique_ptr<TrackParameters> Trk::IntersectorWrapper::propagate ( const EventContext &  ,
const TrackParameters ,
std::vector< DestSurf > &  ,
PropDirection  ,
const MagneticFieldProperties ,
ParticleHypothesis  ,
std::vector< unsigned int > &  ,
double &  ,
bool  ,
bool  ,
const TrackingVolume  
) const
inlinefinaloverridevirtual

Propagation interface: The propagation method called by the TrkExtrapolator.

The propagator finds the closest surface.

Implements Trk::IPropagator.

Definition at line 68 of file IntersectorWrapper.h.

80  {
81  ATH_MSG_ERROR("Call to non-implemented propagate");
82  return nullptr;
83  }

◆ propagate() [2/5]

virtual Trk::ExtrapolationCode Trk::IntersectorWrapper::propagate ( const EventContext &  ctx,
Trk::ExCellCharged eCell,
Trk::TargetSurfaces sfs,
Trk::TargetSurfaceVector solutions 
) const
inlinefinaloverridevirtual

Propagation method needed for StepEngine.

Implements Trk::IPropagator.

Definition at line 219 of file IntersectorWrapper.h.

224  {
226  }

◆ propagate() [3/5]

std::unique_ptr< TrackParameters > Trk::IntersectorWrapper::propagate ( const EventContext &  ctx,
const TrackParameters parameters,
const Surface surface,
PropDirection  dir,
const BoundaryCheck boundsCheck,
const MagneticFieldProperties ,
std::optional< TransportJacobian > &  ,
double &  ,
ParticleHypothesis  ,
bool  curvilinear,
const TrackingVolume  
) const
finaloverridevirtual

Propagation interface: The propagation method including the return of the TransportJacobian matrix.

Implements Trk::IPropagator.

Definition at line 97 of file IntersectorWrapper.cxx.

108 {
109  Cache cache{};
110  findIntersection(cache,parameters,surface,dir);
111  createParameters(cache,surface,boundsCheck,curvilinear);
112  return std::move(cache.m_parameters);
113 }

◆ propagate() [4/5]

std::unique_ptr< TrackParameters > Trk::IntersectorWrapper::propagate ( const EventContext &  ctx,
const TrackParameters parm,
const Surface sf,
PropDirection  dir,
const BoundaryCheck bcheck,
const MagneticFieldProperties mprop,
ParticleHypothesis  particle,
bool  returnCurv,
const TrackingVolume  
) const
finaloverridevirtual

Propagation interface: The propagation method called by the TrkExtrapolator.

[TrackParameters]

is responsible for the underlying logic of which surface to go to.

Implements Trk::IPropagator.

Definition at line 80 of file IntersectorWrapper.cxx.

89 {
90  Cache cache{};
91  findIntersection(cache,parameters,surface, dir);
92  createParameters(cache,surface,boundsCheck,curvilinear);
93  return std::move(cache.m_parameters);
94 }

◆ propagate() [5/5]

std::unique_ptr< NeutralParameters > Trk::IntersectorWrapper::propagate ( const NeutralParameters parameters,
const Surface surface,
PropDirection  dir,
const BoundaryCheck boundsCheck,
bool  curvilinear 
) const
finaloverridevirtual

N 0) Neutral parameters method

  • returns a ParametersBase object as well, 0 if the extrapolation did not succeed

Implements Trk::IPropagator.

Definition at line 70 of file IntersectorWrapper.cxx.

75 {
76  return m_linePropagator->propagate(parameters,surface,dir,boundsCheck,curvilinear);
77 }

◆ propagateM()

virtual std::unique_ptr<Trk::TrackParameters> Trk::IntersectorWrapper::propagateM ( const EventContext &  ,
const TrackParameters ,
std::vector< DestSurf > &  ,
PropDirection  ,
const MagneticFieldProperties ,
ParticleHypothesis  ,
std::vector< unsigned int > &  ,
std::vector< const Trk::TrackStateOnSurface * > *&  ,
std::vector< std::pair< std::unique_ptr< Trk::TrackParameters >, int >> *  ,
double &  ,
bool  ,
bool  ,
const Trk::TrackingVolume ,
Trk::ExtrapolationCache  
) const
inlinefinaloverridevirtual

unimplemented propagateM

Implements Trk::IPropagator.

Definition at line 186 of file IntersectorWrapper.h.

201  {
202  ATH_MSG_ERROR("Call to non-implemented propagateM");
203  return nullptr;
204  }

◆ propagateParameters() [1/2]

std::unique_ptr< TrackParameters > Trk::IntersectorWrapper::propagateParameters ( const EventContext &  ctx,
const TrackParameters parm,
const Surface sf,
PropDirection  dir,
const BoundaryCheck bcheck,
const MagneticFieldProperties mprop,
ParticleHypothesis  particle = pion,
bool  returnCurv = false,
const TrackingVolume tVol = nullptr 
) const
finaloverridevirtual

Propagation interface without Covariance matrix propagation the pathlength has to be returned for eventual following propagateCovariance.

Implements Trk::IPropagator.

Definition at line 116 of file IntersectorWrapper.cxx.

125 {
126 
127  Cache cache{};
128  findIntersection(cache,parameters,surface,dir);
129  createParameters(cache,surface,boundsCheck,curvilinear);
130  return std::move(cache.m_parameters);
131 }

◆ propagateParameters() [2/2]

std::unique_ptr< TrackParameters > Trk::IntersectorWrapper::propagateParameters ( const EventContext &  ctx,
const TrackParameters parm,
const Surface sf,
PropDirection  dir,
const BoundaryCheck bcheck,
const MagneticFieldProperties mprop,
std::optional< TransportJacobian > &  ,
ParticleHypothesis  particle = pion,
bool  returnCurv = false,
const TrackingVolume tVol = nullptr 
) const
finaloverridevirtual

implemented

Implements Trk::IPropagator.

Definition at line 134 of file IntersectorWrapper.cxx.

144 {
145  Cache cache{};
146  findIntersection(cache,parameters,surface,dir);
147  createParameters(cache,surface,boundsCheck,curvilinear);
148  return std::move(cache.m_parameters);
149 }

◆ propagateT()

virtual std::unique_ptr<TrackParameters> Trk::IntersectorWrapper::propagateT ( const EventContext &  ctx,
const TrackParameters parm,
std::vector< DestSurf > &  sfs,
PropDirection  dir,
const MagneticFieldProperties mprop,
ParticleHypothesis  particle,
std::vector< unsigned int > &  solutions,
PathLimit pathLim,
TimeLimit timeLim,
bool  returnCurv,
const TrackingVolume tVol,
std::vector< Trk::HitInfo > *&  hitVector 
) const
inlinefinaloverridevirtual

Propagate parameters and covariance with search of closest surface time included.

Implements Trk::IPropagator.

Definition at line 86 of file IntersectorWrapper.h.

99  {
100  ATH_MSG_ERROR("Call to non-implemented propagate");
101  return nullptr;
102  }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

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_intersector

ToolHandle<IIntersector> Trk::IntersectorWrapper::m_intersector
private

Definition at line 259 of file IntersectorWrapper.h.

◆ m_linePropagator

ToolHandle<IPropagator> Trk::IntersectorWrapper::m_linePropagator
private

Definition at line 260 of file IntersectorWrapper.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:
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
Trk::oppositeMomentum
@ oppositeMomentum
Definition: PropDirection.h:21
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trk::IntersectorWrapper::createParameters
void createParameters(Cache &cache, const Surface &surface, const BoundaryCheck &boundsCheck, bool curvilinear) const
Definition: IntersectorWrapper.cxx:168
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
Trk::alongMomentum
@ alongMomentum
Definition: PropDirection.h:20
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Trk::IntersectorWrapper::m_intersector
ToolHandle< IIntersector > m_intersector
Definition: IntersectorWrapper.h:259
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
beamspotman.dir
string dir
Definition: beamspotman.py:623
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Trk::IntersectorWrapper::m_linePropagator
ToolHandle< IPropagator > m_linePropagator
Definition: IntersectorWrapper.h:260
Trk::IntersectorWrapper::findIntersection
void findIntersection(Cache &cache, const TrackParameters &parameters, const Surface &surface, PropDirection dir=Trk::anyDirection) const
Definition: IntersectorWrapper.cxx:194
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::ExtrapolationCode::FailureConfiguration
@ FailureConfiguration
Definition: ExtrapolationCell.h:124
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528