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 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;
106 //_________________________________________________________________
108 AliTOFDecoderSummaryData::~AliTOFDecoderSummaryData()
110 /* default destructor */
111 delete fDRMSummaryData;
114 //_________________________________________________________________
117 AliTOFDecoderSummaryData::Reset()
126 fErrorDetected = kFALSE;
131 fV2718Patch = kFALSE;
132 fRecoverError = kFALSE;
133 fRecoveringError = kFALSE;
135 fDRMSummaryData->Reset();