]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding conventions
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Apr 2009 15:19:43 +0000 (15:19 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Apr 2009 15:19:43 +0000 (15:19 +0000)
MUON/AliMUONTrack.h
MUON/AliMUONTriggerIO.cxx
MUON/AliMUONTriggerIO.h
MUON/mapping/AliMpEncodePair.cxx
MUON/mapping/AliMpEncodePair.h
MUON/mapping/AliMpExMapIterator.h

index 385c1d21be95f4c590eef0b8cad29c745acbae59..6f7d85f3f581565645be652da8911f933e010d5b 100644 (file)
@@ -96,7 +96,7 @@ class AliMUONTrack : public TObject
   Int_t CompatibleTrack(AliMUONTrack* track, Double_t sigma2Cut, Bool_t compatibleCluster[10]) const;
   
   /// return pointer to track parameters at vertex (can be 0x0)
-  AliMUONTrackParam* GetTrackParamAtVertex() {return fTrackParamAtVertex;}
+  AliMUONTrackParam* GetTrackParamAtVertex() const {return fTrackParamAtVertex;}
   void               SetTrackParamAtVertex(const AliMUONTrackParam* trackParam);
 
   /// set word telling which trigger chambers where hit by track
index bcd43c394bd6201ce4777332b50e7cafa7848260..b7c36880fabfc96175fe71f4a7eac6a2d62ded7a 100644 (file)
@@ -426,7 +426,7 @@ AliMUONTriggerIO::ReadConfig(const char* localFile,
 
 //_____________________________________________________________________________
  Int_t 
- AliMUONTriggerIO::ReadGlobalConfig(const char* globalFile, AliMUONGlobalCrateConfig* globalConfig)
+ AliMUONTriggerIO::ReadGlobalConfig(const char* globalFile, AliMUONGlobalCrateConfig* globalConfig) const
 {
   /// read the global crate file
   /// the masks are disable bit for each crate, 8 per darc board
index adf3b5070d4182a67ac271bf9e43cd5b3f15f33e..038de1e6f2559eb92f7e5f89c0ebf5f11717d6d5 100644 (file)
@@ -63,7 +63,7 @@ public:
                     AliMUONGlobalCrateConfig* globalConfig) const;
 
   
-  Int_t  ReadGlobalConfig(const char* globalFile, AliMUONGlobalCrateConfig* globalConfig);
+  Int_t  ReadGlobalConfig(const char* globalFile, AliMUONGlobalCrateConfig* globalConfig) const;
 
   Bool_t WriteGlobalConfig(const char* globalFile, AliMUONGlobalCrateConfig* globalConfig) const;
 
index e4e04c72e7fc8d8cd33ff3f1f5bd09fdb3db91f2..048c4c32b5520701e80118502fe2a3bffc186e64 100644 (file)
 
 // $Id$
 
+// AliMp::Pair functions: 
+// The functions for encoding the pair of integers to another integer,
+// defined withing a namespace AliMp.
+// The encoded pairs can be added and subtracted.
+// Author Laurent Aphecetche
+
 #include "AliMpEncodePair.h"
 
 #include <Riostream.h>
@@ -49,6 +55,8 @@ Int_t AliMp::PairSecond(MpPair_t pair)
 //_______________________________________________________________________
 ostream& AliMp::PairPut(ostream& stream, MpPair_t pair)
 {
+/// A special printing for encoded pair.
+
   if ( pair >= 0 ) {
     stream << '(' << AliMp::PairFirst(pair) 
            << ',' << AliMp::PairSecond(pair) << ')';
index b420fbe12f7f2a58c4b29b708cee0a68a5ab7895..4df3d31d99aa6a8bca6f3c9a422dda7c1dee7e0e 100644 (file)
@@ -6,6 +6,10 @@
 
 // $Id$
 
+// The functions for encodind the pair of integers to another integer,
+// defined withing a namespace AliMp
+// Author Laurent Aphecetche
+
 #include <Rtypes.h>
 #include <Riosfwd.h>
 
index fdf6db0b31366f838e0b932abe141d46f6155d0c..cebbf1fde9ba9196a17aae7d4990c8d3608eba38 100644 (file)
@@ -23,9 +23,9 @@ class TExMapIter;
 //_____________________________________________________________________________
 class AliMpExMapIterator : public TIterator
 {
-public:
   friend class AliMpExMap;
 
+public:
   AliMpExMapIterator(const AliMpExMap& theMap);
   AliMpExMapIterator(const AliMpExMapIterator& rhs);
   AliMpExMapIterator& operator=(const AliMpExMapIterator& rhs);
@@ -50,8 +50,6 @@ public:
 private:
     
     Bool_t Next(Long_t& index, TObject*& object);
-
-private:
   
     TExMapIter* fIterator; ///< iterator we are wrapping