]>
Commit | Line | Data |
---|---|---|
b26900d0 | 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 | ||
a5556ea5 | 33 | Bool_t AliEventCut::Pass(AliAOD* aod) const |
b26900d0 | 34 | { |
35 | //returns kTRUE if rejected | |
a5556ea5 | 36 | if (aod == 0x0) |
37 | { | |
38 | Error("Pass","Pointer to AOD is NULL. Not passed the cut"); | |
39 | return kFALSE; | |
40 | } | |
41 | ||
b26900d0 | 42 | TIter iter(fBaseCuts); |
43 | AliBaseEventCut* becut; | |
44 | while (( becut = (AliBaseEventCut*)iter() )) | |
45 | { | |
a5556ea5 | 46 | if (becut->Pass(aod)) return kTRUE; |
b26900d0 | 47 | } |
48 | return kFALSE; | |
49 | } |