]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSsegmentationSPD.cxx
Preliminary patchwork of measured and calculated field maps.
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSPD.cxx
index 1fcf0a47c6cbb16d44185a5253863562e82979e0..f1f1d2eb1ce59acac1e25569e813d78f2a975bf9 100644 (file)
 ClassImp(AliITSsegmentationSPD)
 
 //_____________________________________________________________________________
-  AliITSsegmentationSPD::AliITSsegmentationSPD(): AliITSsegmentation(){
+  AliITSsegmentationSPD::AliITSsegmentationSPD(): AliITSsegmentation(),
+fNpx(0),
+fNpz(0){
   // Default constructor
-  fNpx = 0;
-  fNpz = 0;
   for(Int_t k=0; k<256; k++){
     fCellSizeX[k] = 0.;
     fCellSizeZ[k] = 0.;
@@ -188,11 +188,11 @@ Float_t AliITSsegmentationSPD::ZpitchFromCol(Int_t col) const {
     return pitchz;
 }
 //______________________________________________________________________
-AliITSsegmentationSPD::AliITSsegmentationSPD(AliITSgeom *gm){
+AliITSsegmentationSPD::AliITSsegmentationSPD(AliITSgeom *gm):
+fNpx(0),
+fNpz(0){
   // Constructor
    fCorr=0;
-   fNpx = 0;
-   fNpz = 0;
    Init(); 
    fGeom = gm;
 
@@ -219,7 +219,9 @@ AliITSsegmentationSPD& AliITSsegmentationSPD::operator=(const AliITSsegmentation
 }
 //____________________________________________________________________________
 AliITSsegmentationSPD::AliITSsegmentationSPD(const AliITSsegmentationSPD &source) :
-    AliITSsegmentation(source){
+    AliITSsegmentation(source),
+fNpx(0),
+fNpz(0){
   // copy constructor
   source.Copy(*this);
 }