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...
 
double m_sigmaD0
 Sigma of distribution for D0. More...
 
double m_sigmaZ0
 Sigma of distribution for Z0. More...
 
double m_minPhi
 Minimal phi value. More...
 
double m_maxPhi
 Maximal phi value. More...
 
double m_minEta
 Minimal eta value. More...
 
double m_maxEta
 Maximal eta value. More...
 
double m_minPt
 Minimal p value. More...
 
double m_maxPt
 Maximal p value. More...
 
int m_particleType
 the particle typre for the extrap. More...
 
unsigned int m_referenceSurfaces
 member variables for algorithm properties: More...
 
std::vector< double > m_referenceSurfaceRadius
 
std::vector< double > m_referenceSurfaceHalflength
 
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
 
int m_eventsPerExecute
 
ServiceHandle< PropResultRootWriterSvcm_atlasPropResultWriterSvc
 
ServiceHandle< PropResultRootWriterSvcm_actsPropResultWriterSvc
 
ServiceHandle< IAthRNGSvcm_rndmSvc
 
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 69 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 51 of file ExtrapolatorComparisonTest.cxx.

52  :
53  AthReentrantAlgorithm(name,pSvcLocator),
56  m_minPhi(-M_PI),
57  m_maxPhi(M_PI),
58  m_minEta(-3.),
59  m_maxEta(3.),
61  m_maxPt(50000.*Gaudi::Units::GeV),
62  m_particleType(2),
65  m_atlasPropResultWriterSvc("ATLASPropResultRootWriterSvc", name),
66  m_actsPropResultWriterSvc("ACTSPropResultRootWriterSvc", name),
67  m_rndmSvc("AthRNGSvc", name)
68 {
69  // algorithm steering
70  declareProperty("StartPerigeeSigmaD0" , m_sigmaD0 );
71  declareProperty("StartPerigeeSigmaZ0" , m_sigmaZ0 );
72  declareProperty("StartPerigeeMinPhi" , m_minPhi );
73  declareProperty("StartPerigeeMaxPhi" , m_maxPhi );
74  declareProperty("StartPerigeeMinEta" , m_minEta );
75  declareProperty("StartPerigeeMaxEta" , m_maxEta );
76  declareProperty("StartPerigeeMinPt" , m_minPt );
77  declareProperty("StartPerigeeMaxPt" , m_maxPt );
78  declareProperty("ParticleType" , m_particleType );
79  declareProperty("ReferenceSurfaceRadius" , m_referenceSurfaceRadius );
80  declareProperty("ReferenceSurfaceHalfZ" , m_referenceSurfaceHalflength);
81  declareProperty("EventsPerExecute" , m_eventsPerExecute );
82  declareProperty("ATLASPropResultRootWriter" , m_atlasPropResultWriterSvc );
83  declareProperty("ACTSPropResultRootWriter" , m_actsPropResultWriterSvc );
84  declareProperty("RndmSvc" , m_rndmSvc );
85 }

◆ ~ExtrapolatorComparisonTest()

Trk::ExtrapolatorComparisonTest::~ExtrapolatorComparisonTest ( )

Default Destructor.

Definition at line 89 of file ExtrapolatorComparisonTest.cxx.

90 {
91  // cleanup of the Trk::Surfaces
92  std::vector< std::vector< const Trk::Surface* > >::const_iterator atlasSurfaceTripleIter = m_atlasReferenceSurfaceTriples.begin();
93  std::vector< std::vector< const Trk::Surface* > >::const_iterator atlasSurfaceTripleIterEnd = m_atlasReferenceSurfaceTriples.end();
94  for ( ; atlasSurfaceTripleIter != atlasSurfaceTripleIterEnd; ++atlasSurfaceTripleIter) {
95  std::vector<const Trk::Surface*>::const_iterator surfIter = (*atlasSurfaceTripleIter).begin();
96  std::vector<const Trk::Surface*>::const_iterator surfIterEnd = (*atlasSurfaceTripleIter).end();
97  for ( ; surfIter != surfIterEnd; delete (*surfIter), ++surfIter);
98  }
99 }

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 175 of file ExtrapolatorComparisonTest.cxx.

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

◆ 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 167 of file ExtrapolatorComparisonTest.cxx.

168 {
169  // Code entered here will be executed once at the end of the program run.
170  return StatusCode::SUCCESS;
171 }

◆ generatePerigee()

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

◆ initialize()

StatusCode Trk::ExtrapolatorComparisonTest::initialize ( )
override

standard Athena-Algorithm method

Definition at line 104 of file ExtrapolatorComparisonTest.cxx.

105 {
106  // Code entered here will be executed once at program start.
107 
108  ATH_MSG_INFO(" initialize()");
109 
110  ATH_CHECK( m_extrapolationTool.retrieve() );
111  ATH_CHECK( m_atlasExtrapolator.retrieve() );
112 
113  // Create the destination surfaces for extrapolation
114  // --> you need the Trk::Surfaces and the Acts::Surfaces
116  // assign the size
118  // loop over it and create the
119  for (unsigned int surface = 0; surface < m_referenceSurfaces; surface++) {
120 
121  double radius = m_referenceSurfaceRadius.at(surface);
122  double halfZ = m_referenceSurfaceHalflength.at(surface);
123 
124  // create the Surface triplet
125  std::vector< const Trk::Surface*> trkSurfaceTriplet;
126  trkSurfaceTriplet.push_back(new Trk::DiscSurface (Amg::Transform3D(Amg::Translation3D(0.,0., halfZ)), 0.,radius));
127  trkSurfaceTriplet.push_back(new Trk::CylinderSurface(Amg::Transform3D(Amg::Translation3D(0.,0., 0.)),radius, halfZ));
128  trkSurfaceTriplet.push_back(new Trk::DiscSurface (Amg::Transform3D(Amg::Translation3D(0.,0.,-halfZ)), 0.,radius));
129  ATH_MSG_INFO("Creating Trk::Surface at: R " << radius << " Z " << halfZ);
130  m_atlasReferenceSurfaceTriples.push_back(trkSurfaceTriplet);
131 
132  // create the Surface triplet
133  std::vector<std::shared_ptr<const Acts::Surface>> actsSurfaceTriplet;
134 
135  Acts::Transform3 posTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0., halfZ)));
136  Acts::Transform3 cTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0., 0.)));
137  Acts::Transform3 negTransf(Acts::Transform3::Identity()*Acts::Translation3(Acts::Vector3(0.,0.,-halfZ)));
138 
139  auto posSurface = Acts::Surface::makeShared<Acts::DiscSurface> (posTransf , 0.,radius);
140  auto cSurface = Acts::Surface::makeShared<Acts::CylinderSurface>( cTransf ,radius, halfZ);
141  auto negSurface = Acts::Surface::makeShared<Acts::DiscSurface> (negTransf , 0.,radius);
142 
143  actsSurfaceTriplet.push_back(posSurface);
144  actsSurfaceTriplet.push_back(cSurface );
145  actsSurfaceTriplet.push_back(negSurface);
146  ATH_MSG_INFO("Creating Acts::Surface at: R " << radius << " Z " << halfZ);
147  m_actsReferenceSurfaceTriples.push_back(actsSurfaceTriplet);
148 
149  m_referenceSurfaceNegativeBoundary.push_back(atan2(radius,-halfZ));
150  m_referenceSurfacePositiveBoundary.push_back(atan2(radius, halfZ));
151  }
152  } else {
153  ATH_MSG_WARNING("Not compatible size of ReferenceSurfaceRadius and ReferenceSurfaceHalfZ!! Returning FAILURE!");
154  return StatusCode::FAILURE;
155  }
156 
158  ATH_CHECK( m_actsPropResultWriterSvc.retrieve() );
159  ATH_CHECK( m_rndmSvc.retrieve() );
160  m_randomEngine = m_rndmSvc->getEngine (this, "ExtrapolatorComparisonTest");
161 
162  return StatusCode::SUCCESS;
163 }

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

Definition at line 147 of file ExtrapolatorComparisonTest.h.

◆ m_actsReferenceSurfaceTriples

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

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

◆ m_atlasPropResultWriterSvc

ServiceHandle<PropResultRootWriterSvc> Trk::ExtrapolatorComparisonTest::m_atlasPropResultWriterSvc
private

Definition at line 146 of file ExtrapolatorComparisonTest.h.

◆ m_atlasReferenceSurfaceTriples

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

Definition at line 141 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

int Trk::ExtrapolatorComparisonTest::m_eventsPerExecute
private

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

◆ m_maxEta

double Trk::ExtrapolatorComparisonTest::m_maxEta
private

Maximal eta value.

Definition at line 126 of file ExtrapolatorComparisonTest.h.

◆ m_maxPhi

double Trk::ExtrapolatorComparisonTest::m_maxPhi
private

Maximal phi value.

Definition at line 124 of file ExtrapolatorComparisonTest.h.

◆ m_maxPt

double Trk::ExtrapolatorComparisonTest::m_maxPt
private

Maximal p value.

Definition at line 128 of file ExtrapolatorComparisonTest.h.

◆ m_minEta

double Trk::ExtrapolatorComparisonTest::m_minEta
private

Minimal eta value.

Definition at line 125 of file ExtrapolatorComparisonTest.h.

◆ m_minPhi

double Trk::ExtrapolatorComparisonTest::m_minPhi
private

Minimal phi value.

Definition at line 123 of file ExtrapolatorComparisonTest.h.

◆ m_minPt

double Trk::ExtrapolatorComparisonTest::m_minPt
private

Minimal p value.

Definition at line 127 of file ExtrapolatorComparisonTest.h.

◆ m_particleType

int Trk::ExtrapolatorComparisonTest::m_particleType
private

the particle typre for the extrap.

Definition at line 130 of file ExtrapolatorComparisonTest.h.

◆ m_randomEngine

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

Definition at line 149 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceHalflength

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

Definition at line 136 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceNegativeBoundary

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

Definition at line 138 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfacePositiveBoundary

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

Definition at line 139 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaceRadius

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

Definition at line 135 of file ExtrapolatorComparisonTest.h.

◆ m_referenceSurfaces

unsigned int Trk::ExtrapolatorComparisonTest::m_referenceSurfaces
private

member variables for algorithm properties:

Definition at line 133 of file ExtrapolatorComparisonTest.h.

◆ m_rndmSvc

ServiceHandle<IAthRNGSvc> Trk::ExtrapolatorComparisonTest::m_rndmSvc
private

Definition at line 148 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaD0

double Trk::ExtrapolatorComparisonTest::m_sigmaD0
private

Sigma of distribution for D0.

Definition at line 121 of file ExtrapolatorComparisonTest.h.

◆ m_sigmaZ0

double Trk::ExtrapolatorComparisonTest::m_sigmaZ0
private

Sigma of distribution for Z0.

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_referenceSurfaceRadius
std::vector< double > m_referenceSurfaceRadius
Definition: ExtrapolatorComparisonTest.h:135
Trk::ExtrapolatorComparisonTest::m_atlasReferenceSurfaceTriples
std::vector< std::vector< const Trk::Surface * > > m_atlasReferenceSurfaceTriples
Definition: ExtrapolatorComparisonTest.h:141
Trk::ExtrapolatorComparisonTest::m_minPhi
double m_minPhi
Minimal phi value.
Definition: ExtrapolatorComparisonTest.h:123
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
test_pyathena.eta
eta
Definition: test_pyathena.py:10
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Trk::ExtrapolatorComparisonTest::m_minEta
double m_minEta
Minimal eta value.
Definition: ExtrapolatorComparisonTest.h:125
Trk::ExtrapolatorComparisonTest::m_eventsPerExecute
int m_eventsPerExecute
Definition: ExtrapolatorComparisonTest.h:144
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< AthCommonMsg< Gaudi::Algorithm > >::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_referenceSurfacePositiveBoundary
std::vector< double > m_referenceSurfacePositiveBoundary
Definition: ExtrapolatorComparisonTest.h:139
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:118
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
M_PI
#define M_PI
Definition: ActiveFraction.h: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:115
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:138
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
std::vector< double > m_referenceSurfaceHalflength
Definition: ExtrapolatorComparisonTest.h:136
python.handimod.now
now
Definition: handimod.py:675
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
python.SystemOfUnits.millimeter
int millimeter
Definition: SystemOfUnits.py:53
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
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_sigmaD0
double m_sigmaD0
Sigma of distribution for D0.
Definition: ExtrapolatorComparisonTest.h:121
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
Trk::ExtrapolatorComparisonTest::m_sigmaZ0
double m_sigmaZ0
Sigma of distribution for Z0.
Definition: ExtrapolatorComparisonTest.h:122
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:142
Trk::ExtrapolatorComparisonTest::m_actsPropResultWriterSvc
ServiceHandle< PropResultRootWriterSvc > m_actsPropResultWriterSvc
Definition: ExtrapolatorComparisonTest.h:147
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
python.SystemOfUnits.micrometer
int micrometer
Definition: SystemOfUnits.py:71
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:149
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:133
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
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
charge
double charge(const T &p)
Definition: AtlasPID.h:756
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
Trk::ExtrapolatorComparisonTest::m_maxPt
double m_maxPt
Maximal p value.
Definition: ExtrapolatorComparisonTest.h:128
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
Trk::ExtrapolatorComparisonTest::m_maxEta
double m_maxEta
Maximal eta value.
Definition: ExtrapolatorComparisonTest.h:126
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Trk::ExtrapolatorComparisonTest::m_particleType
int m_particleType
the particle typre for the extrap.
Definition: ExtrapolatorComparisonTest.h:130
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:148
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:146
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
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Trk::ExtrapolatorComparisonTest::m_minPt
double m_minPt
Minimal p value.
Definition: ExtrapolatorComparisonTest.h:127
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
Trk::ExtrapolatorComparisonTest::m_maxPhi
double m_maxPhi
Maximal phi value.
Definition: ExtrapolatorComparisonTest.h:124