]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliEventCut.h
Correct assocation of tracks to clusters (G. Conesa)
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventCut.h
CommitLineData
b26900d0 1#ifndef ALIEVENTCUT_H
2#define ALIEVENTCUT_H
0206ddfb 3
b26900d0 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
0206ddfb 12// Author: Piotr.Skowronski@cern.ch
b26900d0 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
cea0a066 28 virtual Bool_t Rejected(AliAOD* aod) const;//returns kTRUE if rejected
a94c0b01 29 void AddBasePartCut(AliEventBaseCut* ebcut);
30
31 void SetNChargedRange(Int_t min,Int_t max, Double_t etamin = -10.0,Double_t etamax = 10.0);
0a4cc279 32 void SetVertexXRange(Double_t min, Double_t max);
33 void SetVertexYRange(Double_t min, Double_t max);
34 void SetVertexZRange(Double_t min, Double_t max);
b26900d0 35
36 protected:
41d658c5 37 AliEventBaseCut* FindCut(AliEventBaseCut::EEventCutProperty prop);
a94c0b01 38
0206ddfb 39 TObjArray fBaseCuts; // Array of cuts
b26900d0 40 private:
41 ClassDef(AliEventCut,1)
42};
43
b4fb427e 44class AliEventEmptyCut: public TObject
0d8a4589 45{
46 public:
b4fb427e 47 AliEventEmptyCut(){}
48 virtual ~AliEventEmptyCut(){}
0d8a4589 49
41d658c5 50 Bool_t Rejected(AliAOD* /*aod*/) const {return kFALSE;}//always accept
0d8a4589 51
52 protected:
53 private:
b4fb427e 54 ClassDef(AliEventEmptyCut,1)
0d8a4589 55};
56
b26900d0 57#endif