]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpConnection.h
bugfix: stopwatches for HLT benchmarks had been resumed at wrong point and measuremen...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConnection.h
index fee94dd9b6e441017cded2382815519cfa640121..4bb74b10804bf93fe017dbacc2e6c20efdbf51dd 100755 (executable)
@@ -1,65 +1,87 @@
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
 // $Id$
-// Category: motif
-//
-// Class AliMpConnection
-// ---------------------
-// Class that defines a connexion properties.
-//
-// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+// $MpId: AliMpConnection.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
+
+/// \ingroup motif
+/// \class AliMpConnection
+/// \brief A connection properties.
+///
+/// \author David Guez, Ivana Hrivnacova; IPN Orsay
 
 #ifndef ALI_MP_CONNECTION_H
 #define ALI_MP_CONNECTION_H
 
 #include <TObject.h>
-#include <TString.h>
 
 #include "AliMpMotifType.h"
 #include "AliMpIntPair.h"
 
+#include <TString.h>
+
 class AliMpConnection : public TObject
 {
   public:
     AliMpConnection();
-    AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum);
+    AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum,
+                    const AliMpIntPair& localIndices);
     virtual ~AliMpConnection();
 
     // methods
 
+    //
     // accessors
+    //
+          /// Return Berg connector number
     Int_t GetBergNum()   const {return fBergNum;}
+          /// Return kapton connector number
     Int_t GetKaptonNum() const {return fKaptonNum;}
+          /// Return Gassiplex channel number
     Int_t GetGassiNum()  const {return fGassiNum;}
+          /// Return pad number
     Int_t GetPadNum()  const {return fPadNum;}
+          /// Return the motif type which contains this connection
     AliMpMotifType *GetOwner() const {return fOwner;}
     
     AliMpIntPair LocalIndices() const;
     TString  PadName() const;
+    
+    //
     // modifiers
-    void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
+    //
 
-  protected:
-    AliMpConnection(const AliMpConnection& right);
+          /// Set Gassiplex channel number
+    void SetGassiNum(Int_t n) { fGassiNum = n; }
+          /// Set the motif type which contains this connection
+    void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
 
-    // operators
-    AliMpConnection& operator=(const AliMpConnection& right);
+    // void SetLocalIndices(const AliMpIntPair& pair);
     
   private:
+    /// Not implemented
+    AliMpConnection(const AliMpConnection& right);
+    /// Not implemented
+    AliMpConnection& operator=(const AliMpConnection& right);
+
     // data members
-    Int_t fPadNum;    // Pad number
-    Int_t fBergNum;   // Berg connector number
-    Int_t fKaptonNum; // Kapton connector number
-    Int_t fGassiNum;  // Gassiplex channel number
-    AliMpMotifType *fOwner; //The motif type which contains this connection
+    Int_t fPadNum;    ///< Pad number
+    Int_t fBergNum;   ///< Berg connector number
+    Int_t fKaptonNum; ///< Kapton connector number
+    Int_t fGassiNum;  ///< Gassiplex channel number
+    AliMpMotifType *fOwner; ///< The motif type which contains this connection
 
   ClassDef(AliMpConnection,1)  // Connection description
 };
 
 // inline functions
 
+          /// Return the pad number converted to a name
 inline TString AliMpConnection::PadName() const 
 { return fOwner->PadName(fPadNum); }
 
-inline AliMpIntPair AliMpConnection::LocalIndices() const
-{ return fOwner->FindLocalIndicesByConnection(this);}
+//          /// Return the local indices of this pad in the motif
+//inline AliMpIntPair AliMpConnection::LocalIndices() const
+//{ return fOwner->FindLocalIndicesByConnection(this);}
 
 #endif //ALI_MP_CONNECTION_H