Some changes/bug corrections for SetHole(1) option.
[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$ */
7
8#include <TObject.h>
9
10class AliMUONDigit : public TObject {
a450cfad 11
a9e2aefa 12 public:
a450cfad 13 AliMUONDigit() {}
14 AliMUONDigit(Int_t *digits);
15 AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits);
16 virtual ~AliMUONDigit();
17
18 virtual Int_t PadX() {return fPadX;}
19 virtual Int_t PadY() {return fPadY;}
20 virtual Int_t Signal() {return fSignal;}
21 virtual Int_t Physics() {return fPhysics;}
22 virtual Int_t Hit() {return fHit;}
23 virtual Int_t Cathode() {return fCathode;}
24 virtual Int_t Track(Int_t i) {return fTracks[i];}
25 virtual Int_t TrackCharge(Int_t i) {return fTcharges[i];}
26 virtual void AddSignal(Int_t q) {fSignal += q;}
27 virtual void AddPhysicsSignal(Int_t q) {fPhysics += q;}
28 private:
a9e2aefa 29 Int_t fPadX; // Pad number along x
a450cfad 30 Int_t fPadY; // Pad number along y
31 Int_t fCathode; // Cathode number
32
a9e2aefa 33 Int_t fSignal; // Signal amplitude
34 Int_t fTcharges[10]; // charge per track making this digit (up to 10)
35 Int_t fTracks[10]; // primary tracks making this digit (up to 10)
36 Int_t fPhysics; // physics contribution to signal
37 Int_t fHit; // hit number - temporary solution
a450cfad 38
a1001283 39 ClassDef(AliMUONDigit,1) //Digits for MUON
a9e2aefa 40};
41#endif