]>
Commit | Line | Data |
---|---|---|
c34d2b8c | 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$ | |
17 | ||
18 | //----------------------------------------------------------------------------- | |
19 | /// \class AliESDMuonPad | |
20 | /// | |
21 | /// Class to describe the MUON pads in the Event Summary Data | |
22 | /// | |
23 | /// \author Philippe Pillot, Subatech | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
26 | #include "AliESDMuonPad.h" | |
27 | ||
28 | #include "AliLog.h" | |
29 | ||
30 | #include <Riostream.h> | |
31 | ||
32 | /// \cond CLASSIMP | |
33 | ClassImp(AliESDMuonPad) | |
34 | /// \endcond | |
35 | ||
36 | //_____________________________________________________________________________ | |
37 | AliESDMuonPad::AliESDMuonPad() | |
38 | : TObject(), | |
39 | fADC(0), | |
40 | fCharge(0.) | |
41 | { | |
42 | /// default constructor | |
43 | } | |
44 | ||
45 | //_____________________________________________________________________________ | |
46 | AliESDMuonPad::AliESDMuonPad (const AliESDMuonPad& pad) | |
47 | : TObject(pad), | |
48 | fADC(pad.fADC), | |
49 | fCharge(pad.fCharge) | |
50 | { | |
51 | /// Copy constructor | |
52 | } | |
53 | ||
54 | //_____________________________________________________________________________ | |
55 | AliESDMuonPad& AliESDMuonPad::operator=(const AliESDMuonPad& pad) | |
56 | { | |
57 | /// Equal operator | |
58 | if (this == &pad) return *this; | |
59 | ||
60 | TObject::operator=(pad); // don't forget to invoke the base class' assignment operator | |
61 | ||
62 | fADC = pad.fADC; | |
63 | fCharge = pad.fCharge; | |
64 | ||
65 | return *this; | |
66 | } | |
67 | ||
68 | //_____________________________________________________________________________ | |
69 | void AliESDMuonPad::Print(Option_t */*option*/) const | |
70 | { | |
71 | /// print cluster content | |
72 | UInt_t cId = GetUniqueID(); | |
73 | ||
74 | cout<<Form("padID=%u (det=%d, manu=%d, manuChannel=%d, cathode=%d)", | |
75 | cId, GetDetElemId(), GetManuId(), GetManuChannel(), GetCathode())<<endl; | |
76 | ||
77 | cout<<Form(" raw charge=%d, calibrated charge=%5.2f", GetADC(), GetCharge())<<endl; | |
78 | } | |
79 |