]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFChainSummaryData.cxx
Coverity Fix.
[u/mrichter/AliRoot.git] / TOF / AliTOFChainSummaryData.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 chain data. //
25// //
26// //
27//////////////////////////////////////////////////////////////////////
28
29#include "AliTOFChainSummaryData.h"
30
31ClassImp(AliTOFChainSummaryData)
32
33AliTOFChainSummaryData::AliTOFChainSummaryData() :
34 TObject(),
35 fHeader(kFALSE),
36 fTrailer(kFALSE),
37 fChain(0),
38 fBunchID(0),
39 fPB24Temp(0),
40 fPB24ID(0),
41 fTSBit(0),
42 fStatus(0),
43 fEventCounter(0),
44 fTDCHitBuffer(0x0),
45 fTDCPackedHitBuffer(0x0),
46 fTDCErrorBuffer(0x0)
47{
48 /* default constructor */
49 fTDCHitBuffer = new AliTOFTDCHitBuffer();
50 fTDCPackedHitBuffer = new AliTOFTDCHitBuffer();
51 fTDCErrorBuffer = new AliTOFTDCErrorBuffer();
52}
53
54//_________________________________________________________________
55
56AliTOFChainSummaryData::AliTOFChainSummaryData(const AliTOFChainSummaryData &source) :
57 TObject(),
58 fHeader(source.fHeader),
59 fTrailer(source.fTrailer),
60 fChain(source.fChain),
61 fBunchID(source.fBunchID),
62 fPB24Temp(source.fPB24Temp),
63 fPB24ID(source.fPB24ID),
64 fTSBit(source.fTSBit),
65 fStatus(source.fStatus),
66 fEventCounter(source.fEventCounter),
67 fTDCHitBuffer(0x0),
68 fTDCPackedHitBuffer(0x0),
69 fTDCErrorBuffer(0x0)
70{
71/* copy constructor */
72 fTDCHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCHitBuffer);
73 fTDCPackedHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCPackedHitBuffer);
74 fTDCErrorBuffer = new AliTOFTDCErrorBuffer(*source.fTDCErrorBuffer);
75}
76
77//_________________________________________________________________
78
79AliTOFChainSummaryData &
80AliTOFChainSummaryData::operator = (const AliTOFChainSummaryData &source)
81{
82 /* operator = */
83 fHeader = source.fHeader;
84 fTrailer = source.fTrailer;
85 fChain = source.fChain;
86 fBunchID = source.fBunchID;
87 fPB24Temp = source.fPB24Temp;
88 fPB24ID = source.fPB24ID;
89 fTSBit = source.fTSBit;
90 fStatus = source.fStatus;
91 fEventCounter = source.fEventCounter;
92 *fTDCHitBuffer = *source.fTDCHitBuffer;
93 *fTDCPackedHitBuffer = *source.fTDCPackedHitBuffer;
94 *fTDCErrorBuffer = *source.fTDCErrorBuffer;
95 return *this;
96}
97
98//_________________________________________________________________
99
100AliTOFChainSummaryData::~AliTOFChainSummaryData()
101{
102 /* default destructor */
9ea619b2 103 delete fTDCHitBuffer;
9ea619b2 104 delete fTDCPackedHitBuffer;
9ea619b2 105 delete fTDCErrorBuffer;
5b4ed716 106}
107
108//_________________________________________________________________
109
110void
111AliTOFChainSummaryData::Reset()
112{
113 /* reset function */
114 fHeader = kFALSE;
115 fTrailer = kFALSE;
116 fChain = 0;
117 fBunchID = 0;
118 fPB24Temp = 0;
119 fPB24ID = 0;
120 fTSBit = 0;
121 fStatus = 0;
122 fEventCounter = 0;
123 fTDCHitBuffer->Reset();
124 fTDCPackedHitBuffer->Reset();
125 fTDCErrorBuffer->Reset();
126}