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 ALIHFEOADBTHRESHOLDSTRD_H
19 #define ALIHFEOADBTHRESHOLDSTRD_H
27 class AliHFEOADBThresholdsTRD : public TNamed{
29 AliHFEOADBThresholdsTRD();
30 AliHFEOADBThresholdsTRD(const char *name);
31 virtual ~AliHFEOADBThresholdsTRD();
32 virtual void Print(Option_t *) const;
34 Bool_t GetThresholdParameters(Int_t ntracklets, Double_t efficiency, Double_t *params);
35 void SetThresholdParameters(Int_t ntracklets, Double_t efficiency, Double_t *params);
38 class AliHFEthresholdParamsTRD : public TObject{
40 AliHFEthresholdParamsTRD();
41 AliHFEthresholdParamsTRD(Int_t nTracklets, Double_t eff, Double_t *params = NULL);
42 AliHFEthresholdParamsTRD(const AliHFEthresholdParamsTRD &ref);
43 AliHFEthresholdParamsTRD &operator=(const AliHFEthresholdParamsTRD &ref);
44 virtual ~AliHFEthresholdParamsTRD() {}
46 Int_t GetNTracklets() const { return fNTracklets; }
47 Double_t GetElectronEfficiency() const { return fEfficiency; }
48 const Double_t *GetThresholdParams() const { return fParams; }
50 virtual Bool_t IsSortable() const { return kTRUE; }
51 virtual Int_t Compare(const TObject *ref) const;
52 virtual Bool_t IsEqual(const TObject *ref) const;
55 Int_t fNTracklets; // Number of tracklets
56 Double_t fEfficiency; // Efficiency level applied
57 Double_t fParams[4]; // Cut parameterization
59 ClassDef(AliHFEthresholdParamsTRD, 1);
62 static const Double_t fgkVerySmall; // Comparison of efficiency values
64 AliHFEOADBThresholdsTRD(const AliHFEOADBThresholdsTRD &ref);
65 AliHFEOADBThresholdsTRD &operator=(const AliHFEOADBThresholdsTRD &ref);
67 TSortedList *fEntries; // Container for Thresholds
69 ClassDef(AliHFEOADBThresholdsTRD, 1);