X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSsegmentationSSD.cxx;h=a6d03d6e6fb6ceb9707b9b72044b68e6a0b474f6;hb=d76f7bac0152ba58dd3a1f18e73dd5d8ca47bc91;hp=679d3ee087bfa9671cfc386760323f9a3a691996;hpb=55d2c544edf88fcc47f5c5a20ab560f38fc419c4;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSsegmentationSSD.cxx b/ITS/AliITSsegmentationSSD.cxx index 679d3ee087b..a6d03d6e6fb 100644 --- a/ITS/AliITSsegmentationSSD.cxx +++ b/ITS/AliITSsegmentationSSD.cxx @@ -31,11 +31,29 @@ const Float_t AliITSsegmentationSSD::fgkPitchDefault = 95.; const Int_t AliITSsegmentationSSD::fgkNstripsDefault = 768; ClassImp(AliITSsegmentationSSD) -AliITSsegmentationSSD::AliITSsegmentationSSD(): AliITSsegmentation(){ +AliITSsegmentationSSD::AliITSsegmentationSSD(): AliITSsegmentation(), +fNstrips(0), +fStereoP(0), +fStereoN(0), +fPitch(0), +fStereoPl5(0), +fStereoNl5(0), +fStereoPl6(0), +fStereoNl6(0), +fLayer(0){ // default constructor } //---------------------------------------------------------------------- -AliITSsegmentationSSD::AliITSsegmentationSSD(AliITSgeom *geom){ +AliITSsegmentationSSD::AliITSsegmentationSSD(AliITSgeom *geom): +fNstrips(0), +fStereoP(0), +fStereoN(0), +fPitch(0), +fStereoPl5(0), +fStereoNl5(0), +fStereoPl6(0), +fStereoNl6(0), +fLayer(0){ // constuctor fGeom = geom; fCorr = 0; @@ -75,7 +93,16 @@ AliITSsegmentationSSD& AliITSsegmentationSSD::operator=( } //______________________________________________________________________ AliITSsegmentationSSD::AliITSsegmentationSSD(const AliITSsegmentationSSD &source): - AliITSsegmentation(source){ + AliITSsegmentation(source), +fNstrips(0), +fStereoP(0), +fStereoN(0), +fPitch(0), +fStereoPl5(0), +fStereoNl5(0), +fStereoPl6(0), +fStereoNl6(0), +fLayer(0){ // copy constructor source.Copy(*this); } @@ -212,7 +239,7 @@ void AliITSsegmentationSSD::GetPadCxz(Int_t iP,Int_t iN,Float_t &x,Float_t &z) c return; } //______________________________________________________________________ -void AliITSsegmentationSSD::LocalToDet(Float_t x,Float_t z, +Bool_t AliITSsegmentationSSD::LocalToDet(Float_t x,Float_t z, Int_t &iP,Int_t &iN) const { // Transformation from Geant cm detector center local coordinates // to detector P and N side strip numbers.. @@ -247,7 +274,7 @@ void AliITSsegmentationSSD::LocalToDet(Float_t x,Float_t z, // Now for N side) iN = (Int_t) z; if(iN<0 || iN>=fNstrips) iN=-1; // strip number must be in range. - return; + return kTRUE; } //---------------------------------------------------------------------- void AliITSsegmentationSSD::DetToLocal(Int_t ix,Int_t iPN,