Skip to content
Snippets Groups Projects
Commit d0272cbe authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'summary.InDetAlignGenTools-20200708' into 'master'

InDetAlignGenTools: createSummary -> summary

See merge request !34567
parents 2ffbd676 84b92f87
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!34567InDetAlignGenTools: createSummary -> summary
/*
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,
int nshared = 0, nshpix = 0, nshsct = 0;
int nholes = 0, nhpix = 0, nhsct = 0;
const Trk::TrackSummary* summary = m_trackSumTool->createSummary((*trk));
if (summary == 0) ATH_MSG_ERROR("Could not create TrackSummary");
std::unique_ptr<Trk::TrackSummary> summary = m_trackSumTool->summary((*trk));
if (!summary) ATH_MSG_ERROR("Could not create TrackSummary");
else {
// hits
......@@ -939,8 +939,6 @@ void InDetAlignFillTrack::dumpTrack(int itrk, const Trk::Track* trk,
}
}
delete summary;
// get fit quality and chi2 probability of track
// chi2Prob = TMath::Prob(chi2,DoF) ROOT function
double chi2Prob = 0.;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
// InDetAlignTrackSelTool.h
......@@ -126,8 +126,8 @@ int InDetAlignTrackSelTool::nShared(const Trk::Track& track) const {
ATH_MSG_DEBUG( "in nShared()" ) ;
int nshared=0, nshpix, nshsct;
const Trk::TrackSummary* summary = m_trackSumTool->createSummary(track);
if(summary==0){
std::unique_ptr<Trk::TrackSummary> summary = m_trackSumTool->summary(track);
if(!summary){
ATH_MSG_ERROR( "Could not create TrackSummary" ) ;
nshared = 1000;
}
......@@ -143,7 +143,6 @@ int InDetAlignTrackSelTool::nShared(const Trk::Track& track) const {
nshared = nshpix + nshsct;
}
delete summary;
return nshared;
}
......@@ -153,7 +152,7 @@ int InDetAlignTrackSelTool::nHoles(const Trk::Track& track) const {
ATH_MSG_DEBUG( "in nHoles() " ) ;
int nholes=0, nhpix, nhsct;
const Trk::TrackSummary* summary = m_trackSumTool->createSummary(track);
std::unique_ptr<Trk::TrackSummary> summary = m_trackSumTool->summary(track);
if(summary==0){
ATH_MSG_ERROR( "Could not create TrackSummary" ) ;
nholes = 1000;
......@@ -173,7 +172,6 @@ int InDetAlignTrackSelTool::nHoles(const Trk::Track& track) const {
nholes = nhpix + nhsct;
}
delete summary;
return nholes;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment