]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing coding violations.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Mar 2010 13:22:34 +0000 (13:22 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Mar 2010 13:22:34 +0000 (13:22 +0000)
HLT/MUON/OnlineAnalysis/AliHLTMUONHitReconstructor.cxx
HLT/MUON/OnlineAnalysis/AliHLTMUONHitReconstructor.h

index 9be0eed60a346699899771670f7699a3764035b2..0e9fe9bfdbcb5f6ab1a9e4d53b0ee59cc9165707 100644 (file)
@@ -38,8 +38,8 @@
 #include "AliHLTMUONClustersBlockStruct.h"
 #include "AliHLTMUONChannelsBlockStruct.h"
 #include "AliHLTMUONUtils.h"
-#include <cstring>
-#include <strings.h>
+#include "AliRawDataHeader.h"
+#include <cassert>
 
 
 const AliHLTInt32_t AliHLTMUONHitReconstructor::fgkDetectorId = 0xA00;
@@ -1896,6 +1896,28 @@ void AliHLTMUONHitReconstructor::Clear()
 }
 
 
+AliHLTInt32_t AliHLTMUONHitReconstructor::GetkNofDetElemInDDL(Int_t iDDL)
+{
+       /// Returns the number of detection elements for a DDL.
+       
+       if(iDDL>=0 && iDDL<=19)
+               return fgkNofDetElemInDDL[iDDL];
+       else
+               return -1;
+}
+
+
+AliHLTInt32_t AliHLTMUONHitReconstructor::GetkMinDetElemIdInDDL(Int_t iDDL)
+{
+       /// Returns the first detection element ID for a DDL.
+       
+       if(iDDL>=0 && iDDL<=19)
+               return fgkMinDetElemIdInDDL[iDDL];
+       else
+               return -1;
+}
+
+
 AliHLTMUONHitReconstructor::AliHLTMUONRawDecoder::AliHLTMUONRawDecoder() :
        fkBufferStart(NULL),
        fBusPatchId(0),
index 6636a0b7b86db257b2fec9bf6de9bd34c1a36e99..cacd18779a043ef57bd3f4b01192aec6bcdb238e 100644 (file)
 //         sukalyan.chattopadhyay@saha.ac.in 
 ///////////////////////////////////////////////
 
-#include <iostream>
-#include <cstdio>
-#include <fstream>
-#include <cstring>
-#include <cmath>
 #include <map>
-#include <cassert>
 
-#include "TString.h"
 #include "AliHLTLogging.h"
 #include "AliMUONTrackerDDLDecoder.h"
 #include "AliMUONTrackerDDLDecoderEventHandler.h"
 #include "AliHLTMUONDataTypes.h"
 
-#include "AliRawDataHeader.h"
-
 #if __GNUC__ && __GNUC__ < 3
 #define std
 #endif
@@ -94,20 +85,8 @@ public:
        static AliHLTInt32_t GetkDDLOffSet() { return fgkDDLOffSet; }
        static AliHLTInt32_t GetkNofDDL() { return fgkNofDDL; }
        static AliHLTInt32_t GetkDDLHeaderSize() { return fgkDDLHeaderSize; }
-       static AliHLTInt32_t GetkNofDetElemInDDL(Int_t iDDL) 
-       { 
-         if(iDDL>=0 && iDDL<=19)
-           return fgkNofDetElemInDDL[iDDL];
-         else
-           return -1; 
-       }
-       static AliHLTInt32_t GetkMinDetElemIdInDDL(Int_t iDDL) 
-       { 
-         if(iDDL>=0 && iDDL<=19)
-           return fgkMinDetElemIdInDDL[iDDL];
-         else
-           return -1; 
-       }
+       static AliHLTInt32_t GetkNofDetElemInDDL(Int_t iDDL);
+       static AliHLTInt32_t GetkMinDetElemIdInDDL(Int_t iDDL);
        
        /// The error recovery mode used for TryRecover.
        enum ERecoveryMode
@@ -179,13 +158,9 @@ private:
        static const AliHLTInt32_t fgkNofDetElemInDDL[20] ;         // nof Detelem in a given ddl
        static const AliHLTInt32_t fgkMinDetElemIdInDDL[20] ;       // the detelem which has minimum value in ddl
 
-protected:
-
        AliHLTMUONHitReconstructor(const AliHLTMUONHitReconstructor& rhs); // copy constructor
        AliHLTMUONHitReconstructor& operator=(const AliHLTMUONHitReconstructor& rhs); // assignment operator
 
-private:
-
        struct AliHLTMUONPad
        {
                AliHLTInt32_t fDetElemId;  // The detector element ID of the pad.