Cleanup the code. Fix memory leak. Now inherit from AliAnalysisTaskSE (Antoine, Phili...
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEcutStep.h
CommitLineData
27de2dfb 1#ifndef ALIHFECUTSTEP_H
2#define ALIHFECUTSTEP_H
3
70da6c5a 4/**************************************************************************
5* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6* *
7* Author: The ALICE Off-line Project. *
8* Contributors are mentioned in the code where appropriate. *
9* *
10* Permission to use, copy, modify and distribute this software and its *
11* documentation strictly for non-commercial purposes is hereby granted *
12* without fee, provided that the above copyright notice appears in all *
13* copies and that both the copyright notice and this permission notice *
14* appear in the supporting documentation. The authors make no claims *
15* about the suitability of this software for any purpose. It is *
16* provided "as is" without express or implied warranty. *
17**************************************************************************/
27de2dfb 18
19/* $Id$ */
20
70da6c5a 21//
22// Cut step class
23// Select all tracks surviving cuts in one special cut step
24// Used in AliHFEtrackFilter
25//
70da6c5a 26#include <TNamed.h>
27
28class TObjArray;
29class AliAnalysisCuts;
30class AliMCEvent;
31class AliVEvent;
32
33class AliHFEcutStep : public TNamed{
34 public:
35 AliHFEcutStep(const Char_t *name);
36 AliHFEcutStep(const AliHFEcutStep &o);
37 AliHFEcutStep &operator=(const AliHFEcutStep &o);
38 virtual void Copy(TObject &o) const;
39 ~AliHFEcutStep();
40
41 void AddCut(AliAnalysisCuts *cut);
42 AliAnalysisCuts *GetCut(const Char_t *name);
43 Bool_t IsSelected(TObject *o);
44
45 void SetMC(AliMCEvent *mc);
46 void SetRecEvent(AliVEvent *mc);
47
48 private:
3a72645a 49 TObjArray *fCuts; // List of cuts in one cut step
70da6c5a 50
51 ClassDef(AliHFEcutStep, 1)
52};
53#endif
54