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 : 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 :
31 26 : ClassImp(AliTOFDecoderSummaryData)
32 :
33 : AliTOFDecoderSummaryData::AliTOFDecoderSummaryData() :
34 10 : TObject(),
35 10 : fRunNumber(0),
36 10 : fEventNumber(0),
37 10 : fEquipmentID(0),
38 10 : fInputWords(0),
39 10 : fDecodedWords(0),
40 10 : fDecoderStatus(0),
41 10 : fErrorDetected(kFALSE),
42 10 : fErrorSlotID(0),
43 10 : fCurrentDRMID(0),
44 10 : fCurrentSlotID(0),
45 10 : fCurrentChain(0),
46 10 : fV2718Patch(kFALSE),
47 10 : fRecoverError(kFALSE),
48 10 : fRecoveringError(kFALSE),
49 10 : fSpider(kFALSE),
50 10 : fDRMSummaryData(0x0)
51 50 : {
52 : /* default constructor */
53 30 : fDRMSummaryData = new AliTOFDRMSummaryData();
54 20 : }
55 :
56 : //_________________________________________________________________
57 :
58 : AliTOFDecoderSummaryData::AliTOFDecoderSummaryData(const AliTOFDecoderSummaryData &source) :
59 0 : TObject(source),
60 0 : fRunNumber(source.fRunNumber),
61 0 : fEventNumber(source.fEventNumber),
62 0 : fEquipmentID(source.fEquipmentID),
63 0 : fInputWords(source.fInputWords),
64 0 : fDecodedWords(source.fDecodedWords),
65 0 : fDecoderStatus(source.fDecoderStatus),
66 0 : fErrorDetected(source.fErrorDetected),
67 0 : fErrorSlotID(source.fErrorSlotID),
68 0 : fCurrentDRMID(source.fCurrentDRMID),
69 0 : fCurrentSlotID(source.fCurrentSlotID),
70 0 : fCurrentChain(source.fCurrentChain),
71 0 : fV2718Patch(source.fV2718Patch),
72 0 : fRecoverError(source.fRecoverError),
73 0 : fRecoveringError(source.fRecoveringError),
74 0 : fSpider(kFALSE),
75 0 : fDRMSummaryData(0x0)
76 0 : {
77 : /* copy constructor */
78 0 : fDRMSummaryData = new AliTOFDRMSummaryData(*source.fDRMSummaryData);
79 0 : }
80 :
81 : //_________________________________________________________________
82 :
83 : AliTOFDecoderSummaryData &
84 : AliTOFDecoderSummaryData::operator = (const AliTOFDecoderSummaryData &source)
85 : {
86 : /* operator = */
87 0 : if(&source == this) return *this;
88 0 : TObject::operator=(source);
89 :
90 0 : fRunNumber = source.fRunNumber;
91 0 : fEventNumber = source.fEventNumber;
92 0 : fEquipmentID = source.fEquipmentID;
93 0 : fInputWords = source.fInputWords;
94 0 : fDecodedWords = source.fDecodedWords;
95 0 : fDecoderStatus = source.fDecoderStatus;
96 0 : fErrorDetected = source.fErrorDetected;
97 0 : fErrorSlotID = source.fErrorSlotID;
98 0 : fCurrentDRMID = source.fCurrentDRMID;
99 0 : fCurrentSlotID = source.fCurrentSlotID;
100 0 : fCurrentChain = source.fCurrentChain;
101 0 : fV2718Patch = source.fV2718Patch;
102 0 : fRecoverError = source.fRecoverError;
103 0 : fRecoveringError = source.fRecoveringError;
104 0 : fSpider = source.fSpider;
105 0 : *fDRMSummaryData = *source.fDRMSummaryData;
106 0 : return *this;
107 0 : }
108 :
109 : //_________________________________________________________________
110 :
111 : AliTOFDecoderSummaryData::~AliTOFDecoderSummaryData()
112 48 : {
113 : /* default destructor */
114 16 : delete fDRMSummaryData;
115 24 : }
116 :
117 : //_________________________________________________________________
118 :
119 : void
120 : AliTOFDecoderSummaryData::Reset()
121 : {
122 : /* reset function */
123 1152 : fRunNumber = 0;
124 576 : fEventNumber = 0;
125 576 : fEquipmentID = 0;
126 576 : fInputWords = 0;
127 576 : fDecodedWords = 0;
128 576 : fDecoderStatus = 0;
129 576 : fErrorDetected = kFALSE;
130 576 : fErrorSlotID = 0;
131 576 : fCurrentDRMID = 0;
132 576 : fCurrentSlotID = 0;
133 576 : fCurrentChain = 0;
134 576 : fV2718Patch = kFALSE;
135 576 : fRecoverError = kFALSE;
136 576 : fRecoveringError = kFALSE;
137 576 : fSpider = kFALSE;
138 576 : fDRMSummaryData->Reset();
139 576 : }
140 :
|