Skip to content
Snippets Groups Projects
Commit 313c16a6 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

'Fix coverity warning 108312: dead code.' (CaloLocalHadCalib-00-01-20)

	* Tagging CaloLocalHadCalib-00-01-20.
	* Fix coverity warning 108312: dead code.


Former-commit-id: 0ea5a44c0953f345d52108c493610ad0ea4d4fd3
parent 794ba18a
No related merge requests found
################################################################################
# Package: CaloLocalHadCalib
################################################################################
# Declare the package name:
atlas_subdir( CaloLocalHadCalib )
# Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC
Calorimeter/CaloConditions
Calorimeter/CaloGeoHelpers
Control/AthenaBaseComps
Control/StoreGate
Event/xAOD/xAODCaloEvent
GaudiKernel
PRIVATE
Calorimeter/CaloDetDescr
Calorimeter/CaloDmDetDescr
Calorimeter/CaloEvent
Calorimeter/CaloIdentifier
Calorimeter/CaloSimEvent
Calorimeter/CaloUtils
Control/AthenaKernel
Generators/GeneratorObjects
TestBeam/TBEvent
Tools/PathResolver )
# External dependencies:
find_package( Boost COMPONENTS filesystem thread system )
find_package( CLHEP )
find_package( ROOT COMPONENTS Gpad Graf Core Tree MathCore Hist RIO pthread MathMore Minuit Minuit2 Matrix Physics HistPainter Rint Graf3d Html Postscript Gui GX11TTF GX11 )
# this line failed automatic conversion in cmt2cmake :
# use AtlasReflex AtlasReflex-* External -no_CALOATHENAPOOL_ROOTauto_imports
# Component(s) in the package:
atlas_add_component( CaloLocalHadCalib
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${Boost_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${Boost_LIBRARIES} ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} CaloConditions CaloGeoHelpers AthenaBaseComps StoreGateLib SGtests xAODCaloEvent GaudiKernel CaloDetDescrLib CaloDmDetDescr CaloEvent CaloIdentifier CaloSimEvent CaloUtilsLib AthenaKernel GeneratorObjects TBEvent PathResolver )
atlas_add_dictionary( CaloLocalHadCalibDict
CaloLocalHadCalib/CaloLocalHadCalibDict.h
CaloLocalHadCalib/selection.xml
INCLUDE_DIRS ${Boost_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${Boost_LIBRARIES} ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} CaloConditions CaloGeoHelpers AthenaBaseComps StoreGateLib SGtests xAODCaloEvent GaudiKernel CaloDetDescrLib CaloDmDetDescr CaloEvent CaloIdentifier CaloSimEvent CaloUtilsLib AthenaKernel GeneratorObjects TBEvent PathResolver )
# Install files from the package:
atlas_install_headers( CaloLocalHadCalib )
atlas_install_joboptions( share/*.txt share/*.py )
atlas_install_runtime( share/CaloHadDMCoeff_init_v1.txt share/CaloHadDMCoeff_init_v2.txt )
......@@ -170,7 +170,7 @@ StatusCode GetLCOutOfCluster::initialize() {
<< endreq;
return StatusCode::FAILURE;
}
int nside = (iside>=0?m_dimensions[iside].bins():1);
int nside = m_dimensions[iside].bins();
int nphi = (iphi>=0?m_dimensions[iphi].bins():1);
int nlogE = m_dimensions[ilogE].bins();
m_ooc.resize(nside*nphi*nlogE,0);
......@@ -181,9 +181,9 @@ StatusCode GetLCOutOfCluster::initialize() {
oname += "_iside_";
oname += jside;
oname += "_[";
oname += (iside>=0?m_dimensions[iside].lowEdge():-1);
oname += m_dimensions[iside].lowEdge();
oname += ",";
oname += (iside>=0?m_dimensions[iside].highEdge():-1);
oname += m_dimensions[iside].highEdge();
oname += ",";
oname += nside;
oname += "]";
......
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