Bool_t AliEventBaseCut::Rejected(AliAOD* aod) const
{
- if ( (GetValue(aod) < fMin) || (GetValue(aod) > fMax) ) return kTRUE;
+//Checks if value is in the range,
+// returns true if it is in the range, false otherwise
+ Double_t v = GetValue(aod);
+// Info("Rejected","Value %f Min %f Max %f",v,fMin,fMax);
+ if ( ( v < fMin) || ( v > fMax) ) return kTRUE;
return kFALSE;
}
/**********************************************************/
{
public:
AliNChargedCut():AliEventBaseCut(0,0,kNChargedCut){}
- AliNChargedCut(Double_t min, Double_t max, Double_t etamin = -10.0, Double_t etamax = 10.0):
+ AliNChargedCut(Int_t min, Int_t max, Double_t etamin = -10.0, Double_t etamax = 10.0):
AliEventBaseCut(min,max,kNChargedCut),fEtaMin(etamin),fEtaMax(etamax){}
virtual ~AliNChargedCut(){}
}
/*********************************************************/
-void AliEventCut::SetVertexXRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexXRange(Double_t min, Double_t max)
{
//Sets range of z coordinate of a primary vertex
AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexXCut);
}
/*********************************************************/
-void AliEventCut::SetVertexYRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexYRange(Double_t min, Double_t max)
{
//Sets range of z coordinate of a primary vertex
AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexYCut);
}
/*********************************************************/
-void AliEventCut::SetVertexZRange(Int_t min,Int_t max)
+void AliEventCut::SetVertexZRange(Double_t min, Double_t max)
{
//Sets range of z coordinate of a primary vertex
AliEventBaseCut* cut = FindCut(AliEventBaseCut::kPrimVertexZCut);
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);
+ void SetVertexXRange(Double_t min, Double_t max);
+ void SetVertexYRange(Double_t min, Double_t max);
+ void SetVertexZRange(Double_t min, Double_t max);
protected:
AliEventBaseCut* FindCut(AliEventBaseCut::EEventCutProperty prop);