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 if(&source == this) return *this;
78 TObject::operator=(source);
80 fHeader = source.fHeader;
81 fTrailer = source.fTrailer;
82 fSlotID = source.fSlotID;
83 fEventWords = source.fEventWords;
84 fACQBits = source.fACQBits;
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];
95 //_________________________________________________________________
97 AliTOFTRMSummaryData::~AliTOFTRMSummaryData()
99 /* default destructor */
100 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++){
101 delete fChainSummaryData[iChain];
105 //_________________________________________________________________
108 AliTOFTRMSummaryData::Reset()
121 for (Int_t iChain = 0; iChain < N_CHAIN; iChain++)
122 fChainSummaryData[iChain]->Reset();