ATLAS Offline Software
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 $
14 
15 //#include "TrkParameters/Perigee.h"
16 //#include "TrkParameters/TrackParameters.h"
17 //#include "TrkEventPrimitives/ErrorMatrix.h"
19 
20 
21 namespace 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
D3PD::PerigeeCovarianceAssociationTool::PerigeeCovarianceAssociationTool
PerigeeCovarianceAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: PerigeeCovarianceAssociationTool.cxx:30
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::SingleAssociationTool< Trk::TrackParameters, AmgSymMatrix(5)>::get
virtual const AmgSymMatrix(5) * get(const Trk::TrackParameters &p)=0
Return the target object.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
D3PD::SingleAssociationTool< Trk::TrackParameters, AmgSymMatrix(5)>
D3PD::AmgSymMatrix
const AmgSymMatrix(5) *PerigeeCovarianceAssociationTool
Return the target object.
Definition: PerigeeCovarianceAssociationTool.cxx:43
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
PerigeeCovarianceAssociationTool.h
Associate from a Perigee to its ErrorMatrix.
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Trk::ParametersBase
Definition: ParametersBase.h:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
REPORT_MESSAGE
#define REPORT_MESSAGE(LVL)
Report a message.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:365
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78