Coding rules
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 11:00:20 +0000 (11:00 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 11:00:20 +0000 (11:00 +0000)
TRD/AliTRDarrayADC.cxx
TRD/AliTRDarrayADC.h
TRD/AliTRDarrayDictionary.cxx
TRD/AliTRDarrayDictionary.h
TRD/AliTRDarraySignal.cxx
TRD/AliTRDarraySignal.h

index d04f6dc..54ecdad 100644 (file)
@@ -30,7 +30,7 @@
 \r
 ClassImp(AliTRDarrayADC)\r
 \r
-Short_t *AliTRDarrayADC::fLutPadNumbering = 0x0;\r
+Short_t *AliTRDarrayADC::fgLutPadNumbering = 0x0;\r
 \r
 //____________________________________________________________________________________\r
 AliTRDarrayADC::AliTRDarrayADC()\r
@@ -578,7 +578,7 @@ Short_t AliTRDarrayADC::GetData(Int_t nrow, Int_t ncol, Int_t ntime) const
   // the method GetDataByAdcCol\r
   //\r
 \r
-  Int_t corrcolumn = fLutPadNumbering[ncol];\r
+  Int_t corrcolumn = fgLutPadNumbering[ncol];\r
 \r
   return fADC[(nrow*fNumberOfChannels+corrcolumn)*fNtime+ntime];\r
 \r
@@ -592,7 +592,7 @@ void AliTRDarrayADC::SetData(Int_t nrow, Int_t ncol, Int_t ntime, Short_t value)
   // the method SetDataByAdcCol\r
   //\r
 \r
-  Int_t colnumb = fLutPadNumbering[ncol];\r
+  Int_t colnumb = fgLutPadNumbering[ncol];\r
 \r
   fADC[(nrow*fNumberOfChannels+colnumb)*fNtime+ntime]=value;\r
 \r
@@ -606,10 +606,10 @@ void AliTRDarrayADC::CreateLut()
   // pad numbering and mcm channel numbering\r
   //\r
 \r
-  if(fLutPadNumbering)  return;\r
+  if(fgLutPadNumbering)  return;\r
   \r
-   fLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];\r
-   memset(fLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());\r
+   fgLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];\r
+   memset(fgLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());\r
 \r
   for(Int_t mcm=0; mcm<8; mcm++)\r
     {\r
@@ -618,7 +618,7 @@ void AliTRDarrayADC::CreateLut()
       Int_t shiftposition = 1+3*mcm;\r
       for(Int_t index=lowerlimit;index<upperlimit;index++)\r
        {\r
-         fLutPadNumbering[index]=index+shiftposition;\r
+         fgLutPadNumbering[index]=index+shiftposition;\r
        }\r
     }\r
 }\r
index ccd7d59..b7249bc 100644 (file)
@@ -57,16 +57,16 @@ class AliTRDarrayADC: public TObject
   Int_t fNtime;   //Number of time bins\r
   Int_t fNAdim;   //Dimension of the ADC array\r
   Short_t* fADC;  //[fNAdim]   //Pointer to adc values\r
-  static Short_t *fLutPadNumbering;   //  [fNcol] Look Up Table\r
+  static Short_t *fgLutPadNumbering;   //  [fNcol] Look Up Table\r
 \r
-  ClassDef(AliTRDarrayADC,3) //ADC container class\r
+  ClassDef(AliTRDarrayADC,4) //ADC container class\r
     \r
 };\r
 \r
 inline void AliTRDarrayADC::GetData(Int_t r, Int_t c, Int_t t, Int_t n, Short_t *vals) const\r
 {\r
-  Int_t ColNum = fLutPadNumbering[c];\r
-  for(Int_t ic=n, idx = (r*fNumberOfChannels+ColNum)*fNtime+t; ic--; idx+=fNtime) vals[ic] = fADC[idx];\r
+  Int_t colNum = fgLutPadNumbering[c];\r
+  for(Int_t ic=n, idx = (r*fNumberOfChannels+colNum)*fNtime+t; ic--; idx+=fNtime) vals[ic] = fADC[idx];\r
  }\r
 \r
 #endif \r
index 94c98ea..9212c1d 100644 (file)
 /////////////////////////////////////////////////////////
 
 #include "AliTRDarrayDictionary.h"
-#include "TArray.h"
 #include "AliTRDfeeParam.h"
 
 ClassImp(AliTRDarrayDictionary)
 
-Short_t *AliTRDarrayDictionary::fLutPadNumbering = 0x0;
+Short_t *AliTRDarrayDictionary::fgLutPadNumbering = 0x0;
 
 //________________________________________________________________________________
 AliTRDarrayDictionary::AliTRDarrayDictionary()
@@ -364,7 +363,7 @@ Int_t AliTRDarrayDictionary::GetData(Int_t nrow, Int_t ncol, Int_t ntime) const
   // the method GetDataByAdcCol
   //
 
-  Int_t corrcolumn = fLutPadNumbering[ncol];
+  Int_t corrcolumn = fgLutPadNumbering[ncol];
 
   return fDictionary[(nrow*fNumberOfChannels+corrcolumn)*fNtime+ntime];
 
@@ -378,7 +377,7 @@ void AliTRDarrayDictionary::SetData(Int_t nrow, Int_t ncol, Int_t ntime, Int_t v
   // the method SetDataByAdcCol
   //
 
-  Int_t colnumb = fLutPadNumbering[ncol];
+  Int_t colnumb = fgLutPadNumbering[ncol];
 
   fDictionary[(nrow*fNumberOfChannels+colnumb)*fNtime+ntime]=value;
 
@@ -392,10 +391,10 @@ void AliTRDarrayDictionary::CreateLut()
   // pad numbering and mcm channel numbering
   //
 
-  if(fLutPadNumbering)  return;
+  if(fgLutPadNumbering)  return;
   
-   fLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];
-   memset(fLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());
+   fgLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];
+   memset(fgLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());
 
   for(Int_t mcm=0; mcm<8; mcm++)
     {
@@ -404,7 +403,7 @@ void AliTRDarrayDictionary::CreateLut()
       Int_t shiftposition = 1+3*mcm;
       for(Int_t index=lowerlimit;index<upperlimit;index++)
        {
-         fLutPadNumbering[index]=index+shiftposition;
+         fgLutPadNumbering[index]=index+shiftposition;
        }
     }
 }
index bb34fab..ac97c31 100644 (file)
@@ -48,9 +48,9 @@ class AliTRDarrayDictionary: public TObject
   Int_t   fNtime;       //Number of time bins\r
   Int_t   fNDdim;       //Dimension of the Dictionary array\r
   Int_t*  fDictionary;  //[fNDdim]  //Pointer to integers array\r
-  static Short_t *fLutPadNumbering;   //  [fNcol] Look Up Table\r
+  static Short_t *fgLutPadNumbering;   //  [fNcol] Look Up Table\r
 \r
-  ClassDef(AliTRDarrayDictionary,2) //Dictionary container class\r
+  ClassDef(AliTRDarrayDictionary,3) //Dictionary container class\r
     \r
 };\r
 #endif\r
index da8d08b..746870c 100644 (file)
 
 #include "AliTRDarraySignal.h"
 //#include "AliLog.h"
-#include "TArray.h" //for memset
 #include "AliTRDfeeParam.h"
 
 ClassImp(AliTRDarraySignal)
 
-Short_t *AliTRDarraySignal::fLutPadNumbering = 0x0;
+Short_t *AliTRDarraySignal::fgLutPadNumbering = 0x0;
 
 //_______________________________________________________________________
 AliTRDarraySignal::AliTRDarraySignal()
@@ -164,7 +163,7 @@ void AliTRDarraySignal::Allocate(Int_t nrow, Int_t ncol, Int_t ntime)
 }
 
 //_______________________________________________________________________
-Int_t AliTRDarraySignal::GetOverThreshold(Float_t threshold)
+Int_t AliTRDarraySignal::GetOverThreshold(Float_t threshold) const
 {
   //
   // Get the number of entries over the threshold 
@@ -391,7 +390,7 @@ Float_t AliTRDarraySignal::GetData(Int_t nrow, Int_t ncol, Int_t ntime) const
   // the method GetDataByAdcCol
   //
 
-  Int_t corrcolumn = fLutPadNumbering[ncol];
+  Int_t corrcolumn = fgLutPadNumbering[ncol];
 
   return fSignal[(nrow*fNumberOfChannels+corrcolumn)*fNtime+ntime];
 
@@ -405,7 +404,7 @@ void AliTRDarraySignal::SetData(Int_t nrow, Int_t ncol, Int_t ntime, Float_t val
   // the method SetDataByAdcCol
   //
 
-  Int_t colnumb = fLutPadNumbering[ncol];
+  Int_t colnumb = fgLutPadNumbering[ncol];
 
   fSignal[(nrow*fNumberOfChannels+colnumb)*fNtime+ntime]=value;
 
@@ -419,10 +418,10 @@ void AliTRDarraySignal::CreateLut()
   // pad numbering and mcm channel numbering
   //
 
-  if(fLutPadNumbering)  return;
+  if(fgLutPadNumbering)  return;
   
-   fLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];
-   memset(fLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());
+   fgLutPadNumbering = new Short_t[AliTRDfeeParam::GetNcol()];
+   memset(fgLutPadNumbering,0,sizeof(Short_t)*AliTRDfeeParam::GetNcol());
 
   for(Int_t mcm=0; mcm<8; mcm++)
     {
@@ -431,7 +430,7 @@ void AliTRDarraySignal::CreateLut()
       Int_t shiftposition = 1+3*mcm;
       for(Int_t index=lowerlimit;index<upperlimit;index++)
        {
-         fLutPadNumbering[index]=index+shiftposition;
+         fgLutPadNumbering[index]=index+shiftposition;
        }
     }
 }
index 97aacc5..a14f939 100644 (file)
@@ -36,7 +36,7 @@ class AliTRDarraySignal: public TObject
               {fSignal[(row*fNumberOfChannels+col)*fNtime+time]=value;};
   Bool_t  HasData() const {return fNtime ? 1 : 0;};
   Int_t   GetDim() const {return fNdim;};
-  Int_t   GetOverThreshold(Float_t threshold);
+  Int_t   GetOverThreshold(Float_t threshold) const;
   void    Compress(Float_t minval);
   void    Expand();
   void    Reset();
@@ -53,9 +53,9 @@ class AliTRDarraySignal: public TObject
   Int_t    fNtime;     //Number of time bins
   Int_t    fNdim;      //Dimension of the array
   Float_t *fSignal;    //[fNdim]  //Pointer to signals
-  static Short_t *fLutPadNumbering;   //  [fNcol] Look Up Table 
+  static Short_t *fgLutPadNumbering;   //  [fNcol] Look Up Table        
 
-  ClassDef(AliTRDarraySignal,2)  //Signal container class
+  ClassDef(AliTRDarraySignal,3)  //Signal container class
     
 };
 #endif