]>
Commit | Line | Data |
---|---|---|
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 | ||
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(), | |
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 | // assignment operator | |
63 | for (Int_t i=0;i<3;i++){ | |
64 | this->fFloats[i]=format.GetFloat(i); | |
65 | this->fTimeStampsFloat[i]=format.GetTimeStampFloat(i); | |
66 | } | |
67 | for (Int_t i=0;i<2;i++){ | |
68 | this->fDeltas[i]=format.GetDelta(i); | |
69 | this->fTimeStampsDelta[i]=format.GetTimeStampFloat(i); | |
70 | } | |
71 | this->fShort=format.GetShort(); | |
72 | return *this; | |
73 | } | |
74 | //--------------------------------------------------------------- | |
75 | ||
76 | AliTOFFormatDCS::~AliTOFFormatDCS(){ | |
77 | ||
78 | } | |
79 |