}
else fBaseCuts.Add(new AliNChargedCut(min,max,etamin,etamax));
}
+/*********************************************************/
+
+void AliEventCut::SetVertexXRange(Int_t min,Int_t max)
+{
+ //Sets range of z coordinate of a primary vertex
+ AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexXCut);
+ if (cut) cut->SetRange(min,max);
+ else fBaseCuts.Add(new AliPrimVertexXCut(min,max));
+}
+/*********************************************************/
+void AliEventCut::SetVertexYRange(Int_t min,Int_t max)
+{
+ //Sets range of z coordinate of a primary vertex
+ AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexYCut);
+ if (cut) cut->SetRange(min,max);
+ else fBaseCuts.Add(new AliPrimVertexYCut(min,max));
+}
+/*********************************************************/
+
+void AliEventCut::SetVertexZRange(Int_t min,Int_t max)
+{
+ //Sets range of z coordinate of a primary vertex
+ AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexZCut);
+ if (cut) cut->SetRange(min,max);
+ else fBaseCuts.Add(new AliPrimVertexZCut(min,max));
+}
/*********************************************************/
/*********************************************************/
/*********************************************************/
void AddBasePartCut(AliEventBaseCut* ebcut);
void SetNChargedRange(Int_t min,Int_t max, Double_t etamin = -10.0,Double_t etamax = 10.0);
+ void SetVertexXRange(Int_t min,Int_t max);
+ void SetVertexYRange(Int_t min,Int_t max);
+ void SetVertexZRange(Int_t min,Int_t max);
protected:
AliEventBaseCut* FindCut(AliEventBaseCut::EEventCutProperty prop);