Using new for arrays with undefined size
[u/mrichter/AliRoot.git] / RICH / AliRICHDigit.h
CommitLineData
237c933d 1#ifndef ALIRICHDIGIT_H
2#define ALIRICHDIGIT_H
3
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8/* $Id$ */
9
10#include "AliDigit.h"
b762c2f6 11
12static const Int_t kMAXTRACKSPERRICHDIGIT = 10;
13
237c933d 14class AliRICHDigit : public TObject {
6e585aa2 15 protected:
237c933d 16 Int_t fPadX; // Pad number along x
17 Int_t fPadY ; // Pad number along y
18 Int_t fSignal; // Signal amplitude
19
20
b762c2f6 21 Int_t fTcharges[kMAXTRACKSPERRICHDIGIT]; // charge per track making this digit (up to 10)
22 Int_t fTracks[kMAXTRACKSPERRICHDIGIT]; // tracks making this digit (up to 10)
237c933d 23 Int_t fPhysics; // physics contribution to signal
24 Int_t fHit; // hit number - temporary solution
25
26 public:
27 AliRICHDigit() {}
28 AliRICHDigit(Int_t *digits);
29 AliRICHDigit(Int_t *tracks, Int_t *charges, Int_t *digits);
30 virtual ~AliRICHDigit() {}
7eefff76 31
32 virtual Int_t PadX() {return fPadX;}
33 virtual Int_t PadY() {return fPadY;}
34 virtual Int_t Signal() {return fSignal;}
35 virtual Int_t Physics() {return fPhysics;}
36 virtual Int_t Hit() {return fHit;}
37 virtual Int_t Track(Int_t i) {return fTracks[i];}
38 virtual Int_t TrackCharge(Int_t i) {return fTcharges[i];}
39 virtual void AddSignal(Int_t q) {fSignal += q;}
40 virtual void AddPhysicsSignal(Int_t q) {fPhysics += q;}
543d5224 41 void Print(Option_t *option="")const; //virtual
7eefff76 42
237c933d 43 ClassDef(AliRICHDigit,1) //Digits for set:RICH
44};
45#endif
46
47
48
49
50
51
52