]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpLocalBoard.h
Option for customized binning (as in AliUEHist), EventMixing binning now derived...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpLocalBoard.h
index 0624ec794209f7b505ba4ce8ee3d44b495a69604..4f434a8f82220a8d20f9684d71b816f7e96aa6ad 100644 (file)
@@ -4,7 +4,7 @@
 // $Id$
 // $MpId: AliMpManuGeo.h,v 1.5 2006/05/24 13:58:16 ivana Exp $
 
-/// \ingroup management
+/// \ingroup mptrigger
 /// \class AliMpLocalBoard
 /// \brief Class that manages the properties of the local board
 ///
@@ -15,7 +15,8 @@
 
 #include <TNamed.h>
 
-#include  "AliMpArrayI.h"
+#include "AliMpArrayI.h"
+#include "AliMpEncodePair.h"
 
 class TString;
 
@@ -46,11 +47,11 @@ class AliMpLocalBoard : public TNamed
 
     // Switches
     //
-    Bool_t AddSwitch(Int_t swit);
-    Int_t  GetNofSwitches() const;
+            /// Get switch bit wise (return a inteter for backware compatibility)
     Int_t  GetSwitch(Int_t index) const;
-
-    void   SetSwitch(UInt_t swit) {fSwitch = swit;}
+            /// Set switch in a compact way
+    void   SetSwitch(UInt_t swit);
+            /// Get switch in a compact way
     UInt_t  GetSwitch() const {return fSwitch;}
 
     // switch enum for local board (see PRR, chpt: 2.4.4)
@@ -83,19 +84,20 @@ class AliMpLocalBoard : public TNamed
              /// Return notified flag (not copy card) 
     Bool_t   IsNotified() const {return fNotified;}
 
-    // given position (line, col)
-    AliMpIntPair GetPosition() const;
+    
+    /// given position (line, col)
+    MpPair_t GetPosition() const;
 
     // Id to be copy to or from
     
     /// Get Id from where the X input are copied
-    Int_t GetInputXfrom() {return fInputXfrom;}
+    Int_t GetInputXfrom() const {return fInputXfrom;}
     /// Get Id to where the X input are copied
-    Int_t GetInputXto()   {return fInputXto;}
+    Int_t GetInputXto() const   {return fInputXto;}
     /// Get Id from where the Y input are copied
-    Int_t GetInputYfrom() {return fInputYfrom;}
+    Int_t GetInputYfrom() const {return fInputYfrom;}
     /// Get Id to where the Y input are copied
-    Int_t GetInputYto()   {return fInputYto;}
+    Int_t GetInputYto() const  {return fInputYto;}
 
     /// Set Id from where the X input are copied 
     void SetInputXfrom(Int_t id) {fInputXfrom = id;}
@@ -118,10 +120,8 @@ class AliMpLocalBoard : public TNamed
    
    Int_t       fId;       ///< Identifier (unique)
    Int_t       fSlot;     ///< Slot Identifier in the given crate 
-
    Bool_t      fTC;       ///< Transverse connector
    TString     fCrate;    ///< Crate name
-   AliMpArrayI fSwitches; ///< switches
    UInt_t      fSwitch;   ///< switches in compact way
    Bool_t      fNotified; ///< notified flag (not copy card)
    AliMpArrayI fDEId;     ///< list of Detection element to which this local board is connected
@@ -130,7 +130,7 @@ class AliMpLocalBoard : public TNamed
    Int_t       fInputYfrom;///< local id of y1-4 inputs copied from (zero: not copied)
    Int_t       fInputYto;  ///< local id of y1-4 inputs copied to (zero: not copied)
 
-  ClassDef(AliMpLocalBoard,2) //utility class for the motif type
+  ClassDef(AliMpLocalBoard,3) //utility class for the motif type
 };