Line data Source code
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 class provides a summary for LTM data. //
25 : // //
26 : // //
27 : //////////////////////////////////////////////////////////////////////
28 :
29 : #include "AliTOFLTMSummaryData.h"
30 :
31 26 : ClassImp(AliTOFLTMSummaryData)
32 :
33 : AliTOFLTMSummaryData::AliTOFLTMSummaryData() :
34 10 : TObject(),
35 10 : fHeader(kFALSE),
36 10 : fTrailer(kFALSE),
37 10 : fSlotID(0),
38 10 : fEventWords(0),
39 10 : fCBit(0),
40 10 : fFault(0),
41 10 : fEventCRC(0),
42 10 : fEventNumber(0),
43 10 : fDecoderCRC(0)
44 50 : {
45 : /* default constructor */
46 980 : for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
47 480 : fPDL[iPDL] = 0;
48 1220 : for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
49 600 : fADC[iADC] = 0;
50 980 : for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
51 480 : fOR[iOR] = 0;
52 20 : }
53 :
54 : //_________________________________________________________________
55 :
56 : AliTOFLTMSummaryData::AliTOFLTMSummaryData(const AliTOFLTMSummaryData &source) :
57 0 : TObject(source),
58 0 : fHeader(source.fHeader),
59 0 : fTrailer(source.fTrailer),
60 0 : fSlotID(source.fSlotID),
61 0 : fEventWords(source.fEventWords),
62 0 : fCBit(source.fCBit),
63 0 : fFault(source.fFault),
64 0 : fEventCRC(source.fEventCRC),
65 0 : fEventNumber(source.fEventNumber),
66 0 : fDecoderCRC(source.fDecoderCRC)
67 0 : {
68 : /* copy constructor */
69 0 : for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
70 0 : fPDL[iPDL] = source.fPDL[iPDL];
71 0 : for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
72 0 : fADC[iADC] = source.fADC[iADC];
73 0 : for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
74 0 : fOR[iOR] = source.fOR[iOR];
75 0 : }
76 :
77 : //_________________________________________________________________
78 :
79 : AliTOFLTMSummaryData &
80 : AliTOFLTMSummaryData::operator = (const AliTOFLTMSummaryData &source)
81 : {
82 : /* operator = */
83 0 : if(&source == this) return *this;
84 0 : TObject::operator=(source);
85 :
86 0 : fHeader = source.fHeader;
87 0 : fTrailer = source.fTrailer;
88 0 : fSlotID = source.fSlotID;
89 0 : fEventWords = source.fEventWords;
90 0 : fCBit = source.fCBit;
91 0 : fFault = source.fFault;
92 0 : for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
93 0 : fPDL[iPDL] = source.fPDL[iPDL];
94 0 : for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
95 0 : fADC[iADC] = source.fADC[iADC];
96 0 : for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
97 0 : fOR[iOR] = source.fOR[iOR];
98 0 : fEventCRC = source.fEventCRC;
99 0 : fEventNumber = source.fEventNumber;
100 0 : fDecoderCRC = source.fDecoderCRC;
101 0 : return *this;
102 0 : }
103 :
104 : //_________________________________________________________________
105 :
106 : AliTOFLTMSummaryData::~AliTOFLTMSummaryData()
107 32 : {
108 : /* default destructor */
109 32 : }
110 :
111 : //_________________________________________________________________
112 :
113 : void
114 : AliTOFLTMSummaryData::Reset()
115 : {
116 : /* reset function */
117 3456 : fHeader = kFALSE;
118 1728 : fTrailer = kFALSE;
119 1728 : fSlotID = 0;
120 1728 : fEventWords = 0;
121 1728 : fCBit = 0;
122 1728 : fFault = 0;
123 169344 : for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
124 82944 : fPDL[iPDL] = 0;
125 210816 : for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
126 103680 : fADC[iADC] = 0;
127 169344 : for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
128 82944 : fOR[iOR] = 0;
129 1728 : fEventCRC = 0;
130 1728 : fEventNumber = 0;
131 1728 : fDecoderCRC = 0;
132 1728 : }
133 :
|