Skip to content
Snippets Groups Projects
Commit 49968292 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (SiPropertiesSvc-00-00-09)

	* Protection against negative values in pow().
	* Tag as SiPropertiesSvc-00-00-09
parent 139b88a7
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: SiPropertiesSvc
################################################################################
# Declare the package name:
atlas_subdir( SiPropertiesSvc )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Control/AthenaBaseComps
Control/AthenaKernel
GaudiKernel
InnerDetector/InDetDetDescr/InDetReadoutGeometry
PRIVATE
Control/StoreGate
DetectorDescription/Identifier
InnerDetector/InDetConditions/InDetConditionsSummaryService
InnerDetector/InDetDetDescr/InDetIdentifier )
# External dependencies:
find_package( CLHEP )
# Component(s) in the package:
atlas_add_library( SiPropertiesSvcLib
src/*.cxx
PUBLIC_HEADERS SiPropertiesSvc
PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS}
LINK_LIBRARIES AthenaBaseComps AthenaKernel GaudiKernel InDetReadoutGeometry StoreGateLib SGtests
PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} Identifier InDetIdentifier )
atlas_add_component( SiPropertiesSvc
src/components/*.cxx
INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${CLHEP_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel InDetReadoutGeometry StoreGateLib SGtests Identifier InDetIdentifier SiPropertiesSvcLib )
......@@ -147,7 +147,7 @@ SiliconProperties::calcDriftMobility(double electricField, double electricField_
{
// Equation from ATL-INDET-2001-004
return saturationVelocity / electricField_critical /
pow(1. + pow(electricField/electricField_critical, beta), 1./beta);
pow(std::abs(1. + pow(std::abs(electricField/electricField_critical), beta)), 1./beta);
}
double
......
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