]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEERBase/AliTRDdEdxParams.h
ALIROOT-5633 o limit the momentum range for deuteron and triton in ITSnSigma o Simpli...
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTRDdEdxParams.h
CommitLineData
9c499471 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#ifndef ALITRDDEDXPARAMS_H
20#define ALITRDDEDXPARAMS_H
21
22#include "TNamed.h"
23#include "TVectorT.h"
24#include "TString.h"
25
a8da1749 26//maximum number of array size
27#define MAXSIZE 100
9c499471 28
29class AliTRDdEdxParams: public TNamed
30{
31 public:
32 AliTRDdEdxParams(const TString name="name", const TString title="title");
33 void Print(Option_t* option = "") const;
34
a8da1749 35 const TVectorF& GetMeanParameter( const Int_t itype, const Int_t nch, const Int_t ncls) const { return GetParameter(fMeanPar, itype, nch, ncls);}
36 const TVectorF& GetSigmaParameter(const Int_t itype, const Int_t nch, const Int_t ncls) const { return GetParameter(fSigmaPar, itype, nch, ncls);}
9c499471 37
a8da1749 38 void SetMeanParameter( const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[]){ SetParameter(fMeanPar, itype, nch, ncls, npar, vals); }
39 void SetSigmaParameter(const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[]){ SetParameter(fSigmaPar, itype, nch, ncls, npar, vals); }
9c499471 40
41 private:
a8da1749 42 const TVectorF& GetParameter(const TVectorF par[], const Int_t itype, const Int_t nch, const Int_t ncls) const;
43 void SetParameter(TVectorF par[], const Int_t itype, const Int_t nch, const Int_t ncls, const Int_t npar, const Float_t vals[]);
9c499471 44
a8da1749 45 TVectorF fMeanPar[MAXSIZE];
46 TVectorF fSigmaPar[MAXSIZE];
9c499471 47
a8da1749 48 Int_t GetIter(const Int_t itype, const Int_t nch, const Int_t ncls) const;
9c499471 49
a8da1749 50 ClassDef(AliTRDdEdxParams,2);
9c499471 51};
52
53#endif