- printf("%s: The number of particles in the selected kinematic region corresponds to %f percent of a full event\n ",
- ClassName(),100.*fParentWeight);
+ fParentWeight = (intETASel*ptFrac*phiFrac) / Float_t(fNpart);
+
+ if (fAnalog != 0) {
+ fPtWgtPi = (fPtMax - fPtMin) / fPtpi->Integral(0., 20.);
+ fPtWgtKa = (fPtMax - fPtMin) / fPtka->Integral(0., 20.);
+ fParentWeight = (intETASel*phiFrac) / Float_t(fNpart);
+ }
+
+
+ AliInfo(Form("The number of particles in the selected kinematic region corresponds to %f percent of a full event",
+ 100./ fParentWeight));