From 0ee7f3c920ea29fdee6397bd3f012451f46f2bc4 Mon Sep 17 00:00:00 2001 From: danek kotlinski Date: Tue, 19 May 2015 15:58:36 +0200 Subject: [PATCH] add variable initialization --- DataFormats/SiPixelDetId/src/PixelBarrelName.cc | 10 +++++----- DataFormats/SiPixelDetId/src/PixelEndcapName.cc | 10 ++++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/DataFormats/SiPixelDetId/src/PixelBarrelName.cc b/DataFormats/SiPixelDetId/src/PixelBarrelName.cc index 550041754afe9..e13f622b068b5 100644 --- a/DataFormats/SiPixelDetId/src/PixelBarrelName.cc +++ b/DataFormats/SiPixelDetId/src/PixelBarrelName.cc @@ -21,8 +21,8 @@ namespace { } PixelBarrelName::PixelBarrelName(const DetId & id, const TrackerTopology* tt, bool phase) - : PixelModuleName(true), phase1(phase) -{ + : PixelModuleName(true), thePart(mO), theLayer(0), + theModule(0), theLadder(0), phase1(phase) { theLayer = tt->pxbLayer(id); int oldModule = tt->pxbModule(id) -4; if (oldModule<=0) oldModule--; @@ -54,10 +54,10 @@ PixelBarrelName::PixelBarrelName(const DetId & id, const TrackerTopology* tt, bo } PixelBarrelName::PixelBarrelName(const DetId & id, bool phase) - : PixelModuleName(true), phase1(phase) -{ + : PixelModuleName(true), thePart(mO), theLayer(0), + theModule(0), theLadder(0), phase1(phase) { -// uint32_t rawId = id.rawId(); + // uint32_t rawId = id.rawId(); PXBDetId cmssw_numbering(id); theLayer = cmssw_numbering.layer(); diff --git a/DataFormats/SiPixelDetId/src/PixelEndcapName.cc b/DataFormats/SiPixelDetId/src/PixelEndcapName.cc index e81da045686ea..9bd807894ba72 100644 --- a/DataFormats/SiPixelDetId/src/PixelEndcapName.cc +++ b/DataFormats/SiPixelDetId/src/PixelEndcapName.cc @@ -12,8 +12,9 @@ namespace { // Decodes the pixel name from the cmssw DetID, uses tracker topology PixelEndcapName::PixelEndcapName(const DetId & id, const TrackerTopology* tt, bool phase) - : PixelModuleName(false), phase1(phase) -{ + : PixelModuleName(false), thePart(mO), theDisk(0), + theBlade(0), thePannel(0), thePlaquette(0), phase1(phase) { + //PXFDetId cmssw_numbering(id); int side = tt->pxfSide(id); @@ -94,8 +95,9 @@ PixelEndcapName::PixelEndcapName(const DetId & id, const TrackerTopology* tt, bo // Decodes the pixel name from the cmssw DetID, uses old pixel name classes PixelEndcapName::PixelEndcapName(const DetId & id, bool phase) - : PixelModuleName(false), phase1(phase) -{ + : PixelModuleName(false), thePart(mO), theDisk(0), + theBlade(0), thePannel(0), thePlaquette(0), phase1(phase) { + PXFDetId cmssw_numbering(id); int side = cmssw_numbering.side(); int tmpBlade = cmssw_numbering.blade();