]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFLTMSummaryData.cxx
Fixing in/out tags in documentation
[u/mrichter/AliRoot.git] / TOF / AliTOFLTMSummaryData.cxx
CommitLineData
5b4ed716 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
31ClassImp(AliTOFLTMSummaryData)
32
33AliTOFLTMSummaryData::AliTOFLTMSummaryData() :
34 TObject(),
35 fHeader(kFALSE),
36 fTrailer(kFALSE),
37 fSlotID(0),
38 fEventWords(0),
39 fCBit(0),
40 fFault(0),
41 fEventCRC(0),
42 fEventNumber(0),
43 fDecoderCRC(0)
44{
45 /* default constructor */
46 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
47 fPDL[iPDL] = 0;
48 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
49 fADC[iADC] = 0;
50 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
51 fOR[iOR] = 0;
52}
53
54//_________________________________________________________________
55
56AliTOFLTMSummaryData::AliTOFLTMSummaryData(const AliTOFLTMSummaryData &source) :
57 TObject(),
58 fHeader(source.fHeader),
59 fTrailer(source.fTrailer),
60 fSlotID(source.fSlotID),
61 fEventWords(source.fEventWords),
62 fCBit(source.fCBit),
63 fFault(source.fFault),
64 fEventCRC(source.fEventCRC),
65 fEventNumber(source.fEventNumber),
66 fDecoderCRC(source.fDecoderCRC)
67{
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];
75}
76
77//_________________________________________________________________
78
79AliTOFLTMSummaryData &
80AliTOFLTMSummaryData::operator = (const AliTOFLTMSummaryData &source)
81{
82 /* operator = */
83 fHeader = source.fHeader;
84 fTrailer = source.fTrailer;
85 fSlotID = source.fSlotID;
86 fEventWords = source.fEventWords;
87 fCBit = source.fCBit;
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;
98 return *this;
99}
100
101//_________________________________________________________________
102
103AliTOFLTMSummaryData::~AliTOFLTMSummaryData()
104{
105 /* default destructor */
106}
107
108//_________________________________________________________________
109
110void
111AliTOFLTMSummaryData::Reset()
112{
113 /* reset function */
114 fHeader = kFALSE;
115 fTrailer = kFALSE;
116 fSlotID = 0;
117 fEventWords = 0;
118 fCBit = 0;
119 fFault = 0;
120 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
121 fPDL[iPDL] = 0;
122 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
123 fADC[iADC] = 0;
124 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
125 fOR[iOR] = 0;
126 fEventCRC = 0;
127 fEventNumber = 0;
128 fDecoderCRC = 0;
129}
130