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

AlgTool to calculate the residual and pull of a measurement and the related track state independently of the detector type. More...

#include <ResidualPullCalculator.h>

Inheritance diagram for Trk::ResidualPullCalculator:
Collaboration diagram for Trk::ResidualPullCalculator:

Public Member Functions

 ResidualPullCalculator (const std::string &type, const std::string &name, const IInterface *parent)
 constructor More...
 
 ~ResidualPullCalculator ()
 
virtual StatusCode initialize () override final
 initialize More...
 
virtual StatusCode finalize () override final
 
virtual std::optional< Trk::ResidualPullresidualPull (const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override final
 This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state. More...
 
virtual std::optional< Trk::ResidualPullresidualPull (const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType, const std::vector< const Trk::AlignmentEffectsOnTrack * > &) const override final
 This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state, and the Alignment effects. More...
 
virtual std::array< double, 5 > residuals (const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override final
 This function is a light-weight version of the function above, designed for track fitters where speed is critical. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 Interface ID, declared here, and defined below. More...
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

double calcPull (const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &resType) const
 calc pull in 1 dimension More...
 
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< IResidualPullCalculatorm_SCTresidualTool
 the ResidualPullCalculator for the SCT More...
 
ToolHandle< IResidualPullCalculatorm_RPCresidualTool
 the ResidualPullCalculator for the RPC More...
 
ToolHandle< IResidualPullCalculatorm_TGCresidualTool
 the ResidualPullCalculator for the TGC More...
 
const AtlasDetectorIDm_idHelper
 Used to know the sub-det from PRD->identify(). 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

AlgTool to calculate the residual and pull of a measurement and the related track state independently of the detector type.

The Trk::ResidualPullCalculator is an AlgTool to calculate the residual and pull of a measurement and the related track state independent of the detector type. For sub-detectors like the SCT which need more attention a special tool in the detector-realm is called (to avoid dependencies on sub-detector code; only runtime-dependencies are created).

The residuals and pulls are calculated according to the formulas given in the description of Trk::ResidualPull.

Definition at line 46 of file ResidualPullCalculator.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ResidualPullCalculator()

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

constructor

Definition at line 31 of file ResidualPullCalculator.cxx.

33 m_SCTresidualTool("InDet::SCT_ResidualPullCalculator/SCT_ResidualPullCalculator"),
34 m_RPCresidualTool("Muon::RPC_ResidualPullCalculator/RPC_ResidualPullCalculator"),
35 m_TGCresidualTool("Muon::TGC_ResidualPullCalculator/TGC_ResidualPullCalculator"),
36 m_idHelper(nullptr) {
37  declareInterface<IResidualPullCalculator>(this);
38  declareProperty("ResidualPullCalculatorForSCT", m_SCTresidualTool, "Tool to calculate residuals and pulls in the SCT (including module rotation)");
39  declareProperty("ResidualPullCalculatorForRPC", m_RPCresidualTool, "Tool to calculate residuals and pulls in the RPC (including phi/eta detection)");
40  declareProperty("ResidualPullCalculatorForTGC", m_TGCresidualTool, "Tool to calculate residuals and pulls in the SCT (including module rotation)");
41 
42 }

◆ ~ResidualPullCalculator()

Trk::ResidualPullCalculator::~ResidualPullCalculator ( )
inline

Definition at line 50 of file ResidualPullCalculator.h.

50 {}

Member Function Documentation

◆ calcPull()

double Trk::ResidualPullCalculator::calcPull ( const double  residual,
const double  locMesCov,
const double  locTrkCov,
const Trk::ResidualPull::ResidualType resType 
) const
private

calc pull in 1 dimension

Definition at line 449 of file ResidualPullCalculator.cxx.

453  {
454 
455  double CovarianceSum = 0.0;
456  if (resType == Trk::ResidualPull::Unbiased) {
457  CovarianceSum = locMesCov + locTrkCov;
458  } else if (resType == Trk::ResidualPull::Biased) {
459  CovarianceSum = locMesCov - locTrkCov;
460  } else CovarianceSum = locMesCov;
461 
462  if (CovarianceSum <= 0.0) {
463  ATH_MSG_DEBUG("instable calculation: total covariance is non-positive, MeasCov = "<<
464  locMesCov<<", TrkCov = "<<locTrkCov<<", resType = "<<resType);
465  return 0.0;
466  }
467  return residual/sqrt(CovarianceSum);
468 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

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

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

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

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

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

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

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

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

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

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

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

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ finalize()

StatusCode Trk::ResidualPullCalculator::finalize ( )
finaloverridevirtual

Definition at line 79 of file ResidualPullCalculator.cxx.

79  {
80  ATH_MSG_DEBUG ("starting finalize() in " << name());
81  return StatusCode::SUCCESS;
82 }

◆ initialize()

StatusCode Trk::ResidualPullCalculator::initialize ( )
finaloverridevirtual

initialize

Definition at line 47 of file ResidualPullCalculator.cxx.

47  {
48 
49  // ---------------------------------------
50  //Set up ATLAS ID helper to be able to identify the RIO's det-subsystem.
51  ATH_CHECK(detStore()->retrieve(m_idHelper, "AtlasID"));
52  // ----------------------------------
53  // get the SCT residual/pull calculator
54  if ( ! m_SCTresidualTool.empty() ) {
55  ATH_CHECK( m_SCTresidualTool.retrieve());
56  } else {
57  ATH_MSG_DEBUG ("No residual calculator for SCT given, will ignore SCT measurements!");
58  }
59 
60  // ----------------------------------
61  // get the RPC residual/pull calculator
62  if ( ! m_RPCresidualTool.empty() ) {
63  ATH_CHECK( m_RPCresidualTool.retrieve());
64  } else {
65  ATH_MSG_DEBUG ("No residual calculator for RPC given, will ignore RPC measurements!");
66  }
67 
68  // ----------------------------------
69  // get the TGC residual/pull calculator
70  if ( ! m_TGCresidualTool.empty() ) {
71  ATH_CHECK( m_TGCresidualTool.retrieve());
72  } else {
73  ATH_MSG_DEBUG ("No residual calculator for TGC given, will ignore TGC measurements!");
74  }
75 
76  return StatusCode::SUCCESS;
77 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

const InterfaceID & Trk::IResidualPullCalculator::interfaceID ( )
inlinestaticinherited

Interface ID, declared here, and defined below.

Definition at line 84 of file IResidualPullCalculator.h.

84  {
85  return IID_IResidualPullCalculator;
86 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ residualPull() [1/2]

std::optional< Trk::ResidualPull > Trk::ResidualPullCalculator::residualPull ( const Trk::MeasurementBase measurement,
const Trk::TrackParameters trkPar,
const Trk::ResidualPull::ResidualType  resType,
const Trk::TrackState::MeasurementType  detType 
) const
finaloverridevirtual

This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state.

The track state can be an unbiased one (which can be retrieved by the Trk::IUpdator), a biased one (which contains the measurement), or a truth state. The enum residualTyp must be set according to this, otherwise the pulls will be wrong. Residuals differ in all three cases; please be aware of this.

This function determines the sub-detector type itself by using the ID helper

Implements Trk::IResidualPullCalculator.

Definition at line 177 of file ResidualPullCalculator.cxx.

181  {
182 
183  if (!measurement || !trkPar) return std::nullopt;
184 
185  // if no covariance for the track parameters is given the pull calculation is not valid
186  bool pullIsValid = trkPar->covariance();
187 
188  Trk::TrackState::MeasurementType measType = detType;
189  if (detType == Trk::TrackState::unidentified) {
190  Trk::MeasurementTypeID helper = MeasurementTypeID(m_idHelper);
191  measType = helper.defineType(measurement);
192  }
193  unsigned int dimOfLocPars = (unsigned int)measurement->localParameters().dimension();
194  std::vector<double> residual(dimOfLocPars);
195  std::vector<double> pull(dimOfLocPars);
196 
197  // has to live here as it does not compile if code is switch statement
198  ParamDefsAccessor PDA;
199  unsigned int iColRow=0;
200 
201  ATH_MSG_VERBOSE ("Calculating residual for type " << measType << " dimension " << dimOfLocPars);
202 
203  // do the calculations for the different detector types
204  switch(measType) {
206  ATH_MSG_VERBOSE ("Pixel dim calculation ");
207  // calc residual and pull for the second coordinate, first coord postponed to 1-dim case
208  residual[Trk::loc2] = measurement->localParameters()[Trk::loc2] - trkPar->parameters()[Trk::loc2];
209  if (pullIsValid) {
211  measurement->localCovariance()(Trk::loc2,Trk::loc2),
212  (*trkPar->covariance())(Trk::loc2,Trk::loc2),
213  resType);
214  } else {
216  measurement->localCovariance()(Trk::loc2,Trk::loc2),
217  0,
218  resType);
219  }
220  // do not break here, but also fill the first coordinate...
221  /* FALLTHROUGH */
226  case Trk::TrackState::MM:
227  ATH_MSG_VERBOSE ("One dim calculation ");
228  // 1-dim measurement
229  // calc residual and pull for the first coordinate
230  residual[Trk::loc1] = measurement->localParameters()[Trk::loc1] - trkPar->parameters()[Trk::loc1];
231  if (pullIsValid) {
233  measurement->localCovariance()(Trk::loc1,Trk::loc1),
234  (*trkPar->covariance())(Trk::loc1,Trk::loc1),
235  resType);
236  } else {
238  measurement->localCovariance()(Trk::loc1,Trk::loc1),
239  0,
240  resType);
241  }
242  break;
244  // special case, has to be handed down to the SCT tool
245  if ( ! m_SCTresidualTool.empty() ) {
246  ATH_MSG_VERBOSE ("Calling SCT tool ");
247  return m_SCTresidualTool->residualPull(measurement, trkPar, resType, Trk::TrackState::SCT);
248  } else {
249  ATH_MSG_WARNING ("No SCT ResidualPullCalculator given, cannot calculate residual and pull for SCT measurement!");
250  return std::nullopt;
251  }
252  break;
254  // special case, has to be handed down to the RPC tool
255  if ( ! m_RPCresidualTool.empty() ) {
256  ATH_MSG_VERBOSE ("Calling RPC tool ");
257  return m_RPCresidualTool->residualPull(measurement, trkPar, resType, Trk::TrackState::RPC);
258  } else {
259  ATH_MSG_WARNING ("No RPC ResidualPullCalculator given, cannot calculate residual and pull for RPC measurement!");
260  return std::nullopt;
261  }
262  break;
264  // special case, has to be handed down to the TGC tool
265  if ( ! m_TGCresidualTool.empty() ) {
266  ATH_MSG_VERBOSE ("Calling TGC tool ");
267  return m_TGCresidualTool->residualPull(measurement, trkPar, resType, Trk::TrackState::TGC);
268  } else {
269  ATH_MSG_WARNING ("No TGC ResidualPullCalculator given, cannot calculate residual and pull for TGC measurement!");
270  return std::nullopt;
271  }
272  break;
277  ATH_MSG_VERBOSE ("Bit-key calculation ");
278 
279  // PMs, Segments etc: use LocalParameters bit-key scheme
280  for (unsigned int i=0; i<5; ++i) {
281  Trk::ParamDefs iPar = PDA.pardef[i];
282  if (measurement->localParameters().contains(iPar)) {
283  residual[iColRow] = measurement->localParameters()[iPar]
284  - trkPar->parameters()[iPar];
285  if (pullIsValid)
286  pull[iColRow] = calcPull(residual[iColRow],
287  measurement->localCovariance()(PDA.pardef[iColRow],PDA.pardef[iColRow]),
288  (*trkPar->covariance())(PDA.pardef[iColRow],PDA.pardef[iColRow]),
289  resType);
290  ++iColRow;
291  }
292  }
293  break;
294  default:
295  ATH_MSG_VERBOSE ("Default calculation ");
296  // use HEPvector to calculate the residual
297  // r = m - H.p
298  Amg::VectorX HEPresidual = measurement->localParameters() - (measurement->localParameters().expansionMatrix() * trkPar->parameters());
299  residual.resize(HEPresidual.rows());
300  pull.resize(HEPresidual.rows());
301  for (int i = 0; i < HEPresidual.rows(); i++) {
302  residual[i] = HEPresidual[i];
303  }
304 
305  }
306  return std::make_optional<Trk::ResidualPull>(
307  std::move(residual), std::move(pull), pullIsValid, resType,
308  measurement->localParameters().parameterKey());
309 }

◆ residualPull() [2/2]

std::optional< Trk::ResidualPull > Trk::ResidualPullCalculator::residualPull ( const Trk::MeasurementBase measurement,
const Trk::TrackParameters trkPar,
const Trk::ResidualPull::ResidualType  resType,
const Trk::TrackState::MeasurementType  detType,
const std::vector< const Trk::AlignmentEffectsOnTrack * > &  aeots 
) const
finaloverridevirtual

This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual and pull for the given measurement and track state, and the Alignment effects.

The track state can be an unbiased one (which can be retrieved by the Trk::IUpdator), a biased one (which contains the measurement), or a truth state. The enum residualTyp must be set according to this, otherwise the pulls will be wrong. Residuals differ in all three cases; please be aware of this.

This function determines the sub-detector type itself by using the ID helper

Reimplemented from Trk::IResidualPullCalculator.

Definition at line 314 of file ResidualPullCalculator.cxx.

319  {
320 
321  //bool veryVerbose = true;
322 
323  Trk::TrackState::MeasurementType measType = detType;
324  if (detType == Trk::TrackState::unidentified) {
325  Trk::MeasurementTypeID helper = MeasurementTypeID(m_idHelper);
326  measType = helper.defineType(measurement);
327  }
328 
329  // time to shift the parameter - do this rather than the measurement so we can call the original method.
330  Amg::Vector3D loc3Dframe;
331  Amg::Vector2D localPos;
332  Amg::Vector2D localPosSimple;
333  Amg::Vector3D globalPos;
335 
336  std::unique_ptr<Trk::TrackParameters> trkPar = originalTrkPar->uniqueClone();
337  parameters = trkPar->parameters();
338 
339  ATH_MSG_VERBOSE( " ResidualPullCalculator aeots size " << aeots.size() << " parameters[0] " << parameters[0] );
340  double residual = measurement->localParameters()[Trk::loc1] - trkPar->parameters()[Trk::loc1];
342  << parameters[0] << " trkPar->parameters()[Trk::loc1] "
343  << trkPar->parameters()[Trk::loc1]
344  << " measurement->localParameters()[Trk::loc1] "
345  << measurement->localParameters()[Trk::loc1] << " resi "
346  << residual);
347 
348  localPos[0] = parameters[0];
349  localPosSimple[0] = parameters[0];
350  for ( const auto & aeot : aeots ){
351  ATH_MSG_VERBOSE( " ResidualPullCalculator aeots deltaTranslation " << aeot->deltaTranslation() << " angle " << aeot->deltaAngle());
352 
353  Trk::DistanceSolution solution = aeot->associatedSurface().straightLineDistanceEstimate(originalTrkPar->position(),originalTrkPar->momentum().unit());
354  double distance = solution.currentDistance(true);
355 // calculate sign of distance
356  Amg::Vector3D displacementVector =
357  Amg::Vector3D(originalTrkPar->position().x() -
358  aeot->associatedSurface().center().x(),
359  originalTrkPar->position().y() -
360  aeot->associatedSurface().center().y(),
361  originalTrkPar->position().z() -
362  aeot->associatedSurface().center().z());
363  if (displacementVector.dot(originalTrkPar->momentum().unit()) < 0)
364  distance = -distance;
365 
366  if(measType == Trk::TrackState::MDT) {
367 // MDT
368  double distanceX = distance*originalTrkPar->momentum().unit().x();
369  double distanceY = distance*originalTrkPar->momentum().unit().y();
370  const double originalPhi=originalTrkPar->momentum().phi();
371  double distanceR = std::cos(originalPhi)*distanceX + std::sin(originalPhi)*distanceY; //< Is this quicker than hypotenuse?
372  ATH_MSG_VERBOSE(" originalTrkPar->position() x "
373  << originalTrkPar->position().x() << " y "
374  << originalTrkPar->position().y() << " z "
375  << originalTrkPar->position().z());
376  ATH_MSG_VERBOSE(" aeot->associatedSurface().center() x "
377  << aeot->associatedSurface().center().x() << " y "
378  << aeot->associatedSurface().center().y() << " z "
379  << aeot->associatedSurface().center().z());
380 
381  // use drift (circle) derivatives as in TrkiPatFitterUtils
382 
383  Amg::Vector3D sensorDirection = Amg::Vector3D(measurement->associatedSurface().transform().rotation().col(2));
384  Amg::Vector3D driftDirection = Amg::Vector3D(sensorDirection.cross(originalTrkPar->momentum().unit()));
385  driftDirection = driftDirection.unit();
386  ATH_MSG_VERBOSE( " cos(theta) " << std::cos(originalTrkPar->momentum().theta()) << " phi " << originalPhi );
387  ATH_MSG_VERBOSE( " sensorDirection x " << sensorDirection.x() << " y " << sensorDirection.y() << " z " << sensorDirection.z() );
388  ATH_MSG_VERBOSE( " driftDirection x " << driftDirection.x() << " y " << driftDirection.y() << " z " << driftDirection.z() );
389 
390 
391 // Barrel
392  double projection = driftDirection.z();
393 // dz because of a dhteta change: factor = dz/dtheta
394  const double originalTheta=originalTrkPar->momentum().theta();
395  const double sinOriginalTheta=std::sin(originalTheta);
396  double factor = (distanceR/sinOriginalTheta)/sinOriginalTheta; //preserve calc. order
397  const Surface& surface = aeot->associatedSurface();
398  ATH_MSG_VERBOSE( " fabs(surface.normal().z()) " << std::fabs(surface.normal().z()) );
399  if(std::fabs(surface.normal().z()) > 0.5) {
400 // endcap
401  projection = (driftDirection.x()*surface.center().x() + driftDirection.y()*surface.center().y()) /
402  surface.center().perp();
403 // dr because of a dhteta change : factor = dR/dtheta
404  factor = -(distanceR/std::sin(originalTheta))/(std::cos(originalTheta)); //preserve calc. order
405  ATH_MSG_VERBOSE( " distance " << distance << " Endcap projection " << projection << " factor " << factor );
406  } else {
407  ATH_MSG_VERBOSE( " distance " << distance << " Barrel projection " << projection << " factor " << factor );
408  }
409 
410 
411  localPos[0] += projection*aeot->deltaTranslation() - projection*factor*aeot->deltaAngle(); // Shift in precision direction.
412 
413  ATH_MSG_VERBOSE( " MDT old localPos " << parameters[0] << " new localPos " << localPos[0] );
414 
415  } else {
416 
417 // CSC or MM clusters
418 
419  double projection = aeot->associatedSurface().normal().dot(originalTrkPar->momentum().unit());
420  localPos[0] += aeot->deltaTranslation()*projection + distance*aeot->deltaAngle();
421 
422  ATH_MSG_VERBOSE(" CSC old localPos "
423  << parameters[0] << " distance " << distance
424  << " proj " << projection << " new localPos "
425  << localPos[0] << " simple " << localPosSimple[0]);
426  }
427  }
428 
429  parameters[0] = localPos[0];
430  residual = measurement->localParameters()[Trk::loc1] - parameters[0];
431  ATH_MSG_VERBOSE( " new residual after end aeots loop " << residual );
432 
433  // Set parameters to the new values;
434  const AmgSymMatrix(5)* originalCov = trkPar->covariance();
435  if(originalCov) {
436  trkPar->updateParameters(parameters, AmgSymMatrix(5)( *originalCov ) );
437  } else {
438  trkPar->updateParameters(parameters);
439  }
440 
441  // Now call original method.
442  return residualPull(measurement, trkPar.get(), resType, detType );
443 }

◆ residuals()

std::array< double, 5 > Trk::ResidualPullCalculator::residuals ( const Trk::MeasurementBase measurement,
const Trk::TrackParameters trkPar,
const Trk::ResidualPull::ResidualType  resType,
const Trk::TrackState::MeasurementType  detType 
) const
finaloverridevirtual

This function is a light-weight version of the function above, designed for track fitters where speed is critical.

The user has to provide a std::array of size 5, which gets filled with the residuals.

Implements Trk::IResidualPullCalculator.

Definition at line 88 of file ResidualPullCalculator.cxx.

92  {
93 
94  std::array<double,5> residuals{-999.,-999.,-999.,-999.,-999};
95  Trk::TrackState::MeasurementType measType = detType;
96  if (detType == Trk::TrackState::unidentified) {
97  Trk::MeasurementTypeID helper = MeasurementTypeID(m_idHelper);
98  measType = helper.defineType(measurement);
99  }
100  switch(measType) {
102  ATH_MSG_VERBOSE ("Pixel dim calculation ");
103  // calc residual and pull for the second coordinate, first coord postponed to 1-dim case
104  residuals[Trk::loc1] = measurement->localParameters()[Trk::loc1] - trkPar->parameters()[Trk::loc1];
105  residuals[Trk::loc2] = measurement->localParameters()[Trk::loc2] - trkPar->parameters()[Trk::loc2];
106  break;
110  case Trk::TrackState::MM:
111  ATH_MSG_VERBOSE ("One dim calculation ");
112  // 1-dim measurement
113  // calc residual and pull for the first coordinate
114  residuals[Trk::loc1] = measurement->localParameters()[Trk::loc1] - trkPar->parameters()[Trk::loc1];
115  break;
117  ATH_MSG_VERBOSE ("One dim calculation ");
118  // 1-dim measurement
119  // calc residual and pull for the first coordinate
120  if( measurement->localParameters().contains(Trk::loc1) )
121  residuals[Trk::loc1] = measurement->localParameters()[Trk::loc1] - trkPar->parameters()[Trk::loc1];
122  else
123  residuals[Trk::loc2] = measurement->localParameters()[Trk::loc2] - trkPar->parameters()[Trk::loc2];
124  break;
126  // special case, has to be handed down to the SCT tool
127  if ( ! m_SCTresidualTool.empty() ) {
128  ATH_MSG_VERBOSE ("Calling SCT tool ");
129  return m_SCTresidualTool->residuals(measurement, trkPar, resType, Trk::TrackState::SCT);
130  } else {
131  ATH_MSG_WARNING ("No SCT ResidualPullCalculator given, cannot calculate residual and pull for SCT measurement!");
132  }
133  break;
135  // special case, has to be handed down to the RPC tool
136  if ( ! m_RPCresidualTool.empty() ) {
137  ATH_MSG_VERBOSE ("Calling RPC tool ");
138  return m_RPCresidualTool->residuals(measurement, trkPar, resType, Trk::TrackState::RPC);
139  } else {
140  ATH_MSG_WARNING ("No RPC ResidualPullCalculator given, cannot calculate residual and pull for RPC measurement!");
141  }
142  break;
144  // special case, has to be handed down to the TGC tool
145  if ( ! m_TGCresidualTool.empty() ) {
146  ATH_MSG_VERBOSE ("Calling TGC tool ");
147  return m_TGCresidualTool->residuals(measurement, trkPar, resType, Trk::TrackState::TGC);
148  } else {
149  ATH_MSG_WARNING ("No TGC ResidualPullCalculator given, cannot calculate residual and pull for TGC measurement!");
150  }
151  break;
156  default:
157  ATH_MSG_VERBOSE ("Bit-key calculation ");
158  ParamDefsAccessor PDA;
159 
160  // PMs, Segments etc: use LocalParameters bit-key scheme
161  for (unsigned int i=0; i<5; ++i) {
162  Trk::ParamDefs iPar = PDA.pardef[i];
163  if (measurement->localParameters().contains(iPar)) {
164  residuals[i] = measurement->localParameters()[iPar]
165  - trkPar->parameters()[iPar];
166  }
167  }
168  break;
169  }
170  return residuals;
171 
172 }

◆ sysInitialize()

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

Perform system initialization for an algorithm.

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

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

◆ sysStart()

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

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_idHelper

const AtlasDetectorID* Trk::ResidualPullCalculator::m_idHelper
private

Used to know the sub-det from PRD->identify().

Definition at line 103 of file ResidualPullCalculator.h.

◆ m_RPCresidualTool

ToolHandle<IResidualPullCalculator> Trk::ResidualPullCalculator::m_RPCresidualTool
private

the ResidualPullCalculator for the RPC

Definition at line 101 of file ResidualPullCalculator.h.

◆ m_SCTresidualTool

ToolHandle<IResidualPullCalculator> Trk::ResidualPullCalculator::m_SCTresidualTool
private

the ResidualPullCalculator for the SCT

Definition at line 100 of file ResidualPullCalculator.h.

◆ m_TGCresidualTool

ToolHandle<IResidualPullCalculator> Trk::ResidualPullCalculator::m_TGCresidualTool
private

the ResidualPullCalculator for the TGC

Definition at line 102 of file ResidualPullCalculator.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
Trk::LocalParameters::expansionMatrix
const Amg::MatrixX & expansionMatrix() const
Expansion matrix from 5x5 to the [dimension()]x[dimension()].
Definition: LocalParameters.cxx:73
Trk::DistanceSolution::currentDistance
double currentDistance(bool signedDist=false) const
Current distance to surface (spatial), signed (along/opposite to surface normal) if input argument tr...
Trk::TrackState::Vertex
@ Vertex
Definition: TrackStateDefs.h:36
Trk::TrackState::RPC
@ RPC
Definition: TrackStateDefs.h:33
Trk::TrackState::Pixel
@ Pixel
Definition: TrackStateDefs.h:28
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition: EventPrimitives.h:30
Trk::TrackState::TRT
@ TRT
Definition: TrackStateDefs.h:30
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
Trk::TrackState::Segment
@ Segment
Definition: TrackStateDefs.h:37
Trk::DistanceSolution
Definition: DistanceSolution.h:25
Trk::LocalParameters::parameterKey
int parameterKey() const
Identifier key for matrix expansion/reduction.
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
Trk::ResidualPullCalculator::m_TGCresidualTool
ToolHandle< IResidualPullCalculator > m_TGCresidualTool
the ResidualPullCalculator for the TGC
Definition: ResidualPullCalculator.h:102
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trk::TrackState::MDT
@ MDT
Definition: TrackStateDefs.h:31
Trk::ParamDefs
ParamDefs
Definition: ParamDefs.h:32
Trk::ResidualPull::Unbiased
@ Unbiased
RP with track state that has measurement not included.
Definition: ResidualPull.h:57
Trk::LocalParameters::contains
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
Surface
Definition: Trigger/TrigAccel/TrigCudaFitter/src/Surface.h:8
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
uniqueClone
std::unique_ptr< T_Obj > uniqueClone(const T_Obj *obj)
Definition: ObjContainer.h:49
Trk::ResidualPullCalculator::residuals
virtual std::array< double, 5 > residuals(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override final
This function is a light-weight version of the function above, designed for track fitters where speed...
Definition: ResidualPullCalculator.cxx:88
Trk::loc2
@ loc2
generic first and second local coordinate
Definition: ParamDefs.h:35
Trk::TrackState::TGC
@ TGC
Definition: TrackStateDefs.h:34
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
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Trk::TrackState::unidentified
@ unidentified
Definition: TrackStateDefs.h:27
Trk::ParametersCommon::updateParameters
void updateParameters(const AmgVector(DIM) &, const AmgSymMatrix(DIM) &)
Update parameters and covariance , passing covariance by ref.
Trk::TrackState::MM
@ MM
Definition: TrackStateDefs.h:42
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
Trk::TrackState::SpacePoint
@ SpacePoint
Definition: TrackStateDefs.h:38
Trk::AmgSymMatrix
AmgSymMatrix(5) &GXFTrackState
Definition: GXFTrackState.h:156
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
lumiFormat.i
int i
Definition: lumiFormat.py:85
Trk::TrackState::Pseudo
@ Pseudo
Definition: TrackStateDefs.h:35
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AmgVector
AmgVector(4) T2BSTrackFilterTool
Definition: T2BSTrackFilterTool.cxx:114
Trk::TrackState::MeasurementType
MeasurementType
enum describing the flavour of MeasurementBase
Definition: TrackStateDefs.h:26
test_pyathena.parent
parent
Definition: test_pyathena.py:15
python.StandardJetMods.pull
pull
Definition: StandardJetMods.py:282
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Trk::ResidualPullCalculator::calcPull
double calcPull(const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &resType) const
calc pull in 1 dimension
Definition: ResidualPullCalculator.cxx:449
Trk::MeasurementBase::localCovariance
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
Definition: MeasurementBase.h:138
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
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ResidualPullCalculator::ResidualPullCalculator
ResidualPullCalculator(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition: ResidualPullCalculator.cxx:31
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::MeasurementBase::associatedSurface
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
Trk::MeasurementTypeID
classifies a MeasurementBase into one of the known inherited flavours or one of the detector types fo...
Definition: MeasurementTypeID.h:26
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition: Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::MeasurementBase::localParameters
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
Definition: MeasurementBase.h:132
Trk::LocalParameters::dimension
int dimension() const
Dimension of this localParameters() vector.
Trk::ResidualPull::Biased
@ Biased
RP with track state including the hit.
Definition: ResidualPull.h:55
a
TList * a
Definition: liststreamerinfos.cxx:10
Trk::ResidualPullCalculator::residualPull
virtual std::optional< Trk::ResidualPull > residualPull(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override final
This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual an...
Definition: ResidualPullCalculator.cxx:177
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Trk::TrackState::CSC
@ CSC
Definition: TrackStateDefs.h:32
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::ResidualPullCalculator::m_idHelper
const AtlasDetectorID * m_idHelper
Used to know the sub-det from PRD->identify().
Definition: ResidualPullCalculator.h:103
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Trk::TrackState::SCT
@ SCT
Definition: TrackStateDefs.h:29
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Trk::loc1
@ loc1
Definition: ParamDefs.h:34
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
Trk::Surface::transform
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
Trk::TrackState::STGC
@ STGC
Definition: TrackStateDefs.h:41
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::ResidualPullCalculator::m_RPCresidualTool
ToolHandle< IResidualPullCalculator > m_RPCresidualTool
the ResidualPullCalculator for the RPC
Definition: ResidualPullCalculator.h:101
fitman.k
k
Definition: fitman.py:528
Trk::ResidualPullCalculator::m_SCTresidualTool
ToolHandle< IResidualPullCalculator > m_SCTresidualTool
the ResidualPullCalculator for the SCT
Definition: ResidualPullCalculator.h:100