X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSstatistics.cxx;h=90b4ef3e11d514b99a9aabe0e15dba32e3f2eb41;hb=2b00f997fb1be174b0b2bb49ccbda148713f0b86;hp=6ec5d7692268d59b8495436347564b641c85b384;hpb=e81897071a6c895e2796d84a2531f1385a0a1017;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSstatistics.cxx b/ITS/AliITSstatistics.cxx index 6ec5d769226..90b4ef3e11d 100644 --- a/ITS/AliITSstatistics.cxx +++ b/ITS/AliITSstatistics.cxx @@ -15,27 +15,28 @@ ClassImp(AliITSstatistics) // -AliITSstatistics::AliITSstatistics() : TObject(){ +AliITSstatistics::AliITSstatistics() : TObject(), +fN(0), +fOrder(0), +fX(0), +fW(0){ // // default contructor // - fx = 0; - fw = 0; - fN = 0; - fOrder = 0; - return; } -AliITSstatistics::AliITSstatistics(Int_t order) : TObject(){ +AliITSstatistics::AliITSstatistics(Int_t order) : TObject(), +fN(0), +fOrder(order), +fX(0), +fW(0){ // // contructor to a specific order in the moments // - fOrder = order; - fx = new Double_t[order]; - fw = new Double_t[order]; - for(Int_t i=0;ifOrder = source.fOrder; this->fN = source.fN; - this->fx = new Double_t[this->fOrder]; - this->fw = new Double_t[this->fOrder]; + this->fX = new Double_t[this->fOrder]; + this->fW = new Double_t[this->fOrder]; for(Int_t i=0;ifx[i] = source.fx[i]; - this->fw[i] = source.fw[i]; + this->fX[i] = source.fX[i]; + this->fW[i] = source.fW[i]; } // end for i }else{ - this->fx = 0; - this->fw = 0; + this->fX = 0; + this->fW = 0; this->fN = 0; this->fOrder = 0; }// end if source.fOrder!=0 return *this; } //_______________________________________________________________ -AliITSstatistics::AliITSstatistics(AliITSstatistics &source){ +AliITSstatistics::AliITSstatistics(const AliITSstatistics &source) : TObject(source), +fN(0), +fOrder(0), +fX(0), +fW(0){ // Copy constructor if(this==&source) return; if(source.fOrder!=0){ this->fOrder = source.fOrder; this->fN = source.fN; - this->fx = new Double_t[this->fOrder]; - this->fw = new Double_t[this->fOrder]; + this->fX = new Double_t[this->fOrder]; + this->fW = new Double_t[this->fOrder]; for(Int_t i=0;ifx[i] = source.fx[i]; - this->fw[i] = source.fw[i]; + this->fX[i] = source.fX[i]; + this->fW[i] = source.fW[i]; } // end for i }else{ - this->fx = 0; - this->fw = 0; + this->fX = 0; + this->fW = 0; this->fN = 0; this->fOrder = 0; }// end if source.fOrder!=0 @@ -98,7 +103,7 @@ void AliITSstatistics::Reset(){ // // reset all values to zero // - for(Int_t i=0;i> fN; - R__b >> fOrder; - R__b.ReadArray(fx); - R__b.ReadArray(fw); - } else { - R__b.WriteVersion(AliITSstatistics::IsA()); - TObject::Streamer(R__b); - R__b << fN; - R__b << fOrder; - R__b.WriteArray(fx,fOrder); - R__b.WriteArray(fw,fOrder); - } -}