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 // Container for TRD thresholds stored in the OADB
18 #ifndef ALITRDPIDPARAMS_H
19 #define ALITRDPIDPARAMS_H
27 class AliTRDPIDParams : public TNamed{
30 AliTRDPIDParams(const char *name);
31 virtual ~AliTRDPIDParams();
32 virtual void Print(Option_t *) const;
34 Bool_t GetThresholdParameters(Int_t ntracklets, Double_t efficiency, Double_t *params) const;
35 void SetThresholdParameters(Int_t ntracklets, Double_t effMin, Double_t effMax, Double_t *params);
38 class AliTRDPIDThresholds : public TObject{
40 AliTRDPIDThresholds();
41 AliTRDPIDThresholds(Int_t nTracklets, Double_t effMin, Double_t effMax, Double_t *params = NULL);
42 AliTRDPIDThresholds(Int_t nTracklets, Double_t eff, Double_t *params = NULL);
43 AliTRDPIDThresholds(const AliTRDPIDThresholds &);
44 AliTRDPIDThresholds &operator=(const AliTRDPIDThresholds &);
45 virtual ~AliTRDPIDThresholds() {}
47 Int_t GetNTracklets() const { return fNTracklets; }
48 Double_t GetElectronEfficiency(Int_t step = 0) const { if(step == 0) return fEfficiency[0]; else return fEfficiency[1]; }
49 const Double_t *GetThresholdParams() const { return fParams; }
51 virtual Bool_t IsSortable() const { return kTRUE; }
52 virtual Int_t Compare(const TObject *ref) const;
53 virtual Bool_t IsEqual(const TObject *ref) const;
57 Double_t fEfficiency[2]; //
58 Double_t fParams[4]; //
60 ClassDef(AliTRDPIDThresholds, 1);
63 static const Double_t kVerySmall;
65 AliTRDPIDParams(const AliTRDPIDParams &);
66 AliTRDPIDParams &operator=(const AliTRDPIDParams &);
68 TSortedList *fEntries; //
70 ClassDef(AliTRDPIDParams, 1);