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 //-----------------------------------------------------------------------------
19 /// \class AliMUONPadInfo
21 /// Class to summarize ESD data at pad
23 /// \author Philippe Pillot, Subatech
24 //-----------------------------------------------------------------------------
26 #include "AliMUONPadInfo.h"
30 #include <Riostream.h>
35 ClassImp(AliMUONPadInfo)
38 //_____________________________________________________________________________
39 AliMUONPadInfo::AliMUONPadInfo()
58 /// default constructor
61 //_____________________________________________________________________________
62 AliMUONPadInfo::AliMUONPadInfo (const AliMUONPadInfo& padInfo)
64 fPadId(padInfo.fPadId),
65 fPadPlaneType(padInfo.fPadPlaneType),
68 fPadDimX(padInfo.fPadDimX),
69 fPadDimY(padInfo.fPadDimY),
70 fPadCharge(padInfo.fPadCharge),
71 fPadADC(padInfo.fPadADC),
72 fPadSaturated(padInfo.fPadSaturated),
73 fPadCalibrated(padInfo.fPadCalibrated),
74 fPedMean(padInfo.fPedMean),
75 fPedSigma(padInfo.fPedSigma),
76 fGainA0(padInfo.fGainA0),
77 fGainA1(padInfo.fGainA1),
78 fGainThres(padInfo.fGainThres),
79 fGainQual(padInfo.fGainQual)
84 //_____________________________________________________________________________
85 AliMUONPadInfo& AliMUONPadInfo::operator=(const AliMUONPadInfo& padInfo)
88 if (this == &padInfo) return *this;
90 TObject::operator=(padInfo); // don't forget to invoke the base class' assignment operator
92 fPadId = padInfo.fPadId;
93 fPadPlaneType = padInfo.fPadPlaneType;
94 fPadX = padInfo.fPadX;
95 fPadY = padInfo.fPadY;
96 fPadDimX = padInfo.fPadDimX;
97 fPadDimY = padInfo.fPadDimY;
98 fPadCharge = padInfo.fPadCharge;
99 fPadADC = padInfo.fPadADC;
100 fPadSaturated = padInfo.fPadSaturated;
101 fPadCalibrated = padInfo.fPadCalibrated;
102 fPedMean = padInfo.fPedMean;
103 fPedSigma = padInfo.fPedSigma;
104 fGainA0 = padInfo.fGainA0;
105 fGainA1 = padInfo.fGainA1;
106 fGainThres = padInfo.fGainThres;
107 fGainQual = padInfo.fGainQual;
112 //__________________________________________________________________________
113 AliMUONPadInfo::~AliMUONPadInfo()
118 //_____________________________________________________________________________
119 void AliMUONPadInfo::Print(Option_t* option) const
121 /// print pad info content
122 /// also print calibration parameters if option=FULL
124 cout<<Form("- padID=%u (det=%d, manuI=%d, manuC=%d, cath=%d)",
125 GetPadId(), GetDetElemId(), GetManuId(), GetManuChannel(), GetCathode())<<endl;
127 cout<<Form(" position=(%5.2f, %5.2f), dimension=(%5.2f, %5.2f)",
128 GetPadX(), GetPadY(), GetPadDimX(), GetPadDimY())<<endl;
130 cout<<Form(" charge=%5.2f, ADC=%d", GetPadCharge(), GetPadADC())<<endl;
132 if (strstr(option,"FULL")) {
133 cout<<Form(" pedestal (mean=%5.2f, sigma=%5.2f)", GetPedMean(), GetPedSigma())<<endl;
134 cout<<Form(" gain (a0=%5.2f, a1=%5.2f, thres=%d, qual=%d)",
135 GetGainA0(), GetGainA1(), GetGainThres(), GetGainQual())<<endl;