]>
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(): | |
3a5d9717 | 31 | TNamed("default",""), |
b79db598 | 32 | fStartTime(AliPIDResponse::kBest_T0), |
3a5d9717 | 33 | fTOFresolution(90), |
34 | fTOFtail(0.95), | |
35 | fTOFmatchingLossMC(0), | |
36 | fTOFadditionalMismForMC(0), | |
37 | fTOFtimeOffset(0) | |
b79db598 | 38 | { |
39 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0; | |
40 | } | |
41 | ||
42 | //_____________________________________________________________________________ | |
43 | AliTOFPIDParams::AliTOFPIDParams(Char_t *name): | |
44 | TNamed(name,""), | |
45 | fStartTime(AliPIDResponse::kBest_T0), | |
3a5d9717 | 46 | fTOFresolution(90), |
47 | fTOFtail(0.95), | |
48 | fTOFmatchingLossMC(0), | |
49 | fTOFadditionalMismForMC(0), | |
50 | fTOFtimeOffset(0) | |
b79db598 | 51 | { |
52 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=0; | |
53 | } | |
54 | ||
55 | //_____________________________________________________________________________ | |
56 | AliTOFPIDParams::~AliTOFPIDParams(){ | |
57 | } | |
58 | ||
59 | ||
60 | //_____________________________________________________________________________ | |
61 | void AliTOFPIDParams::SetSigPparams(Float_t *d) | |
62 | { | |
63 | // | |
64 | // Setting the SigP values | |
65 | // | |
66 | if (d == 0x0){ | |
67 | AliError(Form("Null pointer passed")); | |
68 | } | |
69 | else{ | |
70 | for (Int_t i=0;i<kSigPparams;i++) fSigPparams[i]=d[i]; | |
71 | } | |
72 | return; | |
73 | } | |
74 |