Skip to content

Commit

Permalink
add variable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotlins committed May 19, 2015
1 parent 051b539 commit 0ee7f3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 5 additions & 5 deletions DataFormats/SiPixelDetId/src/PixelBarrelName.cc
Expand Up @@ -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--;
Expand Down Expand Up @@ -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();
Expand Down
10 changes: 6 additions & 4 deletions DataFormats/SiPixelDetId/src/PixelEndcapName.cc
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 0ee7f3c

Please sign in to comment.