]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/ESD/AliESDMuonPad.cxx
drawCorrelation macro adapted for Toy Model (MW)
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDMuonPad.cxx
CommitLineData
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
66b0310c 32using std::endl;
33using std::cout;
c34d2b8c 34/// \cond CLASSIMP
35ClassImp(AliESDMuonPad)
36/// \endcond
37
38//_____________________________________________________________________________
39AliESDMuonPad::AliESDMuonPad()
40: TObject(),
41 fADC(0),
42 fCharge(0.)
43{
44 /// default constructor
45}
46
47//_____________________________________________________________________________
48AliESDMuonPad::AliESDMuonPad (const AliESDMuonPad& pad)
49: TObject(pad),
50 fADC(pad.fADC),
51 fCharge(pad.fCharge)
52{
53 /// Copy constructor
54}
55
56//_____________________________________________________________________________
57AliESDMuonPad& AliESDMuonPad::operator=(const AliESDMuonPad& pad)
58{
59 /// Equal operator
60 if (this == &pad) return *this;
61
62 TObject::operator=(pad); // don't forget to invoke the base class' assignment operator
63
64 fADC = pad.fADC;
65 fCharge = pad.fCharge;
66
67 return *this;
68}
69
0ca5f1d4 70//_____________________________________________________________________________
71void AliESDMuonPad::Copy(TObject &obj) const {
72
73 /// This overwrites the virtual TOBject::Copy()
74 /// to allow run time copying without casting
75 /// in AliESDEvent
76
77 if(this==&obj)return;
78 AliESDMuonPad *robj = dynamic_cast<AliESDMuonPad*>(&obj);
79 if(!robj)return; // not an AliESDMuonPad
80 *robj = *this;
81
82}
83
c34d2b8c 84//_____________________________________________________________________________
85void AliESDMuonPad::Print(Option_t */*option*/) const
86{
87 /// print cluster content
88 UInt_t cId = GetUniqueID();
89
90 cout<<Form("padID=%u (det=%d, manu=%d, manuChannel=%d, cathode=%d)",
91 cId, GetDetElemId(), GetManuId(), GetManuChannel(), GetCathode())<<endl;
92
93 cout<<Form(" raw charge=%d, calibrated charge=%5.2f", GetADC(), GetCharge())<<endl;
94}
95