ATLAS Offline Software
Loading...
Searching...
No Matches
ImpactSigmaFillerTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
12
13
15//#include "TrkEventPrimitives/ErrorMatrix.h"
19#include <sstream>
20
21
22namespace D3PD {
23
24
31//ImpactSigmaFillerTool::ImpactSigmaFillerTool
32// (const std::string& type,
33// const std::string& name,
34// const IInterface* parent)
35// : BlockFillerTool<AmgSymMatrix(5)> (type, name, parent)
37 (const std::string& type,
38 const std::string& name,
39 const IInterface* parent)
40 : BlockFillerTool<AmgSymMatrix(5)> (type, name, parent)
41{
42 book().ignore(); // Avoid coverity warnings.
43}
44
45
50{
51 CHECK( addVariable ("sigd0", m_sigd0,
52 "Uncertainty on transverse impact parameter.",
53 -9999) );
54 CHECK( addVariable ("sigz0", m_sigz0,
55 "Uncertainty on longitudinal impact parameter.",
56 -9999) );
57 return StatusCode::SUCCESS;
58}
59
60
69 //StatusCode ImpactSigmaFillerTool::fill (const AmgSymMatrix(5)& m)
71{
74 return StatusCode::SUCCESS;
75}
76
77
78} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
#define AmgSymMatrix(dim)
Fill d0/z0 uncertainties from an ErrorMatrix.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Type-safe wrapper for block filler tools.
virtual StatusCode book() final
Book variables for this block.
float * m_sigz0
Variables: z0 uncertainty.
ImpactSigmaFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
float * m_sigd0
Variables: d0 uncertainty.
virtual StatusCode fill(const AmgSymMatrix(5) &p) override
Fill one block — type-safe version.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Block filler tool for noisy FEB information.
const AmgSymMatrix(5) *PerigeeCovarianceAssociationTool
Return the target object.
@ d0
Definition ParamDefs.h:63
@ z0
Definition ParamDefs.h:64