ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Trk::ExtrapolatorComparisonTest Class Reference

#include <ExtrapolatorComparisonTest.h>

Inheritance diagram for Trk::ExtrapolatorComparisonTest:
Collaboration diagram for Trk::ExtrapolatorComparisonTest:

Classes

struct  ActsTrackWrapper
 

Public Member Functions

 ExtrapolatorComparisonTest (const std::string &name, ISvcLocator *pSvcLocator)
 Standard Athena-Algorithm Constructor. More...
 
 ~ExtrapolatorComparisonTest ()
 Default Destructor. More...
 
StatusCode initialize () override
 standard Athena-Algorithm method More...
 
StatusCode execute (const EventContext &ctx) const override
 standard Athena-Algorithm method More...
 
StatusCode finalize () override
 standard Athena-Algorithm method More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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. 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 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, V, H > &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
 

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 generatePerigee (std::vector< perigeeParameters > &parameters)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< IActsExtrapolationToolm_extrapolationTool {this, "ExtrapolationTool", "ActsExtrapolationTool"}
 The ACTS ExtrapolationTool to be retrieved. More...
 
ToolHandle< Trk::IExtrapolatorm_atlasExtrapolator {this, "Extrapolator", "Trk::Extrapolator/AtlasExtrapolator"}
 The ATLAS Extrapolator to be retrieved. More...
 
PublicToolHandle< ActsTrk::ITrackingGeometryToolm_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
 
DoubleProperty m_sigmaD0 {this, "StartPerigeeSigmaD0", 17.*Gaudi::Units::micrometer}
 
DoubleProperty m_sigmaZ0 {this, "StartPerigeeSigmaZ0", 50.*Gaudi::Units::micrometer}
 
DoubleProperty m_minPhi {this, "StartPerigeeMinPhi", -M_PI}
 
DoubleProperty m_maxPhi {this, "StartPerigeeMaxPhi", M_PI}
 
DoubleProperty m_minEta {this, "StartPerigeeMinEta", -3.}
 
DoubleProperty m_maxEta {this, "StartPerigeeMaxEta", 3.}
 
DoubleProperty m_minPt {this, "StartPerigeeMinPt", 0.5*Gaudi::Units::GeV}
 
DoubleProperty m_maxPt {this, "StartPerigeeMaxPt", 50000*Gaudi::Units::GeV}
 
IntegerProperty m_particleType {this, "ParticleType", 2, "the particle type for the extrap."}
 
unsigned int m_referenceSurfaces = 0
 member variables for algorithm properties: More...
 
DoubleArrayProperty m_referenceSurfaceRadius {this, "ReferenceSurfaceRadius", {}}
 
DoubleArrayProperty m_referenceSurfaceHalflength {this, "ReferenceSurfaceHalfZ", {}}
 
std::vector< double > m_referenceSurfaceNegativeBoundary
 
std::vector< double > m_referenceSurfacePositiveBoundary
 
std::vector< std::vector< const Trk::Surface * > > m_atlasReferenceSurfaceTriples
 
std::vector< std::vector< std::shared_ptr< const Acts::Surface > > > m_actsReferenceSurfaceTriples
 
IntegerProperty m_eventsPerExecute {this, "EventsPerExecute", 1}
 
ServiceHandle< PropResultRootWriterSvcm_atlasPropResultWriterSvc {this, "ATLASPropResultRootWriter", "ATLASPropResultRootWriterSvc"}
 
ServiceHandle< PropResultRootWriterSvcm_actsPropResultWriterSvc {this, "ACTSPropResultRootWriter", "ACTSPropResultRootWriterSvc"}
 
ServiceHandle< IAthRNGSvcm_rndmSvc {this, "RndmSvc", "AthRNGSvc"}
 
ATHRNG::RNGWrapperm_randomEngine = nullptr
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

The ExtrapolatorComparisonTest Algorithm runs a number of n test extrapolations from randomly distributed Track Parameters to reference surfcas within

It uses and compares the output obtaining using the ATLAS Extrapolator and the ACTS Extrapolation

Definition at line 71 of file ExtrapolatorComparisonTest.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

◆ ExtrapolatorComparisonTest()

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

Standard Athena-Algorithm Constructor.

Definition at line 50 of file ExtrapolatorComparisonTest.cxx.

50  :
51  AthReentrantAlgorithm(name,pSvcLocator) {}

◆ ~ExtrapolatorComparisonTest()

Trk::ExtrapolatorComparisonTest::~ExtrapolatorComparisonTest ( )

Default Destructor.

Definition at line 55 of file ExtrapolatorComparisonTest.cxx.

56 {
57  // cleanup of the Trk::Surfaces
58  for (const auto& surfaceTriple : m_atlasReferenceSurfaceTriples) {
59  for (const auto* surface : surfaceTriple) {
60  delete surface;
61  }
62  }
63 }

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
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.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< 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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< 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  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode Trk::ExtrapolatorComparisonTest::execute ( const EventContext &  ctx) const
override

standard Athena-Algorithm method

Definition at line 140 of file ExtrapolatorComparisonTest.cxx.

140  {
141 
142  float milliseconds_to_seconds = 1000.;
143 
144  // generate perigees with random number generator
145  CLHEP::HepRandomEngine* engine = m_randomEngine->getEngine(ctx);
146 
147  std::vector<perigeeParameters> parameters = {};
148  for (int ext = 0; ext<m_eventsPerExecute; ext++) {
149  // generate with random number generator
150  double d0 = CLHEP::RandGauss::shoot(engine) * m_sigmaD0;
151  double z0 = CLHEP::RandGauss::shoot(engine) * m_sigmaZ0;
152  double phi = m_minPhi + (m_maxPhi-m_minPhi)* CLHEP::RandFlat::shoot(engine);
153  double eta = m_minEta + CLHEP::RandFlat::shoot(engine)*(m_maxEta-m_minEta);
154  double pt = m_minPt + CLHEP::RandFlat::shoot(engine)*(m_maxPt-m_minPt);
155  double charge = (CLHEP::RandFlat::shoot(engine) > 0.5 ) ? -1. : 1.;
156  parameters.emplace_back(d0, z0, phi, eta, pt, charge);
157  }
158 
159  int n_extraps = 0;
160  auto start = xclock::now();
161  for (auto& perigee : parameters) {
162 
163  Acts::Vector3 momentum(perigee.m_pt * std::cos(perigee.m_phi), perigee.m_pt * std::sin(perigee.m_phi), perigee.m_pt * std::sinh(perigee.m_eta));
165  double qOverP = perigee.m_charge / momentum.norm();
166 
167  const Trk::PerigeeSurface atlPerigeeSurface;
168  const Trk::Perigee * atlPerigee = new const Trk::Perigee(perigee.m_d0, perigee.m_z0, perigee.m_phi, theta, qOverP, atlPerigeeSurface);
169 
170  for (unsigned int surface = 0; surface < m_atlasReferenceSurfaceTriples.size(); surface++) {
171  n_extraps++;
172 
173  double negRef = m_referenceSurfaceNegativeBoundary.at(surface);
174  double posRef = m_referenceSurfacePositiveBoundary.at(surface);
175 
176  // decide which reference surface to take
177  int refSurface = theta < posRef ? 2 : 1;
178  refSurface = theta > negRef ? 0 : 1;
179 
180  const Trk::Surface* destinationSurface = m_atlasReferenceSurfaceTriples.at(surface).at(refSurface);
181 
182  ATH_MSG_VERBOSE("Starting extrapolation " << n_extraps << " from : " << *atlPerigee << " to : " << *destinationSurface);
183 
184  auto start_fwd = xclock::now();
185  const Trk::TrackParameters* destParameters =
186  m_atlasExtrapolator->extrapolate(
187  ctx,
188  *atlPerigee,
189  *destinationSurface,
191  true,
192  static_cast<Trk::ParticleHypothesis>(m_particleType.value())).release();
193  auto end_fwd = xclock::now();
194  float ms_fwd = std::chrono::duration_cast<std::chrono::milliseconds>(end_fwd-start_fwd).count();
195 
196  if (destParameters) {
197  ATH_MSG_VERBOSE(" ATLAS Extrapolator succeded!! --> Forward" );
198  ATH_MSG_VERBOSE(" [ intersection ] with surface at (x,y,z) = " << destParameters->position().x() << ", " << destParameters->position().y() << ", " << destParameters->position().z() );
199  ATH_MSG_VERBOSE(" [ intersection ] parameters: " << destParameters->parameters() );
200  ATH_MSG_VERBOSE(" [ intersection ] cov matrix: " << destParameters->covariance() );
201 
202  // now try backward extrapolation
203  auto start_bkw = xclock::now();
204  const Trk::TrackParameters* finalperigee =
205  m_atlasExtrapolator->extrapolate(
206  ctx,
207  *destParameters,
208  atlPerigee->associatedSurface(),
210  true,
211  static_cast<Trk::ParticleHypothesis>(m_particleType.value())).release();
212  auto end_bkw = xclock::now();
213  float ms_bkw = std::chrono::duration_cast<std::chrono::milliseconds>(end_bkw-start_bkw).count();
214 
215  if (finalperigee) {
216  ATH_MSG_VERBOSE(" ATLAS Extrapolator succeded!! --> Backward" );
217  ATH_MSG_VERBOSE(" [extrapolation to perigee] input: " << atlPerigee->parameters() );
218  ATH_MSG_VERBOSE(" [extrapolation to perigee] output: " << finalperigee->parameters() );
219  ATH_MSG_VERBOSE(" [extrapolation to perigee] cov matrix: " << finalperigee->covariance() );
220 
221  } else if (!finalperigee) {
222  ATH_MSG_DEBUG(" ATLAS Extrapolation to perigee failed for input parameters: " << destParameters->parameters());
223  }
224 
225  m_atlasPropResultWriterSvc->write<Trk::TrackParameters>(atlPerigee, destParameters, ms_fwd, finalperigee, ms_bkw);
226  delete finalperigee;
227  } else if (!destParameters) {
228  ATH_MSG_DEBUG(" ATLAS Extrapolation not successful! " );
230  }
231  delete destParameters;
232  }
233  delete atlPerigee;
234  }
235  auto end = xclock::now();
236  auto secs = std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count() / milliseconds_to_seconds;
237  double secs_per_ex = secs / n_extraps;
238 
239  ATH_MSG_INFO("ATLAS : Time for " << n_extraps << " iterations: " << secs << "s (" << secs_per_ex << "s per extrapolation)");
240 
241  n_extraps = 0;
242  start = xclock::now();
243  for (auto& perigee : parameters) {
244  Acts::Vector3 momentum(perigee.m_pt * std::cos(perigee.m_phi), perigee.m_pt * std::sin(perigee.m_phi), perigee.m_pt * std::sinh(perigee.m_eta));
246  double qOverP = perigee.m_charge / momentum.norm();
247 
248  std::shared_ptr<Acts::PerigeeSurface> actsPerigeeSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(Acts::Vector3(0, 0, 0));
249  double t = 0.;
250  Acts::BoundVector pars;
251  //cppcheck-suppress constStatement
252  pars << perigee.m_d0, perigee.m_z0, perigee.m_phi, theta, qOverP, t;
253  std::optional<Acts::BoundSquareMatrix> cov = std::nullopt;
254 
255  // Perigee, no alignment -> default geo context
256  ActsGeometryContext gctx = m_trackingGeometryTool->getNominalGeometryContext();
257  auto anygctx = gctx.context();
258  const auto* startParameters = new const Acts::GenericBoundTrackParameters(std::move(actsPerigeeSurface), pars, std::move(cov), Acts::ParticleHypothesis::pion());
259 
260  for (unsigned int surface = 0; surface < m_actsReferenceSurfaceTriples.size(); surface++) {
261  n_extraps++;
262 
263  double negRef = m_referenceSurfaceNegativeBoundary.at(surface);
264  double posRef = m_referenceSurfacePositiveBoundary.at(surface);
265 
266  // decide which reference surface to take
267  int refSurface = theta < posRef ? 2 : 1;
268  refSurface = theta > negRef ? 0 : 1;
269 
270  auto destinationSurface = m_actsReferenceSurfaceTriples.at(surface).at(refSurface);
271 
272  ATH_MSG_VERBOSE("Starting extrapolation " << n_extraps << " from : " << pars << " to : " << destinationSurface);
273 
274  auto start_fwd = xclock::now();
275  auto destParameters = m_extrapolationTool->propagate(ctx, *startParameters, *destinationSurface, Acts::Direction::Forward());
276  auto end_fwd = xclock::now();
277  float ms_fwd = std::chrono::duration_cast<std::chrono::milliseconds>(end_fwd-start_fwd).count();
278 
279  if (destParameters) {
280  ATH_MSG_VERBOSE(" ACTS Extrapolator succeded!! --> Forward" );
281  ATH_MSG_VERBOSE(" [ intersection ] with surface at (x,y,z) = " << destParameters->position(anygctx).x() << ", " << destParameters->position(anygctx).y() << ", " << destParameters->position(anygctx).z() );
282  ATH_MSG_VERBOSE(" [ intersection ] parameters: " << destParameters->parameters() );
283  ATH_MSG_VERBOSE(" [ intersection ] cov matrix: " << *destParameters->covariance() );
284 
285  // now try backward extrapolation
286  auto start_bkw = xclock::now();
287  auto finalperigee = m_extrapolationTool->propagate(ctx, *destParameters, startParameters->referenceSurface(), Acts::Direction::Backward());
288  auto end_bkw = xclock::now();
289  float ms_bkw = std::chrono::duration_cast<std::chrono::milliseconds>(end_bkw-start_bkw).count();
290 
291  if (finalperigee) {
292  ATH_MSG_VERBOSE(" ACTS Extrapolator succeded!! --> Backward" );
293  ATH_MSG_VERBOSE(" [extrapolation to perigee] input: " << startParameters->parameters() );
294  ATH_MSG_VERBOSE(" [extrapolation to perigee] output: " << finalperigee->parameters() );
295  ATH_MSG_VERBOSE(" [extrapolation to perigee] cov matrix: " << *finalperigee->covariance() );
296 
297  } else if (!finalperigee) {
298  ATH_MSG_DEBUG(" ACTS Extrapolation to perigee failed for input parameters: " << destParameters->parameters());
299  }
300 
301  // Construct wrappers for Acts track parameters
302  const ActsTrackWrapper* startWrapper = new ActsTrackWrapper(startParameters, anygctx);
303  const ActsTrackWrapper* destWrapper = new ActsTrackWrapper(&destParameters.value(), anygctx);
304  const ActsTrackWrapper* finalWrapper = new ActsTrackWrapper(&finalperigee.value(), anygctx);
305 
306  m_actsPropResultWriterSvc->write<ActsTrackWrapper>(startWrapper, destWrapper, ms_fwd, finalWrapper, ms_bkw);
307 
308  delete startWrapper;
309  delete destWrapper;
310  delete finalWrapper;
311  } else if (!destParameters) {
312  ATH_MSG_DEBUG(" ACTS Extrapolation not successful! " );
313  const ActsTrackWrapper* startWrapper = new ActsTrackWrapper(startParameters, anygctx);
314  m_actsPropResultWriterSvc->write<ActsTrackWrapper>(startWrapper);
315  delete startWrapper;
316  }
317  }
318  delete startParameters;
319  }
320 
321  end = xclock::now();
322  secs = std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count() / milliseconds_to_seconds;
323  secs_per_ex = secs / n_extraps;
324 
325  ATH_MSG_INFO("ACTS : Time for " << n_extraps << " iterations: " << secs << "s (" << secs_per_ex << "s per extrapolation)");
326 
327  return StatusCode::SUCCESS;
328 }

◆ 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
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  }
96  return BaseAlg::extraOutputDeps();
97 }

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

◆ finalize()

StatusCode Trk::ExtrapolatorComparisonTest::finalize ( )
override

standard Athena-Algorithm method

Definition at line 132 of file ExtrapolatorComparisonTest.cxx.

133 {
134  // Code entered here will be executed once at the end of the program run.
135  return StatusCode::SUCCESS;
136 }

◆ generatePerigee()

void Trk::ExtrapolatorComparisonTest::generatePerigee ( std::vector< perigeeParameters > &  parameters)
private

◆ initialize()

StatusCode Trk::ExtrapolatorComparisonTest::initialize ( )
override

standard Athena-Algorithm method

Definition at line 68 of file ExtrapolatorComparisonTest.cxx.

69 {
70  // Code entered here will be executed once at program start.
71 
72  ATH_MSG_INFO(" initialize()");
73 
74  ATH_CHECK( m_extrapolationTool.retrieve() );
75  ATH_CHECK( m_atlasExtrapolator.retrieve() );
76  ATH_CHECK( m_trackingGeometryTool.retrieve() );
77 
78  // Create the destination surfaces for extrapolation
79  // --> you need the Trk::Surfaces and the Acts::Surfaces
81  // assign the size
83  // loop over it and create the
84  for (unsigned int surface = 0; surface < m_referenceSurfaces; surface++) {
85 
86  double radius = m_referenceSurfaceRadius[surface];
87  double halfZ = m_referenceSurfaceHalflength[surface];
88 
89  // create the Surface triplet
90  std::vector< const Trk::Surface*> trkSurfaceTriplet;
91  trkSurfaceTriplet.push_back(new Trk::DiscSurface (Amg::Transform3D(Amg::Translation3D(0.,0., halfZ)), 0.,radius));
92  trkSurfaceTriplet.push_back(new Trk::CylinderSurface(Amg::Transform3D(Amg::Translation3D(0.,0., 0.)),radius, halfZ));
93  trkSurfaceTriplet.push_back(new Trk::DiscSurface (Amg::Transform3D(Amg::Translation3D(0.,0.,-halfZ)), 0.,radius));
94  ATH_MSG_INFO("Creating Trk::Surface at: R " << radius << " Z " << halfZ);
95  m_atlasReferenceSurfaceTriples.push_back(trkSurfaceTriplet);
96 
97  // create the Surface triplet
98  std::vector<std::shared_ptr<const Acts::Surface>> actsSurfaceTriplet;
99 
100  Acts::Transform3 posTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0., halfZ)));
101  Acts::Transform3 cTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0., 0.)));
102  Acts::Transform3 negTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0.,-halfZ)));
103 
104  auto posSurface = Acts::Surface::makeShared<Acts::DiscSurface> (posTransf , 0.,radius);
105  auto cSurface = Acts::Surface::makeShared<Acts::CylinderSurface>( cTransf ,radius, halfZ);
106  auto negSurface = Acts::Surface::makeShared<Acts::DiscSurface> (negTransf , 0.,radius);
107 
108  actsSurfaceTriplet.push_back(posSurface);
109  actsSurfaceTriplet.push_back(cSurface );
110  actsSurfaceTriplet.push_back(negSurface);
111  ATH_MSG_INFO("Creating Acts::Surface at: R " << radius << " Z " << halfZ);
112  m_actsReferenceSurfaceTriples.push_back(actsSurfaceTriplet);
113 
114  m_referenceSurfaceNegativeBoundary.push_back(atan2(radius,-halfZ));
115  m_referenceSurfacePositiveBoundary.push_back(atan2(radius, halfZ));
116  }
117  } else {
118  ATH_MSG_WARNING("Not compatible size of ReferenceSurfaceRadius and ReferenceSurfaceHalfZ!! Returning FAILURE!");
119  return StatusCode::FAILURE;
120  }
121 
123  ATH_CHECK( m_actsPropResultWriterSvc.retrieve() );
124  ATH_CHECK( m_rndmSvc.retrieve() );
125  m_randomEngine = m_rndmSvc->getEngine (this, "ExtrapolatorComparisonTest");
126 
127  return StatusCode::SUCCESS;
128 }

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

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ 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 InputMakerBase, and HypoBase.

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()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

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

Member Data Documentation

◆ m_actsPropResultWriterSvc

ServiceHandle<PropResultRootWriterSvc> Trk::ExtrapolatorComparisonTest::m_actsPropResultWriterSvc {this, "ACTSPropResultRootWriter", "ACTSPropResultRootWriterSvc"}
private

Definition at line 158 of file ExtrapolatorComparisonTest.h.

◆ m_actsReferenceSurfaceTriples

std::vector< std::vector< std::shared_ptr<const Acts::Surface> > > Trk::ExtrapolatorComparisonTest::m_actsReferenceSurfaceTriples
private

Definition at line 152 of file ExtrapolatorComparisonTest.h.

◆ m_atlasExtrapolator

ToolHandle<Trk::IExtrapolator> Trk::ExtrapolatorComparisonTest::m_atlasExtrapolator {this, "Extrapolator", "Trk::Extrapolator/AtlasExtrapolator"}
private

The ATLAS Extrapolator to be retrieved.

Definition at line 120 of file ExtrapolatorComparisonTest.h.

◆ m_atlasPropResultWriterSvc

ServiceHandle<PropResultRootWriterSvc> Trk::ExtrapolatorComparisonTest::m_atlasPropResultWriterSvc {this, "ATLASPropResultRootWriter", "ATLASPropResultRootWriterSvc"}
private

Definition at line 156 of file ExtrapolatorComparisonTest.h.

◆ m_atlasReferenceSurfaceTriples

std::vector< std::vector<const Trk::Surface*> > Trk::ExtrapolatorComparisonTest::m_atlasReferenceSurfaceTriples
private

Definition at line 151 of file ExtrapolatorComparisonTest.h.

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

IntegerProperty Trk::ExtrapolatorComparisonTest::m_eventsPerExecute {this, "EventsPerExecute", 1}
private

Definition at line 154 of file ExtrapolatorComparisonTest.h.

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

ToolHandle<IActsExtrapolationTool> Trk::ExtrapolatorComparisonTest::m_extrapolationTool {this, "ExtrapolationTool", "ActsExtrapolationTool"}
private

The ACTS ExtrapolationTool to be retrieved.

Definition at line 117 of file ExtrapolatorComparisonTest.h.

◆ m_maxEta

DoubleProperty Trk::ExtrapolatorComparisonTest::m_maxEta {this, "StartPerigeeMaxEta", 3.}
private

Definition at line 131 of file ExtrapolatorComparisonTest.h.

◆ m_maxPhi

DoubleProperty Trk::ExtrapolatorComparisonTest::m_maxPhi {this, "StartPerigeeMaxPhi", M_PI}
private

Definition at line 129 of file ExtrapolatorComparisonTest.h.

◆ m_maxPt

DoubleProperty Trk::ExtrapolatorComparisonTest::m_maxPt {this, "StartPerigeeMaxPt", 50000*Gaudi::Units::GeV}
private

Definition at line 134 of file ExtrapolatorComparisonTest.h.

◆ m_minEta

DoubleProperty Trk::ExtrapolatorComparisonTest::m_minEta {this, "StartPerigeeMinEta", -3.}
private

Definition at line 130 of file ExtrapolatorComparisonTest.h.

◆ m_minPhi

DoubleProperty Trk::ExtrapolatorComparisonTest::m_minPhi {this, "StartPerigeeMinPhi", -M_PI}
private

Definition at line 128 of file ExtrapolatorComparisonTest.h.

◆ m_minPt

DoubleProperty Trk::ExtrapolatorComparisonTest::m_minPt {this, "StartPerigeeMinPt", 0.5*Gaudi::Units::GeV}
private

Definition at line 132 of file ExtrapolatorComparisonTest.h.

◆ m_particleType

IntegerProperty Trk::ExtrapolatorComparisonTest::m_particleType {this, "ParticleType", 2, "the particle type for the extrap."}
private

Definition at line 137 of file ExtrapolatorComparisonTest.h.

◆ m_randomEngine

ATHRNG::RNGWrapper* Trk::ExtrapolatorComparisonTest::m_randomEngine = nullptr
private

Definition at line 161 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceHalflength

DoubleArrayProperty Trk::ExtrapolatorComparisonTest::m_referenceSurfaceHalflength {this, "ReferenceSurfaceHalfZ", {}}
private

Definition at line 145 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceNegativeBoundary

std::vector<double> Trk::ExtrapolatorComparisonTest::m_referenceSurfaceNegativeBoundary
private

Definition at line 148 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfacePositiveBoundary

std::vector<double> Trk::ExtrapolatorComparisonTest::m_referenceSurfacePositiveBoundary
private

Definition at line 149 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceRadius

DoubleArrayProperty Trk::ExtrapolatorComparisonTest::m_referenceSurfaceRadius {this, "ReferenceSurfaceRadius", {}}
private

Definition at line 143 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaces

unsigned int Trk::ExtrapolatorComparisonTest::m_referenceSurfaces = 0
private

member variables for algorithm properties:

Definition at line 141 of file ExtrapolatorComparisonTest.h.

◆ m_rndmSvc

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

Definition at line 160 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaD0

DoubleProperty Trk::ExtrapolatorComparisonTest::m_sigmaD0 {this, "StartPerigeeSigmaD0", 17.*Gaudi::Units::micrometer}
private

Definition at line 124 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaZ0

DoubleProperty Trk::ExtrapolatorComparisonTest::m_sigmaZ0 {this, "StartPerigeeSigmaZ0", 50.*Gaudi::Units::micrometer}
private

Definition at line 126 of file ExtrapolatorComparisonTest.h.

◆ m_trackingGeometryTool

PublicToolHandle<ActsTrk::ITrackingGeometryTool> Trk::ExtrapolatorComparisonTest::m_trackingGeometryTool {this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}
private

Definition at line 122 of file ExtrapolatorComparisonTest.h.

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


The documentation for this class was generated from the following files:
Trk::ExtrapolatorComparisonTest::m_atlasReferenceSurfaceTriples
std::vector< std::vector< const Trk::Surface * > > m_atlasReferenceSurfaceTriples
Definition: ExtrapolatorComparisonTest.h:151
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
test_pyathena.eta
eta
Definition: test_pyathena.py:10
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Trk::PerigeeSurface
Definition: PerigeeSurface.h:43
Trk::ParametersBase::position
const Amg::Vector3D & position() const
Access method for the position.
Trk::oppositeMomentum
@ oppositeMomentum
Definition: PropDirection.h:21
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
Trk::ExtrapolatorComparisonTest::m_sigmaZ0
DoubleProperty m_sigmaZ0
Definition: ExtrapolatorComparisonTest.h:127
Trk::ExtrapolatorComparisonTest::m_referenceSurfacePositiveBoundary
std::vector< double > m_referenceSurfacePositiveBoundary
Definition: ExtrapolatorComparisonTest.h:149
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:13
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
Trk::ExtrapolatorComparisonTest::m_atlasExtrapolator
ToolHandle< Trk::IExtrapolator > m_atlasExtrapolator
The ATLAS Extrapolator to be retrieved.
Definition: ExtrapolatorComparisonTest.h:120
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:200
test_pyathena.pt
pt
Definition: test_pyathena.py:11
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::pion
@ pion
Definition: TrackingPrimitives.h:197
Trk::z0
@ z0
Definition: ParamDefs.h:64
Trk::ExtrapolatorComparisonTest::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
The ACTS ExtrapolationTool to be retrieved.
Definition: ExtrapolatorComparisonTest.h:117
Trk::alongMomentum
@ alongMomentum
Definition: PropDirection.h:20
Trk::DiscSurface
Definition: DiscSurface.h:54
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
Trk::ExtrapolatorComparisonTest::m_referenceSurfaceNegativeBoundary
std::vector< double > m_referenceSurfaceNegativeBoundary
Definition: ExtrapolatorComparisonTest.h:148
Trk::Perigee
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
Definition: Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:33
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:92
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:28
Trk::ParametersT::associatedSurface
virtual const S & associatedSurface() const override final
Access to the Surface method.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
Trk::ExtrapolatorComparisonTest::m_referenceSurfaceHalflength
DoubleArrayProperty m_referenceSurfaceHalflength
Definition: ExtrapolatorComparisonTest.h:146
python.handimod.now
now
Definition: handimod.py:674
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Trk::ExtrapolatorComparisonTest::m_minPt
DoubleProperty m_minPt
Definition: ExtrapolatorComparisonTest.h:133
ParticleGun_EoverP_Config.momentum
momentum
Definition: ParticleGun_EoverP_Config.py:63
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Trk::theta
@ theta
Definition: ParamDefs.h:66
Trk::ExtrapolatorComparisonTest::m_minPhi
DoubleProperty m_minPhi
Definition: ExtrapolatorComparisonTest.h:128
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
Trk::CylinderSurface
Definition: CylinderSurface.h:55
Trk::ExtrapolatorComparisonTest::m_trackingGeometryTool
PublicToolHandle< ActsTrk::ITrackingGeometryTool > m_trackingGeometryTool
Definition: ExtrapolatorComparisonTest.h:122
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
Trk::ExtrapolatorComparisonTest::m_actsReferenceSurfaceTriples
std::vector< std::vector< std::shared_ptr< const Acts::Surface > > > m_actsReferenceSurfaceTriples
Definition: ExtrapolatorComparisonTest.h:152
Trk::ExtrapolatorComparisonTest::m_actsPropResultWriterSvc
ServiceHandle< PropResultRootWriterSvc > m_actsPropResultWriterSvc
Definition: ExtrapolatorComparisonTest.h:159
MakeFileForMJB.ext
string ext
Definition: Moriond2016/MakeFileForMJB.py:41
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Trk::ParametersBase
Definition: ParametersBase.h:55
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
Trk::ExtrapolatorComparisonTest::m_randomEngine
ATHRNG::RNGWrapper * m_randomEngine
Definition: ExtrapolatorComparisonTest.h:161
Trk::ExtrapolatorComparisonTest::m_sigmaD0
DoubleProperty m_sigmaD0
Definition: ExtrapolatorComparisonTest.h:125
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::ExtrapolatorComparisonTest::m_referenceSurfaces
unsigned int m_referenceSurfaces
member variables for algorithm properties:
Definition: ExtrapolatorComparisonTest.h:141
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
Trk::ExtrapolatorComparisonTest::m_eventsPerExecute
IntegerProperty m_eventsPerExecute
Definition: ExtrapolatorComparisonTest.h:154
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
Trk::d0
@ d0
Definition: ParamDefs.h:63
Trk::ExtrapolatorComparisonTest::m_minEta
DoubleProperty m_minEta
Definition: ExtrapolatorComparisonTest.h:130
Trk::ExtrapolatorComparisonTest::m_particleType
IntegerProperty m_particleType
Definition: ExtrapolatorComparisonTest.h:138
charge
double charge(const T &p)
Definition: AtlasPID.h:986
Trk::ExtrapolatorComparisonTest::m_referenceSurfaceRadius
DoubleArrayProperty m_referenceSurfaceRadius
Definition: ExtrapolatorComparisonTest.h:144
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
ATHRNG::RNGWrapper::getEngine
CLHEP::HepRandomEngine * getEngine(const EventContext &ctx) const
Retrieve the random engine corresponding to the provided EventContext.
Definition: RNGWrapper.h:134
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Trk::ExtrapolatorComparisonTest::m_maxPhi
DoubleProperty m_maxPhi
Definition: ExtrapolatorComparisonTest.h:129
Amg::Translation3D
Eigen::Translation< double, 3 > Translation3D
Definition: GeoPrimitives.h:44
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
Trk::ExtrapolatorComparisonTest::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Definition: ExtrapolatorComparisonTest.h:160
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
Trk::phi
@ phi
Definition: ParamDefs.h:75
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
Trk::ExtrapolatorComparisonTest::m_atlasPropResultWriterSvc
ServiceHandle< PropResultRootWriterSvc > m_atlasPropResultWriterSvc
Definition: ExtrapolatorComparisonTest.h:157
Trk::ExtrapolatorComparisonTest::m_maxEta
DoubleProperty m_maxEta
Definition: ExtrapolatorComparisonTest.h:131
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:79
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
Trk::ExtrapolatorComparisonTest::m_maxPt
DoubleProperty m_maxPt
Definition: ExtrapolatorComparisonTest.h:135
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >