#ifndef ALIESDMUONPAD_H #define ALIESDMUONPAD_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ /// \class AliESDMuonPad /// \brief Class to describe the MUON pads in the Event Summary Data // Author Philippe Pillot, Subatech #include class AliESDMuonPad : public TObject { public: AliESDMuonPad(); // Constructor virtual ~AliESDMuonPad() {} ///< Destructor AliESDMuonPad(const AliESDMuonPad& pad); AliESDMuonPad& operator=(const AliESDMuonPad& pad); /// Clear method (used by TClonesArray) virtual void Clear(Option_t* = "") {} /// Set the raw charge void SetADC(Int_t adc) {fADC = adc;} /// Return the raw charge Int_t GetADC() const {return fADC;} /// Set the calibrated charge void SetCharge(Double_t charge) {fCharge = charge;} /// Return the calibrated charge Double_t GetCharge() const {return fCharge;} /// Return detection element id, part of the uniqueID Int_t GetDetElemId() const {return (GetUniqueID() & 0x00000FFF);} /// Return electronic card id, part of the uniqueID Int_t GetManuId() const {return (GetUniqueID() & 0x00FFF000) >> 12;} /// Return the channel within ManuId(), part of the uniqueID Int_t GetManuChannel() const {return (GetUniqueID() & 0x3F000000) >> 24;} /// Return the cathode number, part of the uniqueID Int_t GetCathode() const {return (GetUniqueID() & 0x40000000) >> 30;} /// Set the pad as being calibrated or not void SetCalibrated(Bool_t calibrated = kTRUE) {SetBit(BIT(14),calibrated);} /// return kTRUE if the pad is calibrated Bool_t IsCalibrated() const {return TestBit(BIT(14));} /// Set the pad as being saturated or not void SetSaturated(Bool_t saturated = kTRUE) {SetBit(BIT(15),saturated);} /// return kTRUE if the pad is saturated Bool_t IsSaturated() const {return TestBit(BIT(15));} void Print(Option_t */*option*/ = "") const; protected: Int_t fADC; ///< ADC value Double32_t fCharge; ///< Calibrated charge ClassDef(AliESDMuonPad, 1) // MUON ESD pad class }; #endif