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 data. //
27 //////////////////////////////////////////////////////////////////////
29 #include "AliTOFTRMSummaryData.h"
31 ClassImp(AliTOFTRMSummaryData)
33 AliTOFTRMSummaryData::AliTOFTRMSummaryData() :
46 /* default constructor */
47 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
48 fChainSummaryData[iChain] = new AliTOFChainSummaryData();
51 //_________________________________________________________________
53 AliTOFTRMSummaryData::AliTOFTRMSummaryData(const AliTOFTRMSummaryData &source) :
55 fHeader(source.fHeader),
56 fTrailer(source.fTrailer),
57 fSlotID(source.fSlotID),
58 fEventWords(source.fEventWords),
59 fACQBits(source.fACQBits),
62 fEventCRC(source.fEventCRC),
63 fEventCounter(source.fEventCounter),
64 fDecoderCRC(source.fDecoderCRC)
66 /* copy constructor */
67 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
68 fChainSummaryData[iChain] = new AliTOFChainSummaryData(*source.fChainSummaryData[iChain]);
71 //_________________________________________________________________
73 AliTOFTRMSummaryData &
74 AliTOFTRMSummaryData::operator = (const AliTOFTRMSummaryData &source)
77 fHeader = source.fHeader;
78 fTrailer = source.fTrailer;
79 fSlotID = source.fSlotID;
80 fEventWords = source.fEventWords;
81 fACQBits = source.fACQBits;
84 fEventCRC = source.fEventCRC;
85 fEventCounter = source.fEventCounter;
86 fDecoderCRC = source.fDecoderCRC;
87 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
88 *fChainSummaryData[iChain] = *source.fChainSummaryData[iChain];
92 //_________________________________________________________________
94 AliTOFTRMSummaryData::~AliTOFTRMSummaryData()
96 /* default destructor */
97 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
98 delete fChainSummaryData[iChain];
101 //_________________________________________________________________
104 AliTOFTRMSummaryData::Reset()
117 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
118 fChainSummaryData[iChain]->Reset();