]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTLLWeightTheorFctn.cxx
Speed optimization: LLWeight bufferred
[u/mrichter/AliRoot.git] / HBTAN / AliHBTLLWeightTheorFctn.cxx
index 5e961405f914a1a8c7688e5c671654d707d896bf..515ab870f97d8f2afb64b322ff1597647e05baa3 100644 (file)
@@ -8,7 +8,6 @@
 //-----------------------------------------------------------
 
 #include "AliHBTLLWeightTheorFctn.h"
-#include "AliHBTLLWeights.h"
 
 //--for test--AliHBTLLWeightQInvFctn* yyy= new AliHBTLLWeightQInvFctn();
 /*************************************************************/
@@ -32,7 +31,7 @@ void  AliHBTLLWeightTheorQInvFctn::ProcessSameEventParticles(AliHBTPair* partpai
   //Processes Particles and tracks Same different even
   partpair  = CheckPair(partpair);
   if (partpair == 0x0) return;
-  Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+  Double_t weight = partpair->GetLLWeight();
   if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQInv(),weight);
 } 
 
@@ -64,7 +63,7 @@ void  AliHBTLLWeightTheorQOutFctn::ProcessSameEventParticles(AliHBTPair* partpai
   //Processes Particles and tracks Same different even
   partpair  = CheckPair(partpair);
   if (partpair == 0x0) return;
-  Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+  Double_t weight = partpair->GetLLWeight();
   if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQOutCMSLC(),weight);
 } 
 
@@ -96,7 +95,7 @@ void  AliHBTLLWeightTheorQSideFctn::ProcessSameEventParticles(AliHBTPair* partpa
   //Processes Particles and tracks Same different even
   partpair  = CheckPair(partpair);
   if (partpair == 0x0) return;
-  Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+  Double_t weight = partpair->GetLLWeight();
   if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQSideCMSLC(),weight);
 } 
 
@@ -128,7 +127,7 @@ void  AliHBTLLWeightTheorQLongFctn::ProcessSameEventParticles(AliHBTPair* partpa
   //Processes Particles and tracks Same different even
   partpair  = CheckPair(partpair);
   if (partpair == 0x0) return;
-  Double_t weight = AliHBTLLWeights::Instance()->GetWeight(partpair);
+  Double_t weight = partpair->GetLLWeight();
   if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQLongCMSLC(),weight);
 }