1 /**************************************************************************
2 * Copyright(c) 1998-2010, 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 //***********************************************************
17 // Class AliTODPIDParams
18 // class to store PID parameters for TOF in OADB
19 // Author: P. Antonioli, pietro.antonioli@to.infn.it
20 //***********************************************************
22 #include <Riostream.h>
25 #include "AliTOFPIDParams.h"
27 ClassImp(AliTOFPIDParams)
29 //_____________________________________________________________________________
30 AliTOFPIDParams::AliTOFPIDParams():
32 fStartTime(AliPIDResponse::kBest_T0),
35 fTOFmatchingLossMC(0),
36 fTOFadditionalMismForMC(0),
39 for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0;
42 //_____________________________________________________________________________
43 AliTOFPIDParams::AliTOFPIDParams(Char_t *name):
45 fStartTime(AliPIDResponse::kBest_T0),
48 fTOFmatchingLossMC(0),
49 fTOFadditionalMismForMC(0),
52 for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0;
55 //_____________________________________________________________________________
56 AliTOFPIDParams::~AliTOFPIDParams(){
60 //_____________________________________________________________________________
61 void AliTOFPIDParams::SetSigPparams(Float_t *d)
64 // Setting the SigP values
67 AliError(Form("Null pointer passed"));
70 for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=d[i];