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 **************************************************************************/
15 #ifndef __ALIHFEPIDTRD_H__
16 #define __ALIHFEPIDTRD_H__
18 #ifndef __ALIHFEPIDBASE_H__
19 #include "AliHFEpidBase.h"
28 class AliHFEpidTRD : public AliHFEpidBase{
34 AliHFEpidTRD(const Char_t *name);
35 AliHFEpidTRD(const AliHFEpidTRD &ref);
36 AliHFEpidTRD& operator=(const AliHFEpidTRD &ref);
37 virtual ~AliHFEpidTRD();
39 virtual Bool_t InitializePID();
40 virtual Int_t IsSelected(AliVParticle *track);
41 virtual Bool_t HasQAhistos() const { return kFALSE; };
43 void LoadTRDthresholds();
45 void SetPIDMethod(PIDMethodTRD_t method) { fPIDMethod = method; };
46 void SetThresholdFile(Char_t *thresholdFile) { fThresholdFile = thresholdFile; };
49 void Copy(TObject &ref) const;
50 TH1F *GetTRDthresholds(Float_t electronEff);
51 void SetTRDthresholds(TH1F *thresholds, Float_t electronEff);
54 TString fThresholdFile; // Threshold file name
55 PIDMethodTRD_t fPIDMethod; // PID Method: 2D Likelihood or Neural Network
56 TMap *fTRDthresholds; //! TRD Thresholds
57 TAxis *fTRDelectronEfficiencies; //! Electron Efficiencies corresponding to reference histos
59 ClassDef(AliHFEpidTRD, 1) // TRD electron ID class