First prototype the analysis framework
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventCut.cxx
1 #include "AliEventCut.h"
2 //________________________________
3 ///////////////////////////////////////////////////////////
4 //
5 // class AliRunAnalysis
6 //
7 //
8 //
9 //
10 ///////////////////////////////////////////////////////////
11
12 #include <TObjArray.h>
13 //#include <TIter.h>
14
15 #include "AliBaseEventCut.h"
16
17 AliEventCut::AliEventCut():
18  fBaseCuts(0x0)
19 {
20 //costructor
21
22 }
23 /*********************************************************/
24
25 AliEventCut::~AliEventCut()
26 {
27 //costructor
28  delete fBaseCuts;
29 }
30
31 /*********************************************************/
32
33 Bool_t AliEventCut::Pass(AliESD* esd) const
34 {
35   //returns kTRUE if rejected
36   TIter iter(fBaseCuts);
37   AliBaseEventCut* becut;
38   while (( becut = (AliBaseEventCut*)iter() ))
39    {
40      if (becut->Pass(esd)) return kTRUE;
41    }
42   return kFALSE;
43 }