fixed tpo
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisCuts.h
CommitLineData
7c38d6ee 1#ifndef ALIANALYSISCUTS_H
2#define ALIANALYSISCUTS_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
1b398ab4 7/* $Id$ */
8
7c38d6ee 9// Base class for analysis cuts
10// Author Andreas Morsch
11// andreas.morsch@cern.ch
12
13#include <TNamed.h>
264ebaac 14class TList;
7c38d6ee 15
16class AliAnalysisCuts : public TNamed
17{
18 public:
19 AliAnalysisCuts();
20 AliAnalysisCuts(const char* name, const char* title);
21 AliAnalysisCuts(const AliAnalysisCuts& obj);
22 virtual ~AliAnalysisCuts() {;}
264ebaac 23 virtual Bool_t IsSelected(TObject* obj) = 0;
24 virtual Bool_t IsSelected(TList* list) = 0;
1b398ab4 25 virtual void Init() {;}
c54360e6 26 virtual void SetFilterMask(UInt_t mask) {fFilterMask = mask;}
a710e44a 27 virtual UInt_t GetFilterMask() const {return fFilterMask;}
28 virtual void SetSelected(Bool_t dec) {fSelected = dec;}
29 virtual UInt_t Selected() const {return fSelected;}
7c38d6ee 30 private:
c54360e6 31 UInt_t fFilterMask; // Mask to use one of the previous decisions inside a filter
a710e44a 32 Bool_t fSelected; // Final decision on selction
c54360e6 33 ClassDef(AliAnalysisCuts, 4); // Base class for filter decisions on ESD objects
7c38d6ee 34};
35
36#endif