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 if(&source == this) return *this;
84 TObject::operator=(source);
86 fHeader = source.fHeader;
87 fTrailer = source.fTrailer;
88 fChain = source.fChain;
89 fBunchID = source.fBunchID;
90 fPB24Temp = source.fPB24Temp;
91 fPB24ID = source.fPB24ID;
92 fTSBit = source.fTSBit;
93 fStatus = source.fStatus;
94 fEventCounter = source.fEventCounter;
95 *fTDCHitBuffer = *source.fTDCHitBuffer;
96 *fTDCPackedHitBuffer = *source.fTDCPackedHitBuffer;
97 *fTDCErrorBuffer = *source.fTDCErrorBuffer;
101 //_________________________________________________________________
103 AliTOFChainSummaryData::~AliTOFChainSummaryData()
105 /* default destructor */
106 delete fTDCHitBuffer;
107 delete fTDCPackedHitBuffer;
108 delete fTDCErrorBuffer;
111 //_________________________________________________________________
114 AliTOFChainSummaryData::Reset()
126 fTDCHitBuffer->Reset();
127 fTDCPackedHitBuffer->Reset();
128 fTDCErrorBuffer->Reset();