]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpBusPatch.h
Added switch as new member for DA (Christian)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpBusPatch.h
index 4cedb0eaa10b9dca17c429b02d352f2848dfe4f8..10158a88a1d29a6a72ee2f8cb209229f8672ab9a 100644 (file)
@@ -30,6 +30,8 @@ class AliMpBusPatch : public  TObject {
 
     // methods 
     Bool_t AddManu(Int_t manuId);
+    Bool_t SetNofManusPerModule(Int_t manuNumber = 0);
+    void   SetCableLength(Float_t length);
 
     // get methods
     Int_t  GetId() const;
@@ -39,22 +41,31 @@ class AliMpBusPatch : public  TObject {
     Int_t  GetManuId(Int_t index) const;
     Bool_t HasManu(Int_t manuId) const;
     
+    Int_t  GetNofPatchModules() const;
+    Int_t  GetNofManusPerModule(Int_t patchModule) const;
+    
+    Float_t  GetCableLength() const;
 
   private:
+    /// Not implemented
     AliMpBusPatch();
+    /// Not implemented
     AliMpBusPatch(const AliMpBusPatch& rhs);
+    /// Not implemented
     AliMpBusPatch& operator=(const AliMpBusPatch& rhs);
 
     // static data members     
-    static const Int_t  fgkOffset; //< Offset for conversion global/local ID  
+    static const Int_t  fgkOffset; ///< Offset for conversion global/local ID  
 
     // data members    
     Int_t        fId;    ///< Identifier (unique)
     Int_t        fDEId;  ///< Detection element to which this bus patch is connected
     Int_t        fDdlId; ///< DDL to which this bus patch is connected
     AliMpArrayI  fManus; ///< Manu Ids connected to this bus patch
-     
-  ClassDef(AliMpBusPatch,1)  // The class collectiong electronics properties of DDL
+    AliMpArrayI  fNofManusPerModule;///< Nof Manus per patch modules (PCBs)
+    Float_t      fCableLength; ///< length of the buspatch cable
+
+  ClassDef(AliMpBusPatch,2)  // The class collectiong electronics properties of DDL
 };
 
 // inline functions
@@ -71,6 +82,14 @@ inline Int_t AliMpBusPatch::GetDEId() const
 inline Int_t AliMpBusPatch::GetDdlId() const
 {  return fDdlId; }
 
+/// Return length of buspatch
+inline Float_t  AliMpBusPatch::GetCableLength() const
+{ return fCableLength; }
+
+/// Set length of buspatch
+inline void  AliMpBusPatch::SetCableLength(Float_t length)
+{ fCableLength = length; }
+
 #endif //ALI_BUS_PATCH_H