]>
Commit | Line | Data |
---|---|---|
809a4336 | 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 | #ifndef __ALIHFEPIDTRD_H__ | |
16 | #define __ALIHFEPIDTRD_H__ | |
17 | ||
18 | #ifndef __ALIHFEPIDBASE_H__ | |
19 | #include "AliHFEpidBase.h" | |
20 | #endif | |
21 | ||
809a4336 | 22 | class AliVParticle; |
23 | ||
24 | class AliHFEpidTRD : public AliHFEpidBase{ | |
25 | public: | |
26 | typedef enum{ | |
27 | kLQ = 0, | |
28 | kNN = 1 | |
29 | } PIDMethodTRD_t; | |
dbe3abbe | 30 | enum{ |
31 | kThreshParams = 24 | |
32 | }; | |
809a4336 | 33 | AliHFEpidTRD(const Char_t *name); |
34 | AliHFEpidTRD(const AliHFEpidTRD &ref); | |
35 | AliHFEpidTRD& operator=(const AliHFEpidTRD &ref); | |
36 | virtual ~AliHFEpidTRD(); | |
37 | ||
38 | virtual Bool_t InitializePID(); | |
39 | virtual Int_t IsSelected(AliVParticle *track); | |
40 | virtual Bool_t HasQAhistos() const { return kFALSE; }; | |
41 | ||
809a4336 | 42 | void SetPIDMethod(PIDMethodTRD_t method) { fPIDMethod = method; }; |
809a4336 | 43 | protected: |
44 | void Copy(TObject &ref) const; | |
dbe3abbe | 45 | Double_t GetTRDthresholds(Double_t electronEff, Double_t p); |
46 | void InitParameters(); | |
47 | void GetParameters(Double_t electronEff, Double_t *parameters); | |
809a4336 | 48 | private: |
809a4336 | 49 | PIDMethodTRD_t fPIDMethod; // PID Method: 2D Likelihood or Neural Network |
dbe3abbe | 50 | Double_t fThreshParams[kThreshParams]; // Threshold parametrisation |
809a4336 | 51 | ClassDef(AliHFEpidTRD, 1) // TRD electron ID class |
52 | }; | |
53 | ||
54 | #endif |