]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliEventCut.h
Standarized naming schema for cuts
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventCut.h
CommitLineData
b26900d0 1#ifndef ALIEVENTCUT_H
2#define ALIEVENTCUT_H
3//________________________________
4///////////////////////////////////////////////////////////
5//
0d8a4589 6// class AliEventCut
b26900d0 7//
0d8a4589 8// Event cut. It has list of base event cuts.
9// Each of base event cut checks only one property.
10// Logical base cuts also exists that point to other base cuts.
11// Using them one can build complicated cut with binary tree structure
b26900d0 12//
13///////////////////////////////////////////////////////////
14
0d8a4589 15#include <TObject.h>
16#include <TObjArray.h>
b4fb427e 17#include "AliEventBaseCut.h"
b26900d0 18
a5556ea5 19class AliAOD;
b26900d0 20
21class AliEventCut: public TObject
22{
23 public:
24 AliEventCut();
0d8a4589 25 AliEventCut(const AliEventCut& in);
b26900d0 26 virtual ~AliEventCut();
27
a5556ea5 28 virtual Bool_t Pass(AliAOD* aod) const;//returns kTRUE if rejected
b4fb427e 29 void AddBasePartCut(AliEventBaseCut* ebcut){fBaseCuts.Add(ebcut);}
b26900d0 30
31 protected:
0d8a4589 32 TObjArray fBaseCuts;
b26900d0 33 private:
34 ClassDef(AliEventCut,1)
35};
36
b4fb427e 37class AliEventEmptyCut: public TObject
0d8a4589 38{
39 public:
b4fb427e 40 AliEventEmptyCut(){}
41 virtual ~AliEventEmptyCut(){}
0d8a4589 42
43 Bool_t Pass(AliAOD* aod) const {return kFALSE;}//always accept
44
45 protected:
46 private:
b4fb427e 47 ClassDef(AliEventEmptyCut,1)
0d8a4589 48};
49
b26900d0 50#endif