// Parameters:
// vtxAxis Vertex axis in use
//
+
+ // We temporary disable the displaced vertices so we can initialize
+ // the routine ourselves.
+ Bool_t saveDisplaced = fUseDisplacedVertices;
+ fUseDisplacedVertices = false;
AliFMDEventInspector::SetupForData(vtxAxis);
+ fUseDisplacedVertices = saveDisplaced;
Int_t maxPart = 450;
Int_t maxBin = 225;
fHCentVsMcC->SetYTitle("Centralty derived from Impact Par. [%]");
fHCentVsMcC->SetZTitle("Events");
fList->Add(fHCentVsMcC);
+
+ if (fUseDisplacedVertices) fDisplacedVertex.SetupForData(fList, "", true);
}
//____________________________________________________________________
fHBvsBin->Fill(b, nbin);
if(fUseDisplacedVertices) {
+#if 0
// Put the vertex at fixed locations
Double_t zvtx = vz;
Double_t ratio = zvtx/37.5;
zvtx = 37.5*((Double_t)ratioInt);
if(TMath::Abs(zvtx) > 999)
return kBadVertex;
+#endif
+ if (!fDisplacedVertex.ProcessMC(event))
+ return kBadVertex;
+ if (fDisplacedVertex.IsSatellite())
+ vz = fDisplacedVertex.GetVertexZ();
}
// Check for the vertex bin