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 AliESDMuonPad
21 /// Class to describe the MUON pads in the Event Summary Data
23 /// \author Philippe Pillot, Subatech
24 //-----------------------------------------------------------------------------
26 #include "AliESDMuonPad.h"
30 #include <Riostream.h>
35 ClassImp(AliESDMuonPad)
38 //_____________________________________________________________________________
39 AliESDMuonPad::AliESDMuonPad()
44 /// default constructor
47 //_____________________________________________________________________________
48 AliESDMuonPad::AliESDMuonPad (const AliESDMuonPad& pad)
56 //_____________________________________________________________________________
57 AliESDMuonPad& AliESDMuonPad::operator=(const AliESDMuonPad& pad)
60 if (this == &pad) return *this;
62 TObject::operator=(pad); // don't forget to invoke the base class' assignment operator
65 fCharge = pad.fCharge;
70 //_____________________________________________________________________________
71 void AliESDMuonPad::Copy(TObject &obj) const {
73 /// This overwrites the virtual TOBject::Copy()
74 /// to allow run time copying without casting
78 AliESDMuonPad *robj = dynamic_cast<AliESDMuonPad*>(&obj);
79 if(!robj)return; // not an AliESDMuonPad
84 //_____________________________________________________________________________
85 void AliESDMuonPad::Print(Option_t */*option*/) const
87 /// print cluster content
88 UInt_t cId = GetUniqueID();
90 cout<<Form("padID=%u (det=%d, manu=%d, manuChannel=%d, cathode=%d)",
91 cId, GetDetElemId(), GetManuId(), GetManuChannel(), GetCathode())<<endl;
93 cout<<Form(" raw charge=%d, calibrated charge=%5.2f", GetADC(), GetCharge())<<endl;