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 > &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 > &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< 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...
 
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 70 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 AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

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

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< 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 > &  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 139 of file ExtrapolatorComparisonTest.cxx.

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

◆ 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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

StatusCode Trk::ExtrapolatorComparisonTest::finalize ( )
override

standard Athena-Algorithm method

Definition at line 131 of file ExtrapolatorComparisonTest.cxx.

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

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

◆ 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 AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ 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 AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ 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 156 of file ExtrapolatorComparisonTest.h.

◆ m_actsReferenceSurfaceTriples

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

Definition at line 150 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 119 of file ExtrapolatorComparisonTest.h.

◆ m_atlasPropResultWriterSvc

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

Definition at line 154 of file ExtrapolatorComparisonTest.h.

◆ m_atlasReferenceSurfaceTriples

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

Definition at line 149 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 152 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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_extrapolationTool

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

The ACTS ExtrapolationTool to be retrieved.

Definition at line 116 of file ExtrapolatorComparisonTest.h.

◆ m_maxEta

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

Definition at line 129 of file ExtrapolatorComparisonTest.h.

◆ m_maxPhi

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

Definition at line 127 of file ExtrapolatorComparisonTest.h.

◆ m_maxPt

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

Definition at line 132 of file ExtrapolatorComparisonTest.h.

◆ m_minEta

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

Definition at line 128 of file ExtrapolatorComparisonTest.h.

◆ m_minPhi

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

Definition at line 126 of file ExtrapolatorComparisonTest.h.

◆ m_minPt

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

Definition at line 130 of file ExtrapolatorComparisonTest.h.

◆ m_particleType

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

Definition at line 135 of file ExtrapolatorComparisonTest.h.

◆ m_randomEngine

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

Definition at line 159 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceHalflength

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

Definition at line 143 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceNegativeBoundary

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

Definition at line 146 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfacePositiveBoundary

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

Definition at line 147 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceRadius

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

Definition at line 141 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaces

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

member variables for algorithm properties:

Definition at line 139 of file ExtrapolatorComparisonTest.h.

◆ m_rndmSvc

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

Definition at line 158 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaD0

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

Definition at line 122 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaZ0

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

Definition at line 124 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:149
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
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
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:125
Trk::ExtrapolatorComparisonTest::m_referenceSurfacePositiveBoundary
std::vector< double > m_referenceSurfacePositiveBoundary
Definition: ExtrapolatorComparisonTest.h:147
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
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:119
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:201
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:196
Trk::z0
@ z0
Definition: ParamDefs.h:64
Trk::ExtrapolatorComparisonTest::m_extrapolationTool
ToolHandle< IActsExtrapolationTool > m_extrapolationTool
The ACTS ExtrapolationTool to be retrieved.
Definition: ExtrapolatorComparisonTest.h:116
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:146
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:93
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:25
Trk::ParametersT::associatedSurface
virtual const S & associatedSurface() const override final
Access to the Surface method.
Trk::ExtrapolatorComparisonTest::m_referenceSurfaceHalflength
DoubleArrayProperty m_referenceSurfaceHalflength
Definition: ExtrapolatorComparisonTest.h:144
python.handimod.now
now
Definition: handimod.py:675
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
Trk::ExtrapolatorComparisonTest::m_minPt
DoubleProperty m_minPt
Definition: ExtrapolatorComparisonTest.h:131
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:126
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
Trk::CylinderSurface
Definition: CylinderSurface.h:55
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:150
Trk::ExtrapolatorComparisonTest::m_actsPropResultWriterSvc
ServiceHandle< PropResultRootWriterSvc > m_actsPropResultWriterSvc
Definition: ExtrapolatorComparisonTest.h:157
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:159
Trk::ExtrapolatorComparisonTest::m_sigmaD0
DoubleProperty m_sigmaD0
Definition: ExtrapolatorComparisonTest.h:123
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
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:139
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
Trk::ExtrapolatorComparisonTest::m_eventsPerExecute
IntegerProperty m_eventsPerExecute
Definition: ExtrapolatorComparisonTest.h:152
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Trk::d0
@ d0
Definition: ParamDefs.h:63
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
Trk::ExtrapolatorComparisonTest::m_minEta
DoubleProperty m_minEta
Definition: ExtrapolatorComparisonTest.h:128
Trk::ExtrapolatorComparisonTest::m_particleType
IntegerProperty m_particleType
Definition: ExtrapolatorComparisonTest.h:136
charge
double charge(const T &p)
Definition: AtlasPID.h:882
Trk::ExtrapolatorComparisonTest::m_referenceSurfaceRadius
DoubleArrayProperty m_referenceSurfaceRadius
Definition: ExtrapolatorComparisonTest.h:142
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:127
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:158
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
Trk::phi
@ phi
Definition: ParamDefs.h:75
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Trk::ExtrapolatorComparisonTest::m_atlasPropResultWriterSvc
ServiceHandle< PropResultRootWriterSvc > m_atlasPropResultWriterSvc
Definition: ExtrapolatorComparisonTest.h:155
Trk::ExtrapolatorComparisonTest::m_maxEta
DoubleProperty m_maxEta
Definition: ExtrapolatorComparisonTest.h:129
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:75
Trk::ExtrapolatorComparisonTest::m_maxPt
DoubleProperty m_maxPt
Definition: ExtrapolatorComparisonTest.h:133
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
ServiceHandle< ICondSvc >