]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSdEdxSamples.cxx
store also difference in local Y
[u/mrichter/AliRoot.git] / ITS / AliITSdEdxSamples.cxx
index 271d7c422721899e19e8fbc52a766b1e7814b268..a7dfa778461ca48236e3dcbe68fb6f7c735cbe64 100644 (file)
@@ -78,6 +78,24 @@ AliITSdEdxSamples::AliITSdEdxSamples(const AliITSdEdxSamples& source) :
     fPAtSample[i]=source.GetMomentumAtSample(i);
   }
 }
+//_____________________________________________________________________________
+AliITSdEdxSamples& AliITSdEdxSamples::operator=(const AliITSdEdxSamples &source){
+  // Assignment operator
+ if(this==&source) return *this;
+  ((TObject *)this)->operator=(source);
+  fNSamples = source.fNSamples;
+  fClusterMap = source.fClusterMap;
+  fP = source.fP;
+  fParticleSpecie = source.fParticleSpecie;
+  fLayersForPid = source.fLayersForPid;
+  for(Int_t i=0; i<kMaxSamples; i++){
+    fdESamples[i]=source.GetdESample(i);
+    fdxSamples[i]=source.GetdxSample(i);
+    fPAtSample[i]=source.GetMomentumAtSample(i);
+  }
+  return *this;
+}
+
 //______________________________________________________________________
 void AliITSdEdxSamples::SetdESamples(Int_t nSamples, Double_t* samples){
   // Set the samples
@@ -200,7 +218,7 @@ Double_t AliITSdEdxSamples::GetWeightedMean(Double_t mindedx) const {
 
 }
 //______________________________________________________________________
-void  AliITSdEdxSamples::GetConditionalProbabilities(AliITSPidParams* pars, Double_t condprob[AliPID::kSPECIES], Double_t mindedx) const {
+void  AliITSdEdxSamples::GetConditionalProbabilities(const AliITSPidParams* pars, Double_t condprob[AliPID::kSPECIES], Double_t mindedx) const {
   // compute conditional probablilities
   const Int_t nPart = 3;
   Double_t itsProb[nPart] = {1,1,1}; // p, K, pi