]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix product method
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 14:07:14 +0000 (14:07 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 14:07:14 +0000 (14:07 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLeeYangZeros.cxx

index 91b9f1aecb7610bee78bacaa459a7ad0613dea8c..d6c598225a62e275f780350383695e8cbcbff1ec 100644 (file)
@@ -981,8 +981,8 @@ TComplex AliFlowAnalysisWithLeeYangZeros::GetGrtheta(AliFlowEventSimple* const a
   
   TComplex cG = TComplex::One();
   Double_t dOrder =  2.;
-  Double_t dWgt = 1.;
-  
+  Double_t dWgt = 1./anEvent->GetEventNSelTracksRP(); //weight with the multiplicity
+    
   Int_t iNumberOfTracks = anEvent->NumberOfTracks();
   
   for (Int_t i=0;i<iNumberOfTracks;i++) //loop over tracks in event