LCOV - code coverage report
Current view: top level - MUON/MUONmapping - AliMpTriggerCrate.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 4 75.0 %
Date: 2016-06-14 17:26:59 Functions: 4 8 50.0 %

          Line data    Source code
       1             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       2             :  * See cxx source for full Copyright notice                               */
       3             : 
       4             : // $MpId: $ 
       5             : 
       6             : /// \ingroup mptrigger
       7             : /// \class AliMpTriggerCrate
       8             : /// \brief The class defines the properties of trigger crate
       9             : ///
      10             : /// \author Ch. Finck, Subatech Nantes
      11             : 
      12             : #ifndef ALI_MP_TRIGGER_CRATE_H
      13             : #define ALI_MP_TRIGGER_CRATE_H
      14             : 
      15             : #include "AliMpArrayI.h"
      16             : 
      17             : #include <TNamed.h>
      18             : #include <TString.h>
      19             : 
      20             : class AliMpTriggerCrate : public  TNamed {
      21             : 
      22             :   public:
      23             :     AliMpTriggerCrate(const Char_t* name, UShort_t Id);
      24             :     AliMpTriggerCrate(TRootIOCtor* /*ioCtor*/);
      25             :     virtual ~AliMpTriggerCrate();
      26             :     
      27             :     static TString GenerateName(Int_t crateId, Int_t ddlId, Int_t nodDdls);
      28             : 
      29             :     // methods 
      30             :     Bool_t AddLocalBoard(Int_t localBoardId);
      31             : 
      32             :     /// get methods
      33             :     Int_t  GetDdlId() const;
      34             :     UShort_t GetId()  const;
      35             :     Int_t  GetNofLocalBoards() const;
      36             :     Int_t  GetLocalBoardId(Int_t index) const;
      37             :     Bool_t HasLocalBoard(Int_t localBoardId) const;
      38             :     
      39             :     /// set methods
      40          96 :     void SetDdlId(Int_t ddl) {fDdlId = ddl;}
      41             :     
      42             :   private:
      43             :     /// Not implemented
      44             :     AliMpTriggerCrate();
      45             :     /// Not implemented
      46             :     AliMpTriggerCrate(const AliMpTriggerCrate& rhs);
      47             :     /// Not implemented
      48             :     AliMpTriggerCrate& operator=(const AliMpTriggerCrate& rhs);
      49             : 
      50             :     // data members
      51             :     UShort_t     fId;         ///< crate number
      52             :     Int_t        fDdlId;      ///< DDL to which this bus patch is connected
      53             :     AliMpArrayI  fLocalBoard; ///< local board connected to this crate
      54             : 
      55         120 :   ClassDef(AliMpTriggerCrate,3)  // The class collectiong electronics properties of DDL
      56             : };
      57             : 
      58             : // inline functions
      59             : 
      60             : 
      61             : /// Return the Ddl  Id
      62             : inline Int_t AliMpTriggerCrate::GetDdlId() const
      63           0 : {  return fDdlId; }
      64             : 
      65             : /// Return  Id
      66             : inline UShort_t AliMpTriggerCrate::GetId() const
      67         448 : {  return fId; }
      68             : 
      69             : 
      70             : #endif //ALI_MP_TRIGGER__CRATE_H
      71             : 
      72             : 
      73             : 
      74             : 
      75             : 
      76             : 
      77             : 
      78             : 
      79             : 
      80             : 
      81             : 
      82             : 
      83             : 
      84             : 

Generated by: LCOV version 1.11