Doxygen configuration files (Initial version)
[u/mrichter/AliRoot.git] / MUON / AliMUONDigit.h
CommitLineData
a9e2aefa 1#ifndef ALIMUONDIGIT_H
2#define ALIMUONDIGIT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
30178c30 7// Revision of includes 07/05/2004
a9e2aefa 8
9#include <TObject.h>
10
cb73aa80 11static const Int_t kMAXTRACKS=10;
0e88acc2 12
a9e2aefa 13class AliMUONDigit : public TObject {
a450cfad 14
a9e2aefa 15 public:
30178c30 16 AliMUONDigit();
d694b6f6 17 AliMUONDigit(const AliMUONDigit& rhs);
a450cfad 18 AliMUONDigit(Int_t *digits);
19 AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits);
20 virtual ~AliMUONDigit();
61adb9bd 21
d694b6f6 22 AliMUONDigit& operator=(const AliMUONDigit& rhs);
a450cfad 23
a713db22 24 virtual Bool_t IsSortable() const {return kTRUE;}
25 virtual int Compare(const TObject *obj) const;
26
27 virtual Int_t DetElemId()const {return fDetElemId;}
ae8cd701 28 virtual Int_t PadX() const {return fPadX;}
29 virtual Int_t PadY() const {return fPadY;}
30 virtual Int_t Signal() const {return fSignal;}
31 virtual Int_t Physics() const {return fPhysics;}
32 virtual Int_t Hit() const {return fHit;}
33 virtual Int_t Cathode() const {return fCathode;}
34 virtual Int_t Track(Int_t i) const {return fTracks[i];}
f1501d74 35 virtual Int_t TrackCharge(Int_t i) const {return fTcharges[i];}
36
37 virtual void SetDetElemId(Int_t id) {fDetElemId = id;}
38 virtual void SetPadX(Int_t pad) {fPadX = pad;}
39 virtual void SetPadY(Int_t pad) {fPadY = pad;}
a2da7817 40 virtual void SetSignal(Int_t q) {fSignal = q;}
f1501d74 41 virtual void AddSignal(Int_t q) {fSignal += q;}
42 virtual void AddPhysicsSignal(Int_t q) {fPhysics += q;}
43 virtual void SetHit(Int_t n) {fHit = n;}
44 virtual void SetCathode(Int_t c) {fCathode = c;}
45
46
37c0cd40 47 private:
a9e2aefa 48 Int_t fPadX; // Pad number along x
a450cfad 49 Int_t fPadY; // Pad number along y
50 Int_t fCathode; // Cathode number
51
a9e2aefa 52 Int_t fSignal; // Signal amplitude
cb73aa80 53 Int_t fTcharges[kMAXTRACKS]; // charge per track making this digit (up to 10)
54 Int_t fTracks[kMAXTRACKS]; // primary tracks making this digit (up to 10)
a9e2aefa 55 Int_t fPhysics; // physics contribution to signal
56 Int_t fHit; // hit number - temporary solution
a713db22 57 Int_t fDetElemId; // Detection element ID
a450cfad 58
a713db22 59 ClassDef(AliMUONDigit,2) //Digits for MUON
a9e2aefa 60};
61#endif