1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 ***************************************************************************/
17 author: Roberto Preghenella (R+), preghenella@bo.infn.it
21 //////////////////////////////////////////////////////////////////////
24 // This class provides a summary for TRM chain data. //
27 //////////////////////////////////////////////////////////////////////
29 #include "AliTOFChainSummaryData.h"
31 ClassImp(AliTOFChainSummaryData)
33 AliTOFChainSummaryData::AliTOFChainSummaryData() :
45 fTDCPackedHitBuffer(0x0),
48 /* default constructor */
49 fTDCHitBuffer = new AliTOFTDCHitBuffer();
50 fTDCPackedHitBuffer = new AliTOFTDCHitBuffer();
51 fTDCErrorBuffer = new AliTOFTDCErrorBuffer();
54 //_________________________________________________________________
56 AliTOFChainSummaryData::AliTOFChainSummaryData(const AliTOFChainSummaryData &source) :
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),
68 fTDCPackedHitBuffer(0x0),
71 /* copy constructor */
72 fTDCHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCHitBuffer);
73 fTDCPackedHitBuffer = new AliTOFTDCHitBuffer(*source.fTDCPackedHitBuffer);
74 fTDCErrorBuffer = new AliTOFTDCErrorBuffer(*source.fTDCErrorBuffer);
77 //_________________________________________________________________
79 AliTOFChainSummaryData &
80 AliTOFChainSummaryData::operator = (const AliTOFChainSummaryData &source)
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;
98 //_________________________________________________________________
100 AliTOFChainSummaryData::~AliTOFChainSummaryData()
102 /* default destructor */
103 delete fTDCHitBuffer;
104 delete fTDCPackedHitBuffer;
105 delete fTDCErrorBuffer;
108 //_________________________________________________________________
111 AliTOFChainSummaryData::Reset()
123 fTDCHitBuffer->Reset();
124 fTDCPackedHitBuffer->Reset();
125 fTDCErrorBuffer->Reset();