Merge branch 'multipleThreads' into newdevel
[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
852a054d 13#include "AliVCuts.h"
14
264ebaac 15class TList;
65c32554 16class TCollection;
7c38d6ee 17
852a054d 18class AliAnalysisCuts : public AliVCuts
7c38d6ee 19{
20 public:
21 AliAnalysisCuts();
22 AliAnalysisCuts(const char* name, const char* title);
23 AliAnalysisCuts(const AliAnalysisCuts& obj);
24 virtual ~AliAnalysisCuts() {;}
9eeae5d5 25 virtual Bool_t IsSelected(TObject* /* obj */ ) {return kFALSE;}
26 virtual Bool_t IsSelected(TList* /* list */ ) = 0;
1b398ab4 27 virtual void Init() {;}
c54360e6 28 virtual void SetFilterMask(UInt_t mask) {fFilterMask = mask;}
a710e44a 29 virtual UInt_t GetFilterMask() const {return fFilterMask;}
30 virtual void SetSelected(Bool_t dec) {fSelected = dec;}
31 virtual UInt_t Selected() const {return fSelected;}
65c32554 32 virtual Long64_t Merge(TCollection* /* list */) { return 0; }
33 virtual TList* GetOutput() { return 0; }
7c38d6ee 34 private:
c54360e6 35 UInt_t fFilterMask; // Mask to use one of the previous decisions inside a filter
a710e44a 36 Bool_t fSelected; // Final decision on selction
852a054d 37 ClassDef(AliAnalysisCuts, 5); // Base class for filter decisions on ESD objects
7c38d6ee 38};
39
40#endif