Commit 885bfd1d authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (VxJetVertex-00-04-03)

	* Fix Coverity issues 13164,12359,12360
	* tag as VxJetVertex-00-04-03
parent da27980b
################################################################################
# Package: VxJetVertex
################################################################################
# Declare the package name:
atlas_subdir( VxJetVertex )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Event/EventPrimitives
GaudiKernel
Tracking/TrkEvent/TrkEventPrimitives
Tracking/TrkEvent/TrkParticleBase
Tracking/TrkEvent/TrkTrack
Tracking/TrkEvent/TrkTrackLink
Tracking/TrkEvent/VxVertex
PRIVATE
Control/DataModel )
# External dependencies:
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_library( VxJetVertex
src/*.cxx
PUBLIC_HEADERS VxJetVertex
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES EventPrimitives GaudiKernel TrkEventPrimitives TrkParticleBase TrkTrack VxVertex
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} DataModel )
atlas_add_dictionary( VxJetVertexDict
VxJetVertex/VxJetVertexDict.h
VxJetVertex/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} EventPrimitives GaudiKernel TrkEventPrimitives TrkParticleBase TrkTrack VxVertex DataModel VxJetVertex )
......@@ -105,7 +105,7 @@ namespace Trk {
std::cout << "FATAL: VertexPositions is not able to return a valid position " <<
" as a const object: need to go from Update to Use mode. Unrecovered Bug!" << std::endl;
throw;
return m_position;
// return m_position;
}
......
......@@ -198,7 +198,9 @@ namespace Trk {
ITrackLink* IlinkTT=(*tracksIter)->trackOrParticleLink();
LinkToTrack* linkTT=dynamic_cast<LinkToTrack*>(IlinkTT);
linkTT->setStorableObject(*trackTES);
if(linkTT) {
linkTT->setStorableObject(*trackTES);
}
(*tracksIter)->setOrigTrack(linkTT);
}
......@@ -215,7 +217,9 @@ namespace Trk {
ITrackLink* IlinkTT=(*tracksIter)->trackOrParticleLink();
LinkToTrackParticleBase* linkTT=dynamic_cast<LinkToTrackParticleBase*>(IlinkTT);
linkTT->setStorableObject(*trackParticleTES);
if(linkTT) {
linkTT->setStorableObject(*trackParticleTES);
}
(*tracksIter)->setOrigTrack(linkTT);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment