From 41d658c597075d10e77b8d60d2d66ba3f5a0847b Mon Sep 17 00:00:00 2001 From: skowron Date: Mon, 5 Jul 2004 17:04:08 +0000 Subject: [PATCH] Cut Property enum moved to BaseCut -> Not to pollute global name space --- ANALYSIS/AliEventBaseCut.h | 14 +++++--------- ANALYSIS/AliEventCut.cxx | 6 +++--- ANALYSIS/AliEventCut.h | 6 +++--- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/ANALYSIS/AliEventBaseCut.h b/ANALYSIS/AliEventBaseCut.h index 9ba71a4b377..fecd991f3ad 100644 --- a/ANALYSIS/AliEventBaseCut.h +++ b/ANALYSIS/AliEventBaseCut.h @@ -15,18 +15,14 @@ class AliAOD; -enum EEventCutProperty - { - kPrimVertexXCut, - kPrimVertexYCut, - kPrimVertexZCut, - kNChargedCut, - kNone - }; - class AliEventBaseCut: public TObject { public: + enum EEventCutProperty { + kPrimVertexXCut,kPrimVertexYCut,kPrimVertexZCut, + kNChargedCut,kNone + }; + AliEventBaseCut(); AliEventBaseCut(Double_t min,Double_t max, EEventCutProperty prop = kNone); virtual ~AliEventBaseCut(){} diff --git a/ANALYSIS/AliEventCut.cxx b/ANALYSIS/AliEventCut.cxx index af3cb707586..fc32fa12f1e 100644 --- a/ANALYSIS/AliEventCut.cxx +++ b/ANALYSIS/AliEventCut.cxx @@ -67,7 +67,7 @@ void AliEventCut::AddBasePartCut(AliEventBaseCut* ebcut) return; } - if (ebcut->GetProperty() != kNone) + if (ebcut->GetProperty() != AliEventBaseCut::kNone) { if (FindCut(ebcut->GetProperty())) { @@ -80,7 +80,7 @@ void AliEventCut::AddBasePartCut(AliEventBaseCut* ebcut) } /*********************************************************/ -AliEventBaseCut* AliEventCut::FindCut(EEventCutProperty prop) +AliEventBaseCut* AliEventCut::FindCut(AliEventBaseCut::EEventCutProperty prop) { //Finds and returns pointer to the cut with given property Int_t n = fBaseCuts.GetEntries(); @@ -99,7 +99,7 @@ AliEventBaseCut* AliEventCut::FindCut(EEventCutProperty prop) void AliEventCut::SetNChargedRange(Int_t min,Int_t max,Double_t etamin,Double_t etamax) { //Sets renge of number of charged particles - AliNChargedCut* cut = dynamic_cast(FindCut(kNChargedCut)); + AliNChargedCut* cut = dynamic_cast(FindCut(AliEventBaseCut::kNChargedCut)); if(cut) { cut->SetRange(min,max); diff --git a/ANALYSIS/AliEventCut.h b/ANALYSIS/AliEventCut.h index 7c45ba78f70..ec03a6c44c4 100644 --- a/ANALYSIS/AliEventCut.h +++ b/ANALYSIS/AliEventCut.h @@ -17,7 +17,7 @@ #include "AliEventBaseCut.h" class AliAOD; -enum EEventCutProperty; +enum AliEventBaseCut::EEventCutProperty; class AliEventCut: public TObject { @@ -32,7 +32,7 @@ class AliEventCut: public TObject void SetNChargedRange(Int_t min,Int_t max, Double_t etamin = -10.0,Double_t etamax = 10.0); protected: - AliEventBaseCut* FindCut(EEventCutProperty prop); + AliEventBaseCut* FindCut(AliEventBaseCut::EEventCutProperty prop); TObjArray fBaseCuts; private: @@ -45,7 +45,7 @@ class AliEventEmptyCut: public TObject AliEventEmptyCut(){} virtual ~AliEventEmptyCut(){} - Bool_t Rejected(AliAOD* aod) const {return kFALSE;}//always accept + Bool_t Rejected(AliAOD* /*aod*/) const {return kFALSE;}//always accept protected: private: -- 2.39.3