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 91b9f1a..d6c5982 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