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 **************************************************************************/
16 /* $Id: AliTRDdigitsParam.cxx 34070 2009-08-04 15:34:53Z cblume $ */
18 ///////////////////////////////////////////////////////////////////////////////
20 // Class containing parameters for digits //
22 ///////////////////////////////////////////////////////////////////////////////
26 #include "AliTRDdigitsParam.h"
28 ClassImp(AliTRDdigitsParam)
30 //_____________________________________________________________________________
31 AliTRDdigitsParam::AliTRDdigitsParam()
35 // Default constructor
38 for (Int_t i = 0; i < 540; i++) {
40 fPretriggerPhase[i] = 0;
46 //_____________________________________________________________________________
47 AliTRDdigitsParam::~AliTRDdigitsParam()
55 //_____________________________________________________________________________
56 AliTRDdigitsParam::AliTRDdigitsParam(const AliTRDdigitsParam &p)
63 for (Int_t i = 0; i < 540; i++) {
64 fNTimeBins[i] = p.fNTimeBins[i];
65 fPretriggerPhase[i] = p.fPretriggerPhase[i];
66 fADCbaseline[i] = p.fADCbaseline[i];
71 //_____________________________________________________________________________
72 AliTRDdigitsParam &AliTRDdigitsParam::operator=(const AliTRDdigitsParam &p)
75 // Assignment operator
79 ((AliTRDdigitsParam &) p).Copy(*this);
86 //_____________________________________________________________________________
87 void AliTRDdigitsParam::Copy(TObject &p) const
93 AliTRDdigitsParam *target = dynamic_cast<AliTRDdigitsParam*> (&p);
98 for (Int_t i = 0; i < 540; i++) {
99 target->fNTimeBins[i] = fNTimeBins[i];
100 target->fPretriggerPhase[i] = fPretriggerPhase[i];
101 target->fADCbaseline[i] = fADCbaseline[i];