]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Avoid warnings on non-ansi compiler HP-UX CC
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 1999 14:48:07 +0000 (14:48 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 1999 14:48:07 +0000 (14:48 +0000)
TRD/AliTRDmatrix.cxx
TRD/AliTRDmatrix.h
TRD/AliTRDv2.cxx

index 1aa5b2bb4b2d27d2cd319985170b678987ec192e..7b9278b100ba6ff315b55134fdfc444bbcfe9e26 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  1999/09/29 09:24:35  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -96,7 +99,7 @@ void AliTRDmatrix::AddSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal
 }
 
 //_____________________________________________________________________________
-void AliTRDmatrix::Draw()
+void AliTRDmatrix::Draw(Option_t *)
 {
   //
   // Draws a 3D view of the detector matrix
index 4f57da578811294971996a40f79cce22df30c1e6..36c83012820b425ef1a7844eb4b04453e9b3df5a 100644 (file)
@@ -40,7 +40,7 @@ public:
   virtual void         AddSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal);
   virtual Bool_t       AddTrack(Int_t iRow, Int_t iCol, Int_t iTime, Int_t track);
 
-  virtual void         Draw();
+  virtual void         Draw(Option_t* = " ");
   virtual void         DrawRow(Int_t iRow);
   virtual void         DrawCol(Int_t iCol);
   virtual void         DrawTime(Int_t iTime);
index ea335a390b7e1467f008cb159883b00b946e50e1..49416bc020649f668fb2ade8682b4966f9cb0185 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  1999/09/29 09:24:35  fca
+Introduction of the Copyright and cvs Log
+
 */
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -65,7 +68,9 @@ AliTRDv2::AliTRDv2(const char *name, const char *title)
   fSensChamber  = 0;
   fSensSector   = 0;
 
-  for (Int_t iplan = 0; iplan < kNplan; iplan++) {
+  Int_t iplan;
+
+  for (iplan = 0; iplan < kNplan; iplan++) {
     for (Int_t icham = 0; icham < kNcham; icham++) {
       fRowMax[iplan][icham] = 0;
     }
@@ -199,6 +204,9 @@ void AliTRDv2::Hits2Digits()
 
   AliTRDhit *TRDhit;
 
+  Int_t iplan;
+  Int_t iRow;
+
   // Position of pad 0,0,0 
   // 
   // chambers seen from the top:
@@ -219,7 +227,7 @@ void AliTRDv2::Hits2Digits()
   //                                             
   // The pad row (z-direction)
   Float_t row0[kNplan][kNcham];
-  for (Int_t iplan = 0; iplan < kNplan; iplan++) {
+  for (iplan = 0; iplan < kNplan; iplan++) {
     row0[iplan][0] = -fClengthI[iplan]/2. - fClengthM[iplan] - fClengthO[iplan] 
                    + kCcthick; 
     row0[iplan][1] = -fClengthI[iplan]/2. - fClengthM[iplan]                    
@@ -233,12 +241,12 @@ void AliTRDv2::Hits2Digits()
   }
   // The pad column (rphi-direction)  
   Float_t col0[kNplan];
-  for (Int_t iplan = 0; iplan < kNplan; iplan++) {
+  for (iplan = 0; iplan < kNplan; iplan++) {
     col0[iplan]    = -fCwidth[iplan]/2. + kCcthick;
   }
   // The time bucket
   Float_t time0[kNplan];
-  for (Int_t iplan = 0; iplan < kNplan; iplan++) {
+  for (iplan = 0; iplan < kNplan; iplan++) {
     time0[iplan]   = kRmin + kCcframe/2. + kDrZpos - 0.5 * kDrThick
                            + iplan * (kCheight + kCspace);
   } 
@@ -264,7 +272,7 @@ void AliTRDv2::Hits2Digits()
 
   // Loop through all the chambers
   for (Int_t icham = chamBeg; icham < chamEnd; icham++) {
-    for (Int_t iplan = planBeg; iplan < planEnd; iplan++) {
+    for (iplan = planBeg; iplan < planEnd; iplan++) {
       for (Int_t isect = sectBeg; isect < sectEnd; isect++) {
 
         printf(" Digitizing chamber %d, plane %d, sector %d\n"
@@ -326,7 +334,7 @@ void AliTRDv2::Hits2Digits()
             const Int_t  colBox = 7;
             const Int_t  rowBox = 5;
             Float_t signalSum[rowBox][colBox][timeBox];
-            for (Int_t iRow  = 0;  iRow <  rowBox; iRow++ ) {
+            for (iRow  = 0;  iRow <  rowBox; iRow++ ) {
               for (Int_t iCol  = 0;  iCol <  colBox; iCol++ ) {
                 for (Int_t iTime = 0; iTime < timeBox; iTime++) {
                   signalSum[iRow][iCol][iTime] = 0;
@@ -381,7 +389,7 @@ void AliTRDv2::Hits2Digits()
             }
             
             // Add the padcluster to the detector matrix
-            for (Int_t iRow  = 0;  iRow <  rowBox; iRow++ ) {
+            for (iRow  = 0;  iRow <  rowBox; iRow++ ) {
               for (Int_t iCol  = 0;  iCol <  colBox; iCol++ ) {
                 for (Int_t iTime = 0; iTime < timeBox; iTime++) {
 
@@ -412,7 +420,7 @@ void AliTRDv2::Hits2Digits()
               Float_t signalAmp = matrix->GetSignal(iRow,iCol,iTime);
 
               // Add the noise
-              signalAmp  = TMath::Max(gRandom->Gaus(signalAmp,fNoise),0.0);
+              signalAmp  = TMath::Max(gRandom->Gaus(signalAmp,fNoise),(Float_t) 0.0);
              // Convert to fC
               signalAmp *= el2fC;
               // Convert to mV