Line data Source code
1 : /**************************************************************************
2 : * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 : * *
4 : * Author: The ALICE Off-line Project. *
5 : * Contributors are mentioned in the code where appropriate. *
6 : * *
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 : **************************************************************************/
15 :
16 : /* $Id: AliTRDdigitsParam.cxx 34070 2009-08-04 15:34:53Z cblume $ */
17 :
18 : ///////////////////////////////////////////////////////////////////////////////
19 : // //
20 : // Class containing parameters for digits //
21 : // //
22 : ///////////////////////////////////////////////////////////////////////////////
23 :
24 : #include "AliLog.h"
25 :
26 : #include "AliTRDdigitsParam.h"
27 :
28 48 : ClassImp(AliTRDdigitsParam)
29 :
30 : //_____________________________________________________________________________
31 : AliTRDdigitsParam::AliTRDdigitsParam()
32 29 : :TObject()
33 145 : {
34 : //
35 : // Default constructor
36 : //
37 :
38 31378 : for (Int_t i = 0; i < 540; i++) {
39 15660 : fNTimeBins[i] = 0;
40 15660 : fPretriggerPhase[i] = 0;
41 15660 : fADCbaseline[i] = 0;
42 : }
43 :
44 58 : }
45 :
46 : //_____________________________________________________________________________
47 : AliTRDdigitsParam::~AliTRDdigitsParam()
48 116 : {
49 : //
50 : // Destructor
51 : //
52 :
53 116 : }
54 :
55 : //_____________________________________________________________________________
56 : AliTRDdigitsParam::AliTRDdigitsParam(const AliTRDdigitsParam &p)
57 0 : :TObject(p)
58 0 : {
59 : //
60 : // Copy constructor
61 : //
62 :
63 0 : for (Int_t i = 0; i < 540; i++) {
64 0 : fNTimeBins[i] = p.fNTimeBins[i];
65 0 : fPretriggerPhase[i] = p.fPretriggerPhase[i];
66 0 : fADCbaseline[i] = p.fADCbaseline[i];
67 : }
68 :
69 0 : }
70 :
71 : //_____________________________________________________________________________
72 : AliTRDdigitsParam &AliTRDdigitsParam::operator=(const AliTRDdigitsParam &p)
73 : {
74 : //
75 : // Assignment operator
76 : //
77 :
78 0 : if (this != &p) {
79 0 : ((AliTRDdigitsParam &) p).Copy(*this);
80 0 : }
81 :
82 0 : return *this;
83 :
84 : }
85 :
86 : //_____________________________________________________________________________
87 : void AliTRDdigitsParam::Copy(TObject &p) const
88 : {
89 : //
90 : // Copy function
91 : //
92 :
93 0 : AliTRDdigitsParam *target = dynamic_cast<AliTRDdigitsParam*> (&p);
94 0 : if (!target) {
95 0 : return;
96 : }
97 :
98 0 : for (Int_t i = 0; i < 540; i++) {
99 0 : target->fNTimeBins[i] = fNTimeBins[i];
100 0 : target->fPretriggerPhase[i] = fPretriggerPhase[i];
101 0 : target->fADCbaseline[i] = fADCbaseline[i];
102 : }
103 :
104 0 : }
|