]>
Commit | Line | Data |
---|---|---|
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 | ||
31 | ClassImp(AliTOFDecoderSummaryData) | |
32 | ||
33 | AliTOFDecoderSummaryData::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 | ||
58 | AliTOFDecoderSummaryData::AliTOFDecoderSummaryData(const AliTOFDecoderSummaryData &source) : | |
e99fb5c9 | 59 | TObject(source), |
5b4ed716 | 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 | ||
83 | AliTOFDecoderSummaryData & | |
84 | AliTOFDecoderSummaryData::operator = (const AliTOFDecoderSummaryData &source) | |
85 | { | |
86 | /* operator = */ | |
e99fb5c9 | 87 | if(&source == this) return *this; |
88 | TObject::operator=(source); | |
89 | ||
5b4ed716 | 90 | fRunNumber = source.fRunNumber; |
91 | fEventNumber = source.fEventNumber; | |
92 | fEquipmentID = source.fEquipmentID; | |
93 | fInputWords = source.fInputWords; | |
94 | fDecodedWords = source.fDecodedWords; | |
95 | fDecoderStatus = source.fDecoderStatus; | |
96 | fErrorDetected = source.fErrorDetected; | |
97 | fErrorSlotID = source.fErrorSlotID; | |
98 | fCurrentDRMID = source.fCurrentDRMID; | |
99 | fCurrentSlotID = source.fCurrentSlotID; | |
100 | fCurrentChain = source.fCurrentChain; | |
101 | fV2718Patch = source.fV2718Patch; | |
102 | fRecoverError = source.fRecoverError; | |
103 | fRecoveringError = source.fRecoveringError; | |
104 | fSpider = source.fSpider; | |
105 | *fDRMSummaryData = *source.fDRMSummaryData; | |
106 | return *this; | |
107 | } | |
108 | ||
109 | //_________________________________________________________________ | |
110 | ||
111 | AliTOFDecoderSummaryData::~AliTOFDecoderSummaryData() | |
112 | { | |
113 | /* default destructor */ | |
9ea619b2 | 114 | delete fDRMSummaryData; |
5b4ed716 | 115 | } |
116 | ||
117 | //_________________________________________________________________ | |
118 | ||
119 | void | |
120 | AliTOFDecoderSummaryData::Reset() | |
121 | { | |
122 | /* reset function */ | |
123 | fRunNumber = 0; | |
124 | fEventNumber = 0; | |
125 | fEquipmentID = 0; | |
126 | fInputWords = 0; | |
127 | fDecodedWords = 0; | |
128 | fDecoderStatus = 0; | |
129 | fErrorDetected = kFALSE; | |
130 | fErrorSlotID = 0; | |
131 | fCurrentDRMID = 0; | |
132 | fCurrentSlotID = 0; | |
133 | fCurrentChain = 0; | |
134 | fV2718Patch = kFALSE; | |
135 | fRecoverError = kFALSE; | |
136 | fRecoveringError = kFALSE; | |
137 | fSpider = kFALSE; | |
138 | fDRMSummaryData->Reset(); | |
139 | } | |
140 |