]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEdetPIDqa.h
Major update of the HFE package (comments inside the code
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEdetPIDqa.h
CommitLineData
3a72645a 1/**************************************************************************
2* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3* *
4* Author: The ALICE Off-line Project. *
5* Contributors are mentioned in the code where appropriate. *
6* *
7* Permission to use, copy, modify and distribute this software and its *
8* documentation strictly for non-commercial purposes is hereby granted *
9* without fee, provided that the above copyright notice appears in all *
10* copies and that both the copyright notice and this permission notice *
11* appear in the supporting documentation. The authors make no claims *
12* about the suitability of this software for any purpose. It is *
13* provided "as is" without express or implied warranty. *
14**************************************************************************/
15//
16// Class AliHFEdetPIDqa
17// Base class for detector PID QA describing the interface to the PID QA
18// manager, keeping also commom functionality
19// More information can be found inside the implementation file
20//
21#ifndef ALIHFEDETPIDQA_H
22#define ALIHFEDETPIDQA_H
23
24#ifndef ROOT_TNamed
25#include <TNamed.h>
26#endif
27
28class AliAODpidUtil;
29class AliESDpid;
30class AliHFEpidObject;
31
32class AliHFEdetPIDqa : public TNamed{
33 public:
34 enum EStep_t{
35 kBeforePID = 0,
36 kAfterPID = 1
37 };
38 AliHFEdetPIDqa();
39 AliHFEdetPIDqa(const Char_t *name, const Char_t *title);
40 AliHFEdetPIDqa(const AliHFEdetPIDqa &c);
41 AliHFEdetPIDqa &operator=(const AliHFEdetPIDqa &o);
42 ~AliHFEdetPIDqa(){}
43
44 virtual void Initialize() = 0;
45 virtual void ProcessTrack(AliHFEpidObject *track, EStep_t step)= 0;
46
47 void SetESDpid(AliESDpid *esdpid) { fESDpid = esdpid; }
48 void SetAODpid(AliAODpidUtil *aodpid) { fAODpid = aodpid; }
49 AliESDpid *GetESDpid() const { return fESDpid; }
50 AliAODpidUtil *GetAODpid() const { return fAODpid; }
51
52 protected:
53 AliESDpid *fESDpid; //! ESD PID object
54 AliAODpidUtil *fAODpid; //! AOD PID object
55
56 ClassDef(AliHFEdetPIDqa, 1) // Base class for detector PID QA
57};
58
59#endif