Connect only MUON branches when reading the event to speed up digitisation.
[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
cb73aa80 10static const Int_t kMAXTRACKS=10;
0e88acc2 11
a9e2aefa 12class AliMUONDigit : public TObject {
a450cfad 13
a9e2aefa 14 public:
a450cfad 15 AliMUONDigit() {}
16 AliMUONDigit(Int_t *digits);
17 AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits);
18 virtual ~AliMUONDigit();
19
ae8cd701 20 virtual Int_t PadX() const {return fPadX;}
21 virtual Int_t PadY() const {return fPadY;}
22 virtual Int_t Signal() const {return fSignal;}
23 virtual Int_t Physics() const {return fPhysics;}
24 virtual Int_t Hit() const {return fHit;}
25 virtual Int_t Cathode() const {return fCathode;}
26 virtual Int_t Track(Int_t i) const {return fTracks[i];}
27 virtual Int_t TrackCharge(Int_t i) const {return fTcharges[i];}
a450cfad 28 virtual void AddSignal(Int_t q) {fSignal += q;}
29 virtual void AddPhysicsSignal(Int_t q) {fPhysics += q;}
4b1670dc 30 virtual void Print(Option_t *option="") const;
31 private:
a9e2aefa 32 Int_t fPadX; // Pad number along x
a450cfad 33 Int_t fPadY; // Pad number along y
34 Int_t fCathode; // Cathode number
35
a9e2aefa 36 Int_t fSignal; // Signal amplitude
cb73aa80 37 Int_t fTcharges[kMAXTRACKS]; // charge per track making this digit (up to 10)
38 Int_t fTracks[kMAXTRACKS]; // primary tracks making this digit (up to 10)
a9e2aefa 39 Int_t fPhysics; // physics contribution to signal
40 Int_t fHit; // hit number - temporary solution
a450cfad 41
a1001283 42 ClassDef(AliMUONDigit,1) //Digits for MUON
a9e2aefa 43};
44#endif