]>
Commit | Line | Data |
---|---|---|
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 "AliEventBaseCut.h" | |
16 | ||
17 | ClassImp(AliEventCut) | |
18 | ||
19 | ||
20 | AliEventCut::AliEventCut(): | |
21 | fBaseCuts(10) | |
22 | { | |
23 | //costructor | |
24 | ||
25 | } | |
26 | /*********************************************************/ | |
27 | AliEventCut::AliEventCut(const AliEventCut& in): | |
28 | TObject(in), | |
29 | fBaseCuts(in.fBaseCuts) | |
30 | { | |
31 | //cpy ctor | |
32 | fBaseCuts.SetOwner(kTRUE); | |
33 | } | |
34 | /*********************************************************/ | |
35 | ||
36 | AliEventCut::~AliEventCut() | |
37 | { | |
38 | //costructor | |
39 | } | |
40 | ||
41 | /*********************************************************/ | |
42 | ||
43 | Bool_t AliEventCut::Pass(AliAOD* aod) const | |
44 | { | |
45 | //returns kTRUE if rejected | |
46 | if (aod == 0x0) | |
47 | { | |
48 | Error("Pass","Pointer to AOD is NULL. Not passed the cut"); | |
49 | return kFALSE; | |
50 | } | |
51 | ||
52 | TIter iter(&fBaseCuts); | |
53 | AliEventBaseCut* becut; | |
54 | while (( becut = (AliEventBaseCut*)iter() )) | |
55 | { | |
56 | if (becut->Pass(aod)) return kTRUE; | |
57 | } | |
58 | return kFALSE; | |
59 | } | |
60 | ||
61 | /*********************************************************/ | |
62 | /*********************************************************/ | |
63 | /*********************************************************/ | |
64 | ||
65 | ClassImp(AliEventEmptyCut) |