Savannah request #94499
[u/mrichter/AliRoot.git] / STEER / STEERBase / AliTOFPIDParams.h
CommitLineData
b79db598 1#ifndef ALITOFPIDPARAMS_H
2#define ALITOFPIDPARAMS_H
3/* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//***********************************************************
7// Class AliTODPIDparams
8// class to store PID parameters for TOF in OADB
9// Author: P. Antonioli, pietro.antonioli@to.infn.it
10//***********************************************************
11
12#include <TObject.h>
13#include <TNamed.h>
14#include "AliPIDResponse.h"
15
16class AliTOFPIDParams : public TNamed {
17
18 public:
19 AliTOFPIDParams();
20 AliTOFPIDParams(Char_t * name);
21 virtual ~AliTOFPIDParams();
22
23 enum {kSigPparams = 4};
24
25 Float_t GetTOFresolution(void) const {return fTOFresolution;}
26 AliPIDResponse::EStartTimeType_t GetStartTimeMethod(void) const {return fStartTime;}
27 Float_t GetSigParams(Int_t i) const {
28 return ((i >= 0) && (i<kSigPparams)) ? fSigPparams[i] : 0;}
29 void SetTOFresolution(Float_t res){fTOFresolution = res;}
30 void SetStartTimeMethod(AliPIDResponse::EStartTimeType_t method){fStartTime=method;}
31 void SetSigPparams(Float_t *params);
32
33 private:
34 AliPIDResponse::EStartTimeType_t fStartTime; // startTime method
35 Float_t fTOFresolution; // TOF MRPC intrinsic resolution
36 Float_t fSigPparams[kSigPparams]; // parameterisation of sigma(p) dependency
37
38 ClassDef(AliTOFPIDParams,1);
39
40};
41
42#endif
43