1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // Base Class for Detector PID Objects
17 // For more information see the implementation file
19 #ifndef ALIHFEPIDBASE_H
20 #define ALIHFEPIDBASE_H
26 #ifndef ALIHFEPIDOBJECT_H
27 #include "AliHFEpidObject.h"
34 class AliHFEpidQAmanager;
36 class AliHFEpidBase : public TNamed{
39 AliHFEpidBase(const Char_t *name);
40 AliHFEpidBase(const AliHFEpidBase &c);
41 AliHFEpidBase &operator=(const AliHFEpidBase &c);
42 virtual ~AliHFEpidBase() {};
43 // Framework functions that have to be implemented by the detector PID classes
44 virtual Bool_t InitializePID(Int_t run) = 0;
45 virtual Int_t IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *pidqa = NULL) const = 0;
47 Bool_t HasMCData() const { return TestBit(kHasMCData); };
49 void SetPIDResponse(const AliPIDResponse * const pid) { fkPIDResponse = pid; }
50 void SetHasMCData(Bool_t hasMCdata = kTRUE) { SetBit(kHasMCData,hasMCdata); };
52 const AliPIDResponse *GetPIDResponse() const { return fkPIDResponse; };
55 const AliPIDResponse *fkPIDResponse; //! PID Response
56 void Copy(TObject &ref) const;
63 ClassDef(AliHFEpidBase, 2) // Base class for detector Electron ID