]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDMuonPad.h
To test the retrieval and storage of raw tag files, return in case of DCS problems...
[u/mrichter/AliRoot.git] / STEER / AliESDMuonPad.h
CommitLineData
c34d2b8c 1#ifndef ALIESDMUONPAD_H
2#define ALIESDMUONPAD_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \class AliESDMuonPad
10/// \brief Class to describe the MUON pads in the Event Summary Data
11// Author Philippe Pillot, Subatech
12
13
14#include <TObject.h>
15
16class AliESDMuonPad : public TObject {
17public:
18 AliESDMuonPad(); // Constructor
19 virtual ~AliESDMuonPad() {} ///< Destructor
20 AliESDMuonPad(const AliESDMuonPad& pad);
21 AliESDMuonPad& operator=(const AliESDMuonPad& pad);
22
23 /// Clear method (used by TClonesArray)
24 virtual void Clear(Option_t* = "") {}
25
26 /// Set the raw charge
27 void SetADC(Int_t adc) {fADC = adc;}
28 /// Return the raw charge
29 Int_t GetADC() const {return fADC;}
30
31 /// Set the calibrated charge
32 void SetCharge(Double_t charge) {fCharge = charge;}
33 /// Return the calibrated charge
34 Double_t GetCharge() const {return fCharge;}
35
36 /// Return detection element id, part of the uniqueID
37 Int_t GetDetElemId() const {return (GetUniqueID() & 0x00000FFF);}
38 /// Return electronic card id, part of the uniqueID
39 Int_t GetManuId() const {return (GetUniqueID() & 0x00FFF000) >> 12;}
40 /// Return the channel within ManuId(), part of the uniqueID
41 Int_t GetManuChannel() const {return (GetUniqueID() & 0x3F000000) >> 24;}
42 /// Return the cathode number, part of the uniqueID
43 Int_t GetCathode() const {return (GetUniqueID() & 0x40000000) >> 30;}
44
45 void Print(Option_t */*option*/ = "") const;
46
47
48protected:
49 Int_t fADC; ///< ADC value
50 Double32_t fCharge; ///< Calibrated charge
51
52
53 ClassDef(AliESDMuonPad, 1) // MUON ESD pad class
54};
55
56#endif
57