1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 ***************************************************************************/
17 author: Roberto Preghenella (R+), preghenella@bo.infn.it
21 //////////////////////////////////////////////////////////////////////
24 // This classes provide decoder summaries for data. //
27 //////////////////////////////////////////////////////////////////////
29 #include "AliTOFDecoderSummaryData.h"
31 ClassImp(AliTOFDecoderSummaryData)
33 AliTOFDecoderSummaryData::AliTOFDecoderSummaryData() :
41 fErrorDetected(kFALSE),
47 fRecoverError(kFALSE),
48 fRecoveringError(kFALSE),
52 /* default constructor */
53 fDRMSummaryData = new AliTOFDRMSummaryData();
56 //_________________________________________________________________
58 AliTOFDecoderSummaryData::AliTOFDecoderSummaryData(const AliTOFDecoderSummaryData &source) :
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),
77 /* copy constructor */
78 fDRMSummaryData = new AliTOFDRMSummaryData(*source.fDRMSummaryData);
81 //_________________________________________________________________
83 AliTOFDecoderSummaryData &
84 AliTOFDecoderSummaryData::operator = (const AliTOFDecoderSummaryData &source)
87 if(&source == this) return *this;
88 TObject::operator=(source);
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;
109 //_________________________________________________________________
111 AliTOFDecoderSummaryData::~AliTOFDecoderSummaryData()
113 /* default destructor */
114 delete fDRMSummaryData;
117 //_________________________________________________________________
120 AliTOFDecoderSummaryData::Reset()
129 fErrorDetected = kFALSE;
134 fV2718Patch = kFALSE;
135 fRecoverError = kFALSE;
136 fRecoveringError = kFALSE;
138 fDRMSummaryData->Reset();