]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
change preprocessor constant to C++ constant
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2001 16:40:07 +0000 (16:40 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2001 16:40:07 +0000 (16:40 +0000)
MUON/AliMUONDigit.cxx
MUON/AliMUONDigit.h

index 8b30a9737d94d87ffcde557103f1a380584dff39..633b79648f50a4ff76b3480146cafedf8d25624f 100644 (file)
@@ -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<MAXTRACKS; i++) {
+    for(Int_t i=0; i<kMAXTRACKS; i++) {
        fTcharges[i]  = charges[i];
        fTracks[i]    = tracks[i];
     }
index e840febee84a850a2e8dd5984f2202b19deef04e..dab1e0c0a0bdbb058a153fc030f6cbc99104184c 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <TObject.h>
 
-#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