/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ // $MpId: AliMpManuGeo.h,v 1.5 2006/05/24 13:58:16 ivana Exp $ /// \ingroup management /// \class AliMpLocalBoard /// \brief Class that manages the properties of the local board /// /// \author Ch. Finck; Subatech Nantes #ifndef ALI_MP_LOCAL_BOARD_H #define ALI_MP_LOCAL_BOARD_H #include #include "AliMpArrayI.h" class TString; class AliMpLocalBoard : public TNamed { public: AliMpLocalBoard(Int_t id, const Char_t* name, Int_t slot); AliMpLocalBoard(TRootIOCtor* /*ioCtor*/); virtual ~AliMpLocalBoard(); // detElem Bool_t AddDE(Int_t detElemId); Int_t GetNofDEs() const; Int_t GetDEId(Int_t index) const; Int_t GetDEIdByChamber(Int_t chamberId) const; Bool_t HasDEId(Int_t detElemId) const; // get methods // /// Return the identifier (unique) Int_t GetId() const {return fId;} /// Return the slot Identifier in the given crate Int_t GetSlot() const {return fSlot;} // Switches // Bool_t AddSwitch(Int_t swit); Int_t GetNofSwitches() const; Int_t GetSwitch(Int_t index) const; // Transverse connector // /// Set transverse connector void SetTC(Bool_t connect) {fTC = connect;} /// Return transverse connector Bool_t GetTC() const {return fTC;} // Crate name // /// Set crate name void SetCrate(TString name) {fCrate = name;} /// Return crate name TString GetCrate() const {return fCrate;} // Notify // /// Set notified flag (not copy card) void SetNotified(Bool_t notify) {fNotified = notify;} /// Return notified flag (not copy card) Bool_t IsNotified() const {return fNotified;} // given position (line, col) AliMpIntPair GetPosition() const; private: /// Not implemented AliMpLocalBoard(); /// Not implemented AliMpLocalBoard(const AliMpLocalBoard& src); /// Not implemented AliMpLocalBoard& operator = (const AliMpLocalBoard& src) ; Int_t GetIndex(Int_t chamberId) const; 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 Bool_t fNotified; ///< notified flag (not copy card) AliMpArrayI fDEId; ///< list of Detection element to which this local board is connected ClassDef(AliMpLocalBoard,1) //utility class for the motif type }; #endif