warning fix
[u/mrichter/AliRoot.git] / TOF / AliTOFDecoderSummaryData.cxx
CommitLineData
5b4ed716 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 author: Roberto Preghenella (R+), preghenella@bo.infn.it
18*/
19
20
21//////////////////////////////////////////////////////////////////////
22// //
23// //
24// This classes provide decoder summaries for data. //
25// //
26// //
27//////////////////////////////////////////////////////////////////////
28
29#include "AliTOFDecoderSummaryData.h"
30
31ClassImp(AliTOFDecoderSummaryData)
32
33AliTOFDecoderSummaryData::AliTOFDecoderSummaryData() :
34 TObject(),
35 fRunNumber(0),
36 fEventNumber(0),
37 fEquipmentID(0),
38 fInputWords(0),
39 fDecodedWords(0),
40 fDecoderStatus(0),
41 fErrorDetected(kFALSE),
42 fErrorSlotID(0),
43 fCurrentDRMID(0),
44 fCurrentSlotID(0),
45 fCurrentChain(0),
46 fV2718Patch(kFALSE),
47 fRecoverError(kFALSE),
48 fRecoveringError(kFALSE),
49 fSpider(kFALSE),
50 fDRMSummaryData(0x0)
51{
52 /* default constructor */
53 fDRMSummaryData = new AliTOFDRMSummaryData();
54}
55
56//_________________________________________________________________
57
58AliTOFDecoderSummaryData::AliTOFDecoderSummaryData(const AliTOFDecoderSummaryData &source) :
59 TObject(),
60 fRunNumber(source.fRunNumber),
61 fEventNumber(source.fEventNumber),
62 fEquipmentID(source.fEquipmentID),
63 fInputWords(source.fInputWords),
64 fDecodedWords(source.fDecodedWords),
65 fDecoderStatus(source.fDecoderStatus),
66 fErrorDetected(source.fErrorDetected),
67 fErrorSlotID(source.fErrorSlotID),
68 fCurrentDRMID(source.fCurrentDRMID),
69 fCurrentSlotID(source.fCurrentSlotID),
70 fCurrentChain(source.fCurrentChain),
71 fV2718Patch(source.fV2718Patch),
72 fRecoverError(source.fRecoverError),
73 fRecoveringError(source.fRecoveringError),
74 fSpider(kFALSE),
75 fDRMSummaryData(0x0)
76{
77 /* copy constructor */
78 fDRMSummaryData = new AliTOFDRMSummaryData(*source.fDRMSummaryData);
79}
80
81//_________________________________________________________________
82
83AliTOFDecoderSummaryData &
84AliTOFDecoderSummaryData::operator = (const AliTOFDecoderSummaryData &source)
85{
86 /* operator = */
87 fRunNumber = source.fRunNumber;
88 fEventNumber = source.fEventNumber;
89 fEquipmentID = source.fEquipmentID;
90 fInputWords = source.fInputWords;
91 fDecodedWords = source.fDecodedWords;
92 fDecoderStatus = source.fDecoderStatus;
93 fErrorDetected = source.fErrorDetected;
94 fErrorSlotID = source.fErrorSlotID;
95 fCurrentDRMID = source.fCurrentDRMID;
96 fCurrentSlotID = source.fCurrentSlotID;
97 fCurrentChain = source.fCurrentChain;
98 fV2718Patch = source.fV2718Patch;
99 fRecoverError = source.fRecoverError;
100 fRecoveringError = source.fRecoveringError;
101 fSpider = source.fSpider;
102 *fDRMSummaryData = *source.fDRMSummaryData;
103 return *this;
104}
105
106//_________________________________________________________________
107
108AliTOFDecoderSummaryData::~AliTOFDecoderSummaryData()
109{
110 /* default destructor */
9ea619b2 111 delete fDRMSummaryData;
5b4ed716 112}
113
114//_________________________________________________________________
115
116void
117AliTOFDecoderSummaryData::Reset()
118{
119 /* reset function */
120 fRunNumber = 0;
121 fEventNumber = 0;
122 fEquipmentID = 0;
123 fInputWords = 0;
124 fDecodedWords = 0;
125 fDecoderStatus = 0;
126 fErrorDetected = kFALSE;
127 fErrorSlotID = 0;
128 fCurrentDRMID = 0;
129 fCurrentSlotID = 0;
130 fCurrentChain = 0;
131 fV2718Patch = kFALSE;
132 fRecoverError = kFALSE;
133 fRecoveringError = kFALSE;
134 fSpider = kFALSE;
135 fDRMSummaryData->Reset();
136}
137