First implementation of EMCAL trigger QA from Nicola Arbor
[u/mrichter/AliRoot.git] / TOF / AliTOFFormatDCS.cxx
CommitLineData
567369a2 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
567369a2 20// AliTOFFormatDCS class
21// contining the format of a DCS calibration objects
22// consisting in 10 floats
23// (5 data points + 5 corresponding timestamps)
24// and a short_integer
25
051a7fe6 26#include "AliTOFFormatDCS.h"
27
567369a2 28ClassImp(AliTOFFormatDCS)
29
30//---------------------------------------------------------------
31AliTOFFormatDCS::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
44AliTOFFormatDCS::AliTOFFormatDCS(const AliTOFFormatDCS & format):
8a190ba2 45 TObject(format),
567369a2 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
60AliTOFFormatDCS& AliTOFFormatDCS:: operator=(const AliTOFFormatDCS & format) {
051a7fe6 61 // assignment operator
567369a2 62
8a190ba2 63 if (this == &format)
64 return *this;
65
8a190ba2 66 TObject::operator=(format);
567369a2 67 for (Int_t i=0;i<3;i++){
8a190ba2 68 fFloats[i]=format.GetFloat(i);
69 fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
567369a2 70 }
71 for (Int_t i=0;i<2;i++){
8a190ba2 72 fDeltas[i]=format.GetDelta(i);
73 fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
567369a2 74 }
8a190ba2 75 fShort=format.GetShort();
567369a2 76 return *this;
77}
78//---------------------------------------------------------------
79
80AliTOFFormatDCS::~AliTOFFormatDCS(){
051a7fe6 81 // dtr
567369a2 82
83}
84