]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONBusStruct.cxx
Coding conventions: adding copy constructor and assignment operator
[u/mrichter/AliRoot.git] / MUON / AliMUONBusStruct.cxx
index ebc1435a26dc100e0d6246a6da2d89c6c80fb7df..2ed5c2ef1ac9a277733368a1dd175ceabf20f0c0 100644 (file)
 /* $Id$ */
 
 #include "AliMUONBusStruct.h"
+
 #include "AliLog.h"
 #include <Riostream.h>
 #include <string.h>
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONBusStruct
 /// Bus patch structure for tracker raw data
 /// each Dsp contains at most 5 bus patch structure
@@ -29,6 +31,7 @@
 /// 12 bits for charge)
 ///
 /// \author Christian Finck
+//-----------------------------------------------------------------------------
 
 /// \cond CLASSIMP
 ClassImp(AliMUONBusStruct)
@@ -36,6 +39,7 @@ ClassImp(AliMUONBusStruct)
 
 const Int_t  AliMUONBusStruct::fgkHeaderLength = 4;
 const UInt_t AliMUONBusStruct::fgkDefaultDataKey = 0xB000000B;
+const Int_t  AliMUONBusStruct::fgkManuNofChannels(64);
 
 //___________________________________________
 AliMUONBusStruct::AliMUONBusStruct()
@@ -44,7 +48,7 @@ AliMUONBusStruct::AliMUONBusStruct()
      fTotalLength(0),
      fLength(0),
      fBusPatchId(0),
-     fBufSize(43*64), 
+fBufSize(43*fgkManuNofChannels), 
   /* assuming 43 manus max per bustpatch.
   Anyway fData is resized where needed (though it makes it slower) */
      fData(new UInt_t[fBufSize]),
@@ -205,7 +209,7 @@ UShort_t AliMUONBusStruct::GetManuId(Int_t n) const
 }
 
 //___________________________________________
-Char_t AliMUONBusStruct::GetChannelId(Int_t n) const  
+UChar_t AliMUONBusStruct::GetChannelId(Int_t n) const  
 {
   /// 
   /// get channel Id