X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSPid.cxx;h=8343dbe73934f02650d375c56dab01cec36f0774;hb=29e1d5d808bb99127d490b3570afab87ca511e75;hp=e6a504514de8475d9d9b5f4de0bca47ada4b583b;hpb=6c94f3308e8e21efdd662a43a6a60db688334d59;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSPid.cxx b/ITS/AliITSPid.cxx index e6a504514de..8343dbe7393 100644 --- a/ITS/AliITSPid.cxx +++ b/ITS/AliITSPid.cxx @@ -17,30 +17,34 @@ ClassImp(AliITSPid) -AliITSPid::AliITSPid(const AliITSPid &source) : TObject(source){ +AliITSPid::AliITSPid(const AliITSPid &source) : TObject(source), +fMxtrs(source.fMxtrs), +fTrs(source.fTrs), +fWpi(source.fWpi), +fWk(source.fWk), +fWp(source.fWp), +fRpik(source.fRpik), +fRppi(source.fRppi), +fRpka(source.fRpka), +fRp(source.fRp), +fPcode(source.fPcode), +fSigmin(source.fSigmin), +fSilent(source.fSilent), +fCutKa(source.fCutKa), +fCutPr(source.fCutPr), +fggpi(source.fggpi), +fggka(source.fggka), +fggpr(source.fggpr){ // Copy constructor. This is a function which is not allowed to be - // done: protected It exits with an error. - // Inputs: - // AliITSPid &source An AliITSPid class. - // Outputs: - // none. - // Return: - // none. - Error("AliITSPid","You are not allowed to make a copy of the AliITSPid\n"); + } + //______________________________________________________________________ -AliITSPid& AliITSPid::operator=(const AliITSPid& /* source */){ - // Assignment operator. This is a function which is not allowed to be - // done to the ITS. It exits with an error. - // Inputs: - // AliITSPid &source An AliITSPid class. - // Outputs: - // none. - // Return: - // none. - - Error("=operator","Assignment operator not allowed for this class\n"); +AliITSPid& AliITSPid::operator=(const AliITSPid& source){ + // Assignment operator. This is a function which is not allowed to be + this->~AliITSPid(); + new(this) AliITSPid(source); return *this; } @@ -239,9 +243,14 @@ Int_t AliITSPid::GetPcode(Float_t q,Float_t pm) else{return Proton();} } } - if ( pm<=0.750 ) - if ( q>fCutPr->Eval(pm) ) - {return Proton();} else {return Wpik(pm,q);}; + if ( pm<=0.750 ){ + if ( q>fCutPr->Eval(pm) ){ + return Proton(); + } + else { + return Wpik(pm,q); + } + } if( pm<=1.10 ){ return Wpikp(pm,q); } return fPcode; } @@ -325,46 +334,46 @@ cout<GetEntries()==0){cout<<"No entries in TAB"<GetEntries();i++) -{ - TVector xx( *((TVector*)fTrs->At(i)) ); - if( xx.IsValid() && xx(0)>0 ) + if(fTrs->GetEntries()==0){cout<<"No entries in TAB"<GetEntries();i++) + { + TVector xxx( *((TVector*)fTrs->At(i)) ); + if( xxx.IsValid() && xxx(0)>0 ) { - TVector xx( *((TVector*)fTrs->At(i)) ); - if(xx(0)>=2) - { -// 1)Calculate Qtrm - xx(6)=(this->Qtrm(i)); + TVector xx( *((TVector*)fTrs->At(i)) ); + if(xx(0)>=2) + { + // 1)Calculate Qtrm + xx(6)=(this->Qtrm(i)); - }else{ - xx(6)=xx(1); - } -// 2)Calculate Wpi,Wk,Wp - this->GetPcode(xx(6),xx(10)/1000.); - xx(7)=GetWpi(); - xx(8)=GetWk(); - xx(9)=GetWp(); -// 3)Print table - if(xx(0)>0){ -// cout<7){ cout.width(7);cout.precision(5);cout<GetPcode(xx(6),xx(10)/1000.); + xx(7)=GetWpi(); + xx(8)=GetWk(); + xx(9)=GetWp(); + // 3)Print table + if(xx(0)>0){ + // cout<7){ cout.width(7);cout.precision(5);cout<SetParameters(ka);