From: jchudoba Date: Wed, 31 Oct 2001 16:40:07 +0000 (+0000) Subject: change preprocessor constant to C++ constant X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=cb73aa80f15d17127f4889cc6ae0e4000826f008 change preprocessor constant to C++ constant --- diff --git a/MUON/AliMUONDigit.cxx b/MUON/AliMUONDigit.cxx index 8b30a9737d9..633b79648f5 100644 --- a/MUON/AliMUONDigit.cxx +++ b/MUON/AliMUONDigit.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.4 2001/10/18 14:44:09 jchudoba +Define constant MAXTRACKS for maximum number of tracks associated with 1 digit + Revision 1.3 2001/01/26 21:26:58 morsch All data members private. Access functions provided. @@ -56,7 +59,7 @@ AliMUONDigit::AliMUONDigit(Int_t *tracks, Int_t *charges, Int_t *digits) fPhysics = digits[4]; fHit = digits[5]; - for(Int_t i=0; i -#define MAXTRACKS 10 +static const Int_t kMAXTRACKS=10; class AliMUONDigit : public TObject { @@ -33,8 +33,8 @@ class AliMUONDigit : public TObject { Int_t fCathode; // Cathode number Int_t fSignal; // Signal amplitude - Int_t fTcharges[MAXTRACKS]; // charge per track making this digit (up to 10) - Int_t fTracks[MAXTRACKS]; // primary tracks making this digit (up to 10) + Int_t fTcharges[kMAXTRACKS]; // charge per track making this digit (up to 10) + Int_t fTracks[kMAXTRACKS]; // primary tracks making this digit (up to 10) Int_t fPhysics; // physics contribution to signal Int_t fHit; // hit number - temporary solution