Cleanup the code. Fix memory leak. Now inherit from AliAnalysisTaskSE (Antoine, Phili...
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEdetPIDqa.h
CommitLineData
27de2dfb 1#ifndef ALIHFEDETPIDQA_H
2#define ALIHFEDETPIDQA_H
3
3a72645a 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
3a72645a 21//
22// Class AliHFEdetPIDqa
23// Base class for detector PID QA describing the interface to the PID QA
24// manager, keeping also commom functionality
25// More information can be found inside the implementation file
26//
3a72645a 27#ifndef ROOT_TNamed
28#include <TNamed.h>
29#endif
30
3a72645a 31class AliHFEpidObject;
6555e2ad 32class AliHFEpidQAmanager;
3a72645a 33
34class AliHFEdetPIDqa : public TNamed{
35 public:
36 enum EStep_t{
37 kBeforePID = 0,
38 kAfterPID = 1
39 };
40 AliHFEdetPIDqa();
41 AliHFEdetPIDqa(const Char_t *name, const Char_t *title);
42 AliHFEdetPIDqa(const AliHFEdetPIDqa &c);
43 AliHFEdetPIDqa &operator=(const AliHFEdetPIDqa &o);
44 ~AliHFEdetPIDqa(){}
45
46 virtual void Initialize() = 0;
6555e2ad 47 virtual void ProcessTrack(const AliHFEpidObject *track, EStep_t step)= 0;
3a72645a 48
6555e2ad 49 void SetPIDqaManager(AliHFEpidQAmanager *qamgr) { fQAmanager = qamgr; }
50 AliHFEpidQAmanager *GetPIDqaManager() const { return fQAmanager; }
3a72645a 51
52 protected:
6555e2ad 53 AliHFEpidQAmanager *fQAmanager; // PID QA manager
3a72645a 54
55 ClassDef(AliHFEdetPIDqa, 1) // Base class for detector PID QA
56};
57
58#endif