]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFChannel.cxx
Coding conventions
[u/mrichter/AliRoot.git] / TOF / AliTOFChannel.cxx
CommitLineData
6dc9348d 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
762446e0 16/*
17$Log$
18Revision 1.1 2006/02/13 16:10:48 arcelli
19Add classes for TOF Calibration (C.Zampolli)
20
6dc9348d 21author: Chiara Zampolli, zampolli@bo.infn.it
762446e0 22*/
6dc9348d 23
24///////////////////////////////////////////////////////////////////////////////
25// //
26// class for TOF calibration //
27// //
28///////////////////////////////////////////////////////////////////////////////
29
30#include "AliTOFChannel.h"
31
32ClassImp(AliTOFChannel)
33
34//________________________________________________________________
35AliTOFChannel::AliTOFChannel():
36fStatus(kFALSE),
37fDelay(0)
38{
39 for(Int_t i=0;i<6;i++) fSlewPar[i]=0.;
40}
41
42//________________________________________________________________
43AliTOFChannel::AliTOFChannel(Bool_t status, Float_t delay, Float_t* slewingPar):
44fStatus(status),
45fDelay(delay)
46{
47 for(Int_t i = 0; i<6;i++) fSlewPar[i]=slewingPar[i];
48}
49
50//________________________________________________________________
51AliTOFChannel::AliTOFChannel(const AliTOFChannel& channel) :
52 TObject(channel)
53{
54// copy constructor
55
56}
57
58
59//________________________________________________________________
60AliTOFChannel &AliTOFChannel::operator =(const AliTOFChannel& channel)
61{
62// assignment operator
63 fStatus= channel.GetStatus();
64 fDelay=channel.GetDelay();
65 return *this;
66}
67
68//
69//________________________________________________________________
70//virtual AliTOFChannel::~AliTOFChannel()/
71//{
72
73//}
74//*/
75
76//________________________________________________________________
77void AliTOFChannel::SetSlewPar(Float_t* slewingPar)
78{
79 if(slewingPar) for(Int_t i = 0; i<6;i++) fSlewPar[i]=slewingPar[i];
80 else for(int t=0; t<6; t++) fSlewPar[t] = 0.;
81}
82