]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFFormatDCS.cxx
Coding convention violations: suppression
[u/mrichter/AliRoot.git] / TOF / AliTOFFormatDCS.cxx
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$
18 */  
19
20 #include "AliTOFFormatDCS.h"
21
22 // AliTOFFormatDCS class
23 // contining the format of a DCS calibration objects
24 // consisting in 10 floats
25 // (5 data points + 5 corresponding timestamps) 
26 // and a short_integer
27
28 ClassImp(AliTOFFormatDCS)
29
30 //---------------------------------------------------------------
31 AliTOFFormatDCS::AliTOFFormatDCS(): TObject(),fShort(0){
32   // main constructor
33   for (Int_t i=0;i<3;i++){
34     fFloats[i]=0;
35     fTimeStampsFloat[i]=0;
36   }
37   for (Int_t i=0;i<2;i++){
38     fDeltas[i]=0;
39     fTimeStampsDelta[i]=0;
40   }
41 }
42 //---------------------------------------------------------------
43
44 AliTOFFormatDCS::AliTOFFormatDCS(const AliTOFFormatDCS & format):
45   TObject(format),
46   fShort(format.fShort)
47
48   // copy constructor
49   for (Int_t i=0;i<3;i++){
50     this->fFloats[i]=format.GetFloat(i);
51     this->fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
52   }
53   for (Int_t i=0;i<2;i++){
54     this->fDeltas[i]=format.GetDelta(i);
55     this->fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
56   }
57 }
58 //---------------------------------------------------------------
59
60 AliTOFFormatDCS& AliTOFFormatDCS:: operator=(const AliTOFFormatDCS & format) { 
61
62   if (this == &format)
63     return *this;
64
65   // assignment operator
66   TObject::operator=(format);
67   for (Int_t i=0;i<3;i++){
68     fFloats[i]=format.GetFloat(i);
69     fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
70   }
71   for (Int_t i=0;i<2;i++){
72     fDeltas[i]=format.GetDelta(i);
73     fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
74   }
75   fShort=format.GetShort();
76   return *this;
77 }
78 //---------------------------------------------------------------
79
80 AliTOFFormatDCS::~AliTOFFormatDCS(){
81
82 }
83