ATLAS Offline Software
Loading...
Searching...
No Matches
PerigeeCovarianceAssociationTool.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: PerigeeCovarianceAssociationTool.cxx 281348 2010-02-24 23:15:11Z zaidan $
12
14
15//#include "TrkParameters/Perigee.h"
16//#include "TrkParameters/TrackParameters.h"
17//#include "TrkEventPrimitives/ErrorMatrix.h"
19
20
21namespace D3PD {
22
30 (const std::string& type,
31 const std::string& name,
32 const IInterface* parent)
33 : Base (type, name, parent)
34{
35}
36
44{
45 // cast to MeasuredPerigee
46 //const Trk::MeasuredPerigee *measPerigee = dynamic_cast<const Trk::MeasuredPerigee *>(&p);
47 const AmgSymMatrix(5) * cov = p.covariance();
48 if (cov) {
49 // return pointer to Covariance Matrix
50 return cov;
51 }else{
52 REPORT_MESSAGE (MSG::WARNING) << "Could not cast Trk::Perigee to Trk::MeasuredPerigee";
53 }
54
55 return 0;
56}
57
58} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
#define AmgSymMatrix(dim)
Associate from a Perigee to its ErrorMatrix.
PerigeeCovarianceAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
SingleAssociationTool< Trk::TrackParameters, AmgSymMatrix(5)> Base
virtual const AmgSymMatrix(5) * get(const Trk::TrackParameters &p)=0
Block filler tool for noisy FEB information.
ParametersBase< TrackParametersDim, Charged > TrackParameters