]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFTRMSummaryData.cxx
Adding PiKP-only resolution histograms and switch to turn off many histograms which...
[u/mrichter/AliRoot.git] / TOF / AliTOFTRMSummaryData.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 TRM data. //
25// //
26// //
27//////////////////////////////////////////////////////////////////////
28
29#include "AliTOFTRMSummaryData.h"
30
31ClassImp(AliTOFTRMSummaryData)
32
33AliTOFTRMSummaryData::AliTOFTRMSummaryData() :
34 TObject(),
35 fHeader(kFALSE),
36 fTrailer(kFALSE),
37 fSlotID(0),
38 fEventWords(0),
39 fACQBits(0),
40 fLBit(0),
41 fEBit(0),
42 fEventCRC(0),
43 fEventCounter(0),
44 fDecoderCRC(0)
45{
46 /* default constructor */
47 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
48 fChainSummaryData[iChain] = new AliTOFChainSummaryData();
49}
50
51//_________________________________________________________________
52
53AliTOFTRMSummaryData::AliTOFTRMSummaryData(const AliTOFTRMSummaryData &source) :
e99fb5c9 54 TObject(source),
5b4ed716 55 fHeader(source.fHeader),
56 fTrailer(source.fTrailer),
57 fSlotID(source.fSlotID),
58 fEventWords(source.fEventWords),
59 fACQBits(source.fACQBits),
60 fLBit(source.fLBit),
61 fEBit(source.fEBit),
62 fEventCRC(source.fEventCRC),
63 fEventCounter(source.fEventCounter),
64 fDecoderCRC(source.fDecoderCRC)
65{
66 /* copy constructor */
67 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
68 fChainSummaryData[iChain] = new AliTOFChainSummaryData(*source.fChainSummaryData[iChain]);
69}
70
71//_________________________________________________________________
72
73AliTOFTRMSummaryData &
74AliTOFTRMSummaryData::operator = (const AliTOFTRMSummaryData &source)
75{
76 /* operator = */
e99fb5c9 77 if(&source == this) return *this;
78 TObject::operator=(source);
79
5b4ed716 80 fHeader = source.fHeader;
81 fTrailer = source.fTrailer;
82 fSlotID = source.fSlotID;
83 fEventWords = source.fEventWords;
84 fACQBits = source.fACQBits;
85 fLBit = source.fLBit;
86 fEBit = source.fEBit;
87 fEventCRC = source.fEventCRC;
88 fEventCounter = source.fEventCounter;
89 fDecoderCRC = source.fDecoderCRC;
90 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
91 *fChainSummaryData[iChain] = *source.fChainSummaryData[iChain];
92 return *this;
93}
94
95//_________________________________________________________________
96
97AliTOFTRMSummaryData::~AliTOFTRMSummaryData()
98{
99 /* default destructor */
9ea619b2 100 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++){
4ffe47bf 101 delete fChainSummaryData[iChain];
9ea619b2 102 }
5b4ed716 103}
104
105//_________________________________________________________________
106
107void
108AliTOFTRMSummaryData::Reset()
109{
110 /* reset function */
111 fHeader = kFALSE;
112 fTrailer = kFALSE;
113 fSlotID = 0;
114 fEventWords = 0;
115 fACQBits = 0;
116 fLBit = 0;
117 fEBit = 0;
118 fEventCRC = 0;
119 fEventCounter = 0;
120 fDecoderCRC = 0;
121 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
122 fChainSummaryData[iChain]->Reset();
123}
124