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