]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEpidBase.h
add jet trigger
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEpidBase.h
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 // Base Class for Detector PID Objects
17 // For more information see the implementation file
18 //
19 #ifndef ALIHFEPIDBASE_H
20 #define ALIHFEPIDBASE_H
21  
22 #ifndef ROOT_TNamed
23 #include <TNamed.h>
24 #endif
25
26 #ifndef ALIHFEPIDOBJECT_H
27 #include "AliHFEpidObject.h"
28 #endif
29
30 class TList;
31 class AliPIDResponse;
32 class AliVParticle;
33 class AliMCParticle;
34 class AliHFEpidQAmanager;
35
36 class AliHFEpidBase : public TNamed{
37   public:
38     AliHFEpidBase();
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;
46
47     Bool_t HasMCData() const { return TestBit(kHasMCData); };
48
49     void SetPIDResponse(const AliPIDResponse * const pid) { fkPIDResponse = pid; }
50     void SetHasMCData(Bool_t hasMCdata = kTRUE) { SetBit(kHasMCData,hasMCdata); };
51
52     const AliPIDResponse *GetPIDResponse() const { return fkPIDResponse; }; 
53
54   protected:
55     const AliPIDResponse *fkPIDResponse;        //! PID Response
56     void Copy(TObject &ref) const;
57
58   private:
59     enum{
60       kHasMCData = BIT(14)
61     };
62
63     ClassDef(AliHFEpidBase, 2)      // Base class for detector Electron ID
64 };
65 #endif