]>
Commit | Line | Data |
---|---|---|
b79db598 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2010, 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 | //*********************************************************** | |
17 | // Class AliTODPIDParams | |
18 | // class to store PID parameters for TOF in OADB | |
19 | // Author: P. Antonioli, pietro.antonioli@to.infn.it | |
20 | //*********************************************************** | |
21 | ||
22 | #include <Riostream.h> | |
23 | #include <TNamed.h> | |
24 | #include "AliLog.h" | |
25 | #include "AliTOFPIDParams.h" | |
26 | ||
27 | ClassImp(AliTOFPIDParams) | |
28 | ||
29 | //_____________________________________________________________________________ | |
30 | AliTOFPIDParams::AliTOFPIDParams(): | |
31 | TNamed("default",""), | |
32 | fStartTime(AliPIDResponse::kBest_T0), | |
33 | fTOFresolution(100) | |
34 | { | |
35 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0; | |
36 | } | |
37 | ||
38 | //_____________________________________________________________________________ | |
39 | AliTOFPIDParams::AliTOFPIDParams(Char_t *name): | |
40 | TNamed(name,""), | |
41 | fStartTime(AliPIDResponse::kBest_T0), | |
42 | fTOFresolution(100) | |
43 | { | |
44 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0; | |
45 | } | |
46 | ||
47 | //_____________________________________________________________________________ | |
48 | AliTOFPIDParams::~AliTOFPIDParams(){ | |
49 | } | |
50 | ||
51 | ||
52 | //_____________________________________________________________________________ | |
53 | void AliTOFPIDParams::SetSigPparams(Float_t *d) | |
54 | { | |
55 | // | |
56 | // Setting the SigP values | |
57 | // | |
58 | if (d == 0x0){ | |
59 | AliError(Form("Null pointer passed")); | |
60 | } | |
61 | else{ | |
62 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=d[i]; | |
63 | } | |
64 | return; | |
65 | } | |
66 |