Added macro to lauch TOF QA task with extended functionality via plugin
[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) :
e99fb5c9 57 TObject(source),
5b4ed716 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 = */
e99fb5c9 83 if(&source == this) return *this;
84 TObject::operator=(source);
85
5b4ed716 86 fHeader = source.fHeader;
87 fTrailer = source.fTrailer;
88 fSlotID = source.fSlotID;
89 fEventWords = source.fEventWords;
90 fCBit = source.fCBit;
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;
101 return *this;
102}
103
104//_________________________________________________________________
105
106AliTOFLTMSummaryData::~AliTOFLTMSummaryData()
107{
108 /* default destructor */
109}
110
111//_________________________________________________________________
112
113void
114AliTOFLTMSummaryData::Reset()
115{
116 /* reset function */
117 fHeader = kFALSE;
118 fTrailer = kFALSE;
119 fSlotID = 0;
120 fEventWords = 0;
121 fCBit = 0;
122 fFault = 0;
123 for (Int_t iPDL = 0; iPDL < LTM_N_PDL; iPDL++)
124 fPDL[iPDL] = 0;
125 for (Int_t iADC = 0; iADC < LTM_N_ADC; iADC++)
126 fADC[iADC] = 0;
127 for (Int_t iOR = 0; iOR < LTM_N_OR; iOR++)
128 fOR[iOR] = 0;
129 fEventCRC = 0;
130 fEventNumber = 0;
131 fDecoderCRC = 0;
132}
133