fMeanXY=0;
fMeanXParts=0;
fMeanYParts=0;
+ fMeanXColl=0;
+ fMeanYColl=0;
+ fMeanX2Coll=0;
+ fMeanY2Coll=0;
+ fMeanXYColl=0;
fMeanXSystem=0;
fMeanYSystem=0;
fMeanX_A=0;
Double_t AliGlauberMC::GetEccentricityPart() const
{
//get participant eccentricity of participants
+ if (fNpart<2) return 0.0;
return (TMath::Sqrt((fSy2-fSx2)*(fSy2-fSx2)+4*fSxy*fSxy)/(fSy2+fSx2));
}
Double_t AliGlauberMC::GetEccentricityPartColl() const
{
//get participant eccentricity of binary collisions
+ if (fNcoll<2) return 0.0;
+ printf("fSx2Coll: %.10f\n",fSx2Coll);
+ printf("fSy2Coll: %.10f\n",fSy2Coll);
return (TMath::Sqrt((fSy2Coll-fSx2Coll)*(fSy2Coll-fSx2Coll)+4*fSxyColl*fSxyColl)/(fSy2Coll+fSx2Coll));
}
u++;
continue;
}
+
q++;
Float_t v[25];
v[0] = GetNpart();
// gROOT->LoadMacro("$ALICE_ROOT/PWG2/FLOW/AliFlowTools/glauberMC/AliGlauberNucleus.cxx+");
// gROOT->LoadMacro("$ALICE_ROOT/PWG2/FLOW/AliFlowTools/glauberMC/AliGlauberMC.cxx+");
+ //set the random seed from current time
+ TTimeStamp time;
+ Int_t seed = time->GetSec();
+ gRandom->SetSeed(seed);
+
Int_t nevents = 10000; // number of events to simulate
// supported systems are e.g. "p", "d", "Si", "Au", "Pb", "U"
Option_t *sysA="Pb";