Line data Source code
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 : //
16 : // Xianguo Lu <lu@physi.uni-heidelberg.de>
17 : //
18 :
19 : //
20 : // modified 10/08/15 by Lucas Altenkaemper <altenkaemper@physi.uni-heidelberg.de>
21 : //
22 :
23 : #ifndef ALITRDDEDXPARAMS_H
24 : #define ALITRDDEDXPARAMS_H
25 :
26 : #include "TNamed.h"
27 : #include "TVectorT.h"
28 : #include "TString.h"
29 :
30 : //maximum number of array size
31 : #define MAXSIZE 160
32 :
33 0 : class AliTRDdEdxParams: public TNamed
34 : {
35 : public:
36 : AliTRDdEdxParams(const TString name="name", const TString title="title");
37 : void Print(Option_t* option = "") const;
38 :
39 0 : const TVectorF& GetMeanParameter( const Int_t itype, const Int_t nch, const Int_t ncls, const Bool_t etaCorrection) const { return GetParameter(fMeanPar, itype, nch, ncls, etaCorrection);}
40 0 : const TVectorF& GetSigmaParameter(const Int_t itype, const Int_t nch, const Int_t ncls, const Bool_t etaCorrection) const { return GetParameter(fSigmaPar, itype, nch, ncls, etaCorrection);}
41 :
42 0 : void SetMeanParameter( const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[], const Bool_t etaCorrection){ SetParameter(fMeanPar, itype, nch, ncls, npar, vals, etaCorrection); }
43 0 : void SetSigmaParameter(const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[], const Bool_t etaCorrection){ SetParameter(fSigmaPar, itype, nch, ncls, npar, vals, etaCorrection); }
44 :
45 : private:
46 : const TVectorF& GetParameter(const TVectorF par[], const Int_t itype, const Int_t nch, const Int_t ncls, const Bool_t etaCorrection) const;
47 : void SetParameter(TVectorF par[], const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[], const Bool_t etaCorrection);
48 :
49 : TVectorF fMeanPar[MAXSIZE];
50 : TVectorF fSigmaPar[MAXSIZE];
51 :
52 : Int_t GetIter(const Int_t itype, const Int_t nch, const Int_t ncls, const Bool_t etaCorrection) const;
53 :
54 176 : ClassDef(AliTRDdEdxParams,3);
55 : };
56 :
57 : #endif
|