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 // Steering class for electron identification
17 // Combines detector PID objects
18 // For more information please check the implementation file
27 #ifndef ALIHFEPIDBASE_H
28 #include "AliHFEpidBase.h"
39 class AliHFEpid : public TObject{
42 AliHFEpid(const AliHFEpid &c);
43 AliHFEpid &operator=(const AliHFEpid &c);
46 Bool_t InitializePID(TString argument);
47 Bool_t IsSelected(AliHFEpidObject *track);
49 Bool_t IsQAOn() const { return TestBit(kIsQAOn); };
50 Bool_t HasMCData() const { return TestBit(kHasMCData); };
51 void SetESDpid(AliESDpid *pid);
52 void SetDebugLevel(Int_t debugLevel) { fDebugLevel = debugLevel; }
54 void SetHasMCData(Bool_t hasMCdata = kTRUE) { SetBit(kHasMCData, hasMCdata); };
55 TList *GetQAhistograms() const { return fQAlist; };
58 Bool_t MakePidTpcTof(AliHFEpidObject *track);
59 Bool_t MakePidTpcTrd(AliHFEpidObject *track);
60 void MakePlotsItsTpc(AliHFEpidObject *track);
70 Bool_t IdentifyStrategy0(AliHFEpidObject *track);
71 Bool_t IdentifyStrategy1(AliHFEpidObject *track);
72 Bool_t IdentifyStrategy2(AliHFEpidObject *track);
73 Bool_t IdentifyStrategy3(AliHFEpidObject *track);
74 Bool_t IdentifyStrategy4(AliHFEpidObject *track);
75 Bool_t IdentifyStrategy5(AliHFEpidObject *track);
76 Bool_t IdentifyStrategy6(AliHFEpidObject *track);
77 Bool_t IdentifyStrategy7(AliHFEpidObject *track);
100 void AddCommonObject(TObject * const o);
101 void ClearCommonObjects();
103 AliHFEpidBase *fDetectorPID[kNdetectorPID]; //! Detector PID classes
104 UInt_t fEnabledDetectors; // Enabled Detectors
105 UInt_t fPIDstrategy; // PID Strategy
106 TList *fQAlist; //! QA histograms
107 Int_t fDebugLevel; // Debug Level
108 TObjArray *fCommonObjects; // Garbage Collector
110 ClassDef(AliHFEpid, 1) // Steering class for Electron ID