LCOV - code coverage report
Current view: top level - STEER/ESD - AliESDMuonPad.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 27 22.2 %
Date: 2016-06-14 17:26:59 Functions: 3 8 37.5 %

          Line data    Source code
       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             : using std::endl;
      33             : using std::cout;
      34             : /// \cond CLASSIMP
      35         172 : ClassImp(AliESDMuonPad)
      36             : /// \endcond
      37             : 
      38             : //_____________________________________________________________________________
      39             : AliESDMuonPad::AliESDMuonPad()
      40           4 : : TObject(),
      41           4 :   fADC(0),
      42           4 :   fCharge(0.)
      43          20 : {
      44             :   /// default constructor
      45           8 : }
      46             : 
      47             : //_____________________________________________________________________________
      48             : AliESDMuonPad::AliESDMuonPad (const AliESDMuonPad& pad)
      49           0 : : TObject(pad),
      50           0 :   fADC(pad.fADC),
      51           0 :   fCharge(pad.fCharge)
      52           0 : {
      53             :   /// Copy constructor
      54           0 : }
      55             : 
      56             : //_____________________________________________________________________________
      57             : AliESDMuonPad& AliESDMuonPad::operator=(const AliESDMuonPad& pad)
      58             : {
      59             :   /// Equal operator
      60           0 :   if (this == &pad) return *this;
      61             :   
      62           0 :   TObject::operator=(pad); // don't forget to invoke the base class' assignment operator
      63             :   
      64           0 :   fADC = pad.fADC;
      65           0 :   fCharge = pad.fCharge;
      66             :   
      67           0 :   return *this;
      68           0 : }
      69             : 
      70             : //_____________________________________________________________________________
      71             : void 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           0 :   if(this==&obj)return;
      78           0 :   AliESDMuonPad *robj = dynamic_cast<AliESDMuonPad*>(&obj);
      79           0 :   if(!robj)return; // not an AliESDMuonPad
      80           0 :   *robj = *this;
      81             : 
      82           0 : }
      83             : 
      84             : //_____________________________________________________________________________
      85             : void AliESDMuonPad::Print(Option_t */*option*/) const
      86             : {
      87             :   /// print cluster content
      88           0 :   UInt_t cId = GetUniqueID();
      89             :   
      90           0 :   cout<<Form("padID=%u (det=%d, manu=%d, manuChannel=%d, cathode=%d)",
      91           0 :              cId, GetDetElemId(), GetManuId(), GetManuChannel(), GetCathode())<<endl;
      92             :   
      93           0 :   cout<<Form("    raw charge=%d, calibrated charge=%5.2f", GetADC(), GetCharge())<<endl;
      94           0 : }
      95             : 

Generated by: LCOV version 1.11