]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFChannelOffline.cxx
added TOF calibration library and code for pass0/passX calibration
[u/mrichter/AliRoot.git] / TOF / AliTOFChannelOffline.cxx
CommitLineData
0a749fa5 1/**************************************************************************
2 * Copyright(c) 1998-1999, 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$Log$
18Revision 1.1 2007/06/27 16:55:24 zampolli
19Task for TOF Calibration, optimized for pp runs
20
21Revision 1.2 2006/02/13 17:22:26 arcelli
22just Fixing Log info
23
24Revision 1.1 2006/02/13 16:10:48 arcelli
25Add classes for TOF Calibration (C.Zampolli)
26
27author: Chiara Zampolli, zampolli@bo.infn.it
28*/
29
30///////////////////////////////////////////////////////////////////////////////
31// //
32// class for TOF calibration //
33// //
34///////////////////////////////////////////////////////////////////////////////
35
36#include "AliTOFChannelOffline.h"
37#include "AliLog.h"
38
39ClassImp(AliTOFChannelOffline)
40
41//________________________________________________________________
42AliTOFChannelOffline::AliTOFChannelOffline()
43{
44 for(Int_t i=0;i<6;i++) fSlewPar[i]=0.;
45}
46
47//________________________________________________________________
48AliTOFChannelOffline::AliTOFChannelOffline(Float_t* slewingPar)
49{
50 for(Int_t i = 0; i<6;i++) fSlewPar[i]=slewingPar[i];
51}
52
53//________________________________________________________________
54AliTOFChannelOffline::~AliTOFChannelOffline()
55{
56 //dtor
17317d03 57
0a749fa5 58}
59
60//________________________________________________________________
61AliTOFChannelOffline::AliTOFChannelOffline(const AliTOFChannelOffline& channel) :
62 TObject(channel)
63{
64// copy constructor
65 for(Int_t i = 0; i<6;i++) fSlewPar[i]=channel.GetSlewPar(i);
66}
67
68
69//________________________________________________________________
70AliTOFChannelOffline &AliTOFChannelOffline::operator =(const AliTOFChannelOffline& channel)
71{
72// assignment operator
8a190ba2 73
74 if (this == &channel)
75 return *this;
76
77 TObject::operator=(channel);
0a749fa5 78 for(Int_t i = 0; i<6;i++) fSlewPar[i]=channel.GetSlewPar(i);
79 return *this;
80}
81
82//
83//________________________________________________________________
84//virtual AliTOFChannelOffline::~AliTOFChannelOffline()/
85//{
86
87//}
88//*/
89
90//________________________________________________________________
91void AliTOFChannelOffline::SetSlewPar(Float_t* slewingPar)
92{
93 if(slewingPar) for(Int_t i = 0; i<6;i++) fSlewPar[i]=slewingPar[i];
94 else for(int t=0; t<6; t++) fSlewPar[t] = 0.;
95}
96