diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/DerivationFrameworkBPhys/BPhysPVCascadeTools.h b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/DerivationFrameworkBPhys/BPhysPVCascadeTools.h index c1561102db7691fc7fbcd2a311956d694943ad03..cc0eb8c7726d013ef9055ecf4927a21e16d2e7c5 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/DerivationFrameworkBPhys/BPhysPVCascadeTools.h +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/DerivationFrameworkBPhys/BPhysPVCascadeTools.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ #ifndef DERIVATIONFRAMEWORK_PVCASCADETOOLS_H @@ -38,7 +38,6 @@ namespace DerivationFramework { typedef ElementLink<xAOD::VertexContainer> VertexLink; typedef std::vector<VertexLink> VertexLinkVector; private: - const Trk::V0Tools *m_v0Tools; const CascadeTools *m_cascadeTools; const InDet::BeamSpotData *m_beamSpotData; diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/BPhysVertexTrackBase.cxx b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/BPhysVertexTrackBase.cxx index 2f2cef79bfca9169fddd8060020ccf6d9264a38e..8ea8e0d31a44dabddb6d57d240c7429faecfb51a 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/BPhysVertexTrackBase.cxx +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/BPhysVertexTrackBase.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ //============================================================================ @@ -362,7 +362,7 @@ namespace DerivationFramework { std::istringstream stream(lines); std::string line; while ( std::getline(stream, line) ) { - if ( !ostr.length() == 0 ) ostr += "\n"; + if ( !ostr.empty() ) ostr += "\n"; ostr += prefix + line; } return ostr; diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/JpsiPlusDsCascade.cxx b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/JpsiPlusDsCascade.cxx index f7d485b75f79fa359ecc2a61aa21cd2597f1f404..78027a049682891936e5aa95f6658bf973f4e7db 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/JpsiPlusDsCascade.cxx +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkBPhys/src/JpsiPlusDsCascade.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ ///////////////////////////////////////////////////////////////// // JpsiPlusDsCascade.cxx, (c) ATLAS Detector software @@ -537,7 +537,7 @@ namespace DerivationFramework { } } - if(abs(m_Dx_pid==411)) { // D+/- + if(abs(m_Dx_pid)==411) { // D+/- SG::AuxElement::Accessor<Char_t> flagAcc1("passed_Dp"); SG::AuxElement::Accessor<Char_t> flagAcc2("passed_Dm"); bool isDp(true);