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 **************************************************************************/
18 #include "AliITSgeom.h"
19 #include "AliITSresponseSDD.h"
25 //___________________________________________
26 ClassImp(AliITSresponseSDD)
28 AliITSresponseSDD::AliITSresponseSDD()
47 //__________________________________________________________________________
48 AliITSresponseSDD::AliITSresponseSDD(const AliITSresponseSDD &source){
50 if(&source == this) return;
51 this->fCPar = source.fCPar;
52 this->fNoise = source.fNoise;
53 this->fBaseline = source.fBaseline;
54 this->fTopValue = source.fTopValue;
55 this->fTemperature = source.fTemperature;
56 this->fDriftSpeed = source.fDriftSpeed;
57 this->fMaxAdc = source.fMaxAdc;
58 this->fDiffCoeff = source.fDiffCoeff;
59 this->fQref = source.fQref;
60 this->fZeroSuppFlag = source.fZeroSuppFlag;
61 this->fMinVal = source.fMinVal;
62 this->fWrite = source.fWrite;
63 this->fOption = source.fOption;
64 this->fParam1 = source.fParam1;
68 //_________________________________________________________________________
70 AliITSresponseSDD::operator=(const AliITSresponseSDD &source) {
71 // Assignment operator
72 if(&source == this) return *this;
73 this->fCPar = source.fCPar;
74 this->fNoise = source.fNoise;
75 this->fBaseline = source.fBaseline;
76 this->fTopValue = source.fTopValue;
77 this->fTemperature = source.fTemperature;
78 this->fDriftSpeed = source.fDriftSpeed;
79 this->fMaxAdc = source.fMaxAdc;
80 this->fDiffCoeff = source.fDiffCoeff;
81 this->fQref = source.fQref;
82 this->fZeroSuppFlag = source.fZeroSuppFlag;
83 this->fMinVal = source.fMinVal;
84 this->fWrite = source.fWrite;
85 this->fOption = source.fOption;
86 this->fParam1 = source.fParam1;
90 void AliITSresponseSDD::SetCompressParam(Int_t cp[8])
92 // set compression param
96 //printf("\n CompressPar %d %d \n",i,fCPar[i]);
100 void AliITSresponseSDD::GiveCompressParam(Int_t cp[8])
102 // give compression param
108 //______________________________________________________________________________
109 void AliITSresponseSDD::Streamer(TBuffer &R__b)
111 // Stream an object of class AliITSresponseSDD.
113 if (R__b.IsReading()) {
114 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
115 AliITSresponse::Streamer(R__b);
116 R__b.ReadStaticArray(fCPar);
120 R__b >> fTemperature;
125 R__b >> fZeroSuppFlag;
128 //R__b.ReadArray(fOption); // Not to be printed out?
129 //R__b.ReadArray(fParam1); // Not to be printed out?
130 //R__b.ReadArray(fParam2); // Not to be printed out?
131 fDataType.Streamer(R__b);
132 fFileName1.Streamer(R__b);
133 fFileName2.Streamer(R__b);
134 fFileName3.Streamer(R__b);
136 R__b.WriteVersion(AliITSresponseSDD::IsA());
137 AliITSresponse::Streamer(R__b);
138 R__b.WriteArray(fCPar, 8);
142 R__b << fTemperature;
147 R__b << fZeroSuppFlag;
150 //R__b.WriteArray(fOption, __COUNTER__); // Not to be printed out?
151 //R__b.WriteArray(fParam1, __COUNTER__); // Not to be printed out?
152 //R__b.WriteArray(fParam2, __COUNTER__); // Not to be printed out?
153 fDataType.Streamer(R__b);
154 fFileName1.Streamer(R__b);
155 fFileName2.Streamer(R__b);
156 fFileName3.Streamer(R__b);