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 class provides a summary for LTM data. //
27 //////////////////////////////////////////////////////////////////////
29 #include "AliTOFLTMSummaryData.h"
31 ClassImp(AliTOFLTMSummaryData)
33 AliTOFLTMSummaryData::AliTOFLTMSummaryData() :
45 /* default constructor */
46 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
48 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
50 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
54 //_________________________________________________________________
56 AliTOFLTMSummaryData::AliTOFLTMSummaryData(const AliTOFLTMSummaryData &source) :
58 fHeader(source.fHeader),
59 fTrailer(source.fTrailer),
60 fSlotID(source.fSlotID),
61 fEventWords(source.fEventWords),
63 fFault(source.fFault),
64 fEventCRC(source.fEventCRC),
65 fEventNumber(source.fEventNumber),
66 fDecoderCRC(source.fDecoderCRC)
68 /* copy constructor */
69 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
70 fPDL[iPDL] = source.fPDL[iPDL];
71 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
72 fADC[iADC] = source.fADC[iADC];
73 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
74 fOR[iOR] = source.fOR[iOR];
77 //_________________________________________________________________
79 AliTOFLTMSummaryData &
80 AliTOFLTMSummaryData::operator = (const AliTOFLTMSummaryData &source)
83 if(&source == this) return *this;
84 TObject::operator=(source);
86 fHeader = source.fHeader;
87 fTrailer = source.fTrailer;
88 fSlotID = source.fSlotID;
89 fEventWords = source.fEventWords;
91 fFault = source.fFault;
92 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
93 fPDL[iPDL] = source.fPDL[iPDL];
94 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
95 fADC[iADC] = source.fADC[iADC];
96 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
97 fOR[iOR] = source.fOR[iOR];
98 fEventCRC = source.fEventCRC;
99 fEventNumber = source.fEventNumber;
100 fDecoderCRC = source.fDecoderCRC;
104 //_________________________________________________________________
106 AliTOFLTMSummaryData::~AliTOFLTMSummaryData()
108 /* default destructor */
111 //_________________________________________________________________
114 AliTOFLTMSummaryData::Reset()
123 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
125 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
127 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)