]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding violations.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jul 2004 17:06:10 +0000 (17:06 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jul 2004 17:06:10 +0000 (17:06 +0000)
HLT/src/AliL3TPCBeamTestMemHandler.cxx
HLT/src/AliL3TPCBeamTestMemHandler.h

index e5d53fa906b043429956c143446916c0d7e436c6..376f327630eae539fa9ac1c19787ddfdf8702397 100644 (file)
@@ -5,6 +5,9 @@
 //_____________________________________________________________
 // AliL3TPCBeamTestMemHandler
 //
+// Class for converting the test beam data of May 2004 
+// to the HLT file format using R. Bramms tables.
+//
 // Author: C. Loizides <loizides@ikf.uni-frankfurt.de>
 // -- Copyright &copy ALICE HLT Group
 </pre>
@@ -26,7 +29,8 @@ using namespace std;
 ClassImp(AliL3TPCBeamTestMemHandler)
 
 AliL3TPCBeamTestMemHandler::AliL3TPCBeamTestMemHandler(Char_t *fPathToMappingFile) : AliL3MemHandler()
-{ //constructor
+{ 
+  //constructor
   fMinTimeBin=1;
   fNumOfChannels=7807+1; //must be big enough to contain all channels (per patch)
 
@@ -67,7 +71,8 @@ AliL3TPCBeamTestMemHandler::AliL3TPCBeamTestMemHandler(Char_t *fPathToMappingFil
 }
 
 AliL3TPCBeamTestMemHandler::~AliL3TPCBeamTestMemHandler()
-{ //destructor
+{ 
+  //destructor
   for(Int_t i = 0; i < 5504 ; i++) { 
        if(fMapping[i] != fMappingEmptyRow && fMapping[i]) delete[] fMapping[i];
   }
@@ -76,12 +81,13 @@ AliL3TPCBeamTestMemHandler::~AliL3TPCBeamTestMemHandler()
 }
 
 AliL3DigitRowData* AliL3TPCBeamTestMemHandler::RawData2Memory(UInt_t &nrow,Int_t /*event*/)
-{ //convert the raw data
+{ 
+  //convert the raw data
   AliL3DigitRowData *data = 0;
   nrow=0;
 
   Int_t nrowsdummy=AliL3Transform::GetNRows(fPatch);
-  fRows = new RowStructure[nrowsdummy];
+  fRows = new AliRowStructure[nrowsdummy];
   for(Int_t i=0;i<nrowsdummy;i++){
    fRows[i].fRow=-1;
    fRows[i].fNDigits=0;
@@ -228,7 +234,8 @@ AliL3DigitRowData* AliL3TPCBeamTestMemHandler::RawData2Memory(UInt_t &nrow,Int_t
 }
 
 Bool_t AliL3TPCBeamTestMemHandler::RawData2CompBinary(Int_t event)
-{ //raw data to memory
+{ 
+  //raw data to memory
   Bool_t out = kTRUE;
   UInt_t ndigits=0;
   AliL3DigitRowData *digits=0;
index b12d7edcee3d9b4be4a06668cc24174d21ab255c..7997b01b0a7a7cdc3224faa7eeb721e0635bc3e0 100644 (file)
@@ -3,6 +3,16 @@
 #ifndef ALIL3TPCBEAMTESTMEMHANDLER_H
 #define ALIL3TPCBEAMTESTMEMHANDLER_H
 
+//_____________________________________________________________
+// AliL3TPCBeamTestMemHandler
+//
+// Class for converting the test beam data of May 2004 
+// to the HLT file format using R. Bramms tables.
+//
+// Author: C. Loizides <loizides@ikf.uni-frankfurt.de>
+// -- Copyright &copy ALICE HLT Group
+
+
 #include "AliL3MemHandler.h"
 
 class AliL3TPCBeamTestMemHandler : public AliL3MemHandler{
@@ -19,21 +29,17 @@ class AliL3TPCBeamTestMemHandler : public AliL3MemHandler{
     fMinTimeBin=i;
   }
 
-  Int_t MappingGetPadRow(Int_t channel) {
+  Int_t MappingGetPadRow(Int_t channel) const {
     Int_t retval;
-    if(channel < fNumOfChannels)
-      retval = fMapping[channel][2]-fRowMin;
-    else
-      retval = -1;
+    if(channel < fNumOfChannels) retval = fMapping[channel][2]-fRowMin;
+    else retval = -1;
     return retval;
   }
 
-  Int_t MappingGetPad(Int_t channel) {
+  Int_t MappingGetPad(Int_t channel) const {
     Int_t retval;
-    if(channel < fNumOfChannels)
-      retval = fMapping[channel][3];
-    else
-      retval = -1;
+    if(channel < fNumOfChannels) retval = fMapping[channel][3];
+    else retval = -1;
     return retval;
   }
 
@@ -42,21 +48,21 @@ class AliL3TPCBeamTestMemHandler : public AliL3MemHandler{
 
  private:
 
-struct RowStructure{
-  Int_t fRow;       //row
-  Int_t fNDigits;   //digits
-  Int_t *fPadPos;   // pad position
-};
+  struct AliRowStructure {
+    Int_t fRow;       //row
+    Int_t fNDigits;   //digits
+    Int_t *fPadPos;   // pad position
+  };
   
- Short_t **fMapping;//!          // mapping of channels to pads
- Short_t *fMappingEmptyRow;//!   // helper field
- Int_t fNumOfChannels;           // number of channels
 Short_t **fMapping;//!          // mapping of channels to pads
 Short_t *fMappingEmptyRow;//!   // helper field
 Int_t fNumOfChannels;           // number of channels
 
- Short_t *fInputPtr;//!         // input pointer from shared memory
- Int_t fInputSize;//!           // size of input data
RowStructure *fRows;//!        // rows
- Int_t fNTimeBins;              // number of timebins
- Int_t fMinTimeBin;             // min timebin (not zero because of altro)
 Short_t *fInputPtr;//!         // input pointer from shared memory
 Int_t fInputSize;//!           // size of input data
 AliRowStructure *fRows;//!     // rows
 Int_t fNTimeBins;              // number of timebins
 Int_t fMinTimeBin;             // min timebin (not zero because of altro)
 
   ClassDef(AliL3TPCBeamTestMemHandler,1)   //RawData Filehandler class
 };