Line data Source code
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 : // 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 :
26 : #include "AliTOFFormatDCS.h"
27 :
28 26 : ClassImp(AliTOFFormatDCS)
29 :
30 : //---------------------------------------------------------------
31 0 : AliTOFFormatDCS::AliTOFFormatDCS(): TObject(),fShort(0){
32 : // main constructor
33 0 : for (Int_t i=0;i<3;i++){
34 0 : fFloats[i]=0;
35 0 : fTimeStampsFloat[i]=0;
36 : }
37 0 : for (Int_t i=0;i<2;i++){
38 0 : fDeltas[i]=0;
39 0 : fTimeStampsDelta[i]=0;
40 : }
41 0 : }
42 : //---------------------------------------------------------------
43 :
44 : AliTOFFormatDCS::AliTOFFormatDCS(const AliTOFFormatDCS & format):
45 0 : TObject(format),
46 0 : fShort(format.fShort)
47 0 : {
48 : // copy constructor
49 0 : for (Int_t i=0;i<3;i++){
50 0 : this->fFloats[i]=format.GetFloat(i);
51 0 : this->fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
52 : }
53 0 : for (Int_t i=0;i<2;i++){
54 0 : this->fDeltas[i]=format.GetDelta(i);
55 0 : this->fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
56 : }
57 0 : }
58 : //---------------------------------------------------------------
59 :
60 : AliTOFFormatDCS& AliTOFFormatDCS:: operator=(const AliTOFFormatDCS & format) {
61 : // assignment operator
62 :
63 0 : if (this == &format)
64 0 : return *this;
65 :
66 0 : TObject::operator=(format);
67 0 : for (Int_t i=0;i<3;i++){
68 0 : fFloats[i]=format.GetFloat(i);
69 0 : fTimeStampsFloat[i]=format.GetTimeStampFloat(i);
70 : }
71 0 : for (Int_t i=0;i<2;i++){
72 0 : fDeltas[i]=format.GetDelta(i);
73 0 : fTimeStampsDelta[i]=format.GetTimeStampFloat(i);
74 : }
75 0 : fShort=format.GetShort();
76 0 : return *this;
77 0 : }
78 : //---------------------------------------------------------------
79 :
80 0 : AliTOFFormatDCS::~AliTOFFormatDCS(){
81 : // dtr
82 :
83 0 : }
84 :
|