Skip to content
Snippets Groups Projects

InDetAlignGenTools: createSummary -> summary

Merged Scott Snyder requested to merge ssnyder/athena:summary.InDetAlignGenTools-20200708 into master
2 files
+ 7
11
Compare changes
  • Side-by-side
  • Inline
Files
2
/*
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
*/
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
@@ -877,8 +877,8 @@ void InDetAlignFillTrack::dumpTrack(int itrk, const Trk::Track* trk,
@@ -877,8 +877,8 @@ void InDetAlignFillTrack::dumpTrack(int itrk, const Trk::Track* trk,
int nshared = 0, nshpix = 0, nshsct = 0;
int nshared = 0, nshpix = 0, nshsct = 0;
int nholes = 0, nhpix = 0, nhsct = 0;
int nholes = 0, nhpix = 0, nhsct = 0;
const Trk::TrackSummary* summary = m_trackSumTool->createSummary((*trk));
std::unique_ptr<Trk::TrackSummary> summary = m_trackSumTool->summary((*trk));
if (summary == 0) ATH_MSG_ERROR("Could not create TrackSummary");
if (!summary) ATH_MSG_ERROR("Could not create TrackSummary");
else {
else {
// hits
// hits
@@ -939,8 +939,6 @@ void InDetAlignFillTrack::dumpTrack(int itrk, const Trk::Track* trk,
@@ -939,8 +939,6 @@ void InDetAlignFillTrack::dumpTrack(int itrk, const Trk::Track* trk,
}
}
}
}
delete summary;
// get fit quality and chi2 probability of track
// get fit quality and chi2 probability of track
// chi2Prob = TMath::Prob(chi2,DoF) ROOT function
// chi2Prob = TMath::Prob(chi2,DoF) ROOT function
double chi2Prob = 0.;
double chi2Prob = 0.;
Loading