1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
20 #include "AliTOFFormatDCS.h"
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
28 ClassImp(AliTOFFormatDCS)
30 //---------------------------------------------------------------
31 AliTOFFormatDCS::AliTOFFormatDCS(): TObject(),fShort(0){
33 for (Int_t i=0;i<3;i++){
35 fTimeStampsFloat[i]=0;
37 for (Int_t i=0;i<2;i++){
39 fTimeStampsDelta[i]=0;
42 //---------------------------------------------------------------
44 AliTOFFormatDCS::AliTOFFormatDCS(const AliTOFFormatDCS & format):
49 for (Int_t i=0;i<3;i++){
50 this->fFloats[i]=format.GetFloat(i);
51 this->fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
53 for (Int_t i=0;i<2;i++){
54 this->fDeltas[i]=format.GetDelta(i);
55 this->fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
58 //---------------------------------------------------------------
60 AliTOFFormatDCS& AliTOFFormatDCS:: operator=(const AliTOFFormatDCS & format) {
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);
71 for (Int_t i=0;i<2;i++){
72 fDeltas[i]=format.GetDelta(i);
73 fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
75 fShort=format.GetShort();
78 //---------------------------------------------------------------
80 AliTOFFormatDCS::~AliTOFFormatDCS(){