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 fHeader = source.fHeader;
84 fTrailer = source.fTrailer;
85 fSlotID = source.fSlotID;
86 fEventWords = source.fEventWords;
88 fFault = source.fFault;
89 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
90 fPDL[iPDL] = source.fPDL[iPDL];
91 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
92 fADC[iADC] = source.fADC[iADC];
93 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
94 fOR[iOR] = source.fOR[iOR];
95 fEventCRC = source.fEventCRC;
96 fEventNumber = source.fEventNumber;
97 fDecoderCRC = source.fDecoderCRC;
101 //_________________________________________________________________
103 AliTOFLTMSummaryData::~AliTOFLTMSummaryData()
105 /* default destructor */
108 //_________________________________________________________________
111 AliTOFLTMSummaryData::Reset()
120 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
122 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
124 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)