]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpTriggerCrate.h
In SetNofManusPerModule(): return false if no action
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTriggerCrate.h
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 management
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, Int_t ddlId);
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
35     Int_t  GetNofLocalBoards() const;
36     Int_t  GetLocalBoardId(Int_t index) const;
37     Bool_t HasLocalBoard(Int_t localBoardId) const;
38     
39
40   private:
41     /// Not implemented
42     AliMpTriggerCrate();
43     /// Not implemented
44     AliMpTriggerCrate(const AliMpTriggerCrate& rhs);
45     /// Not implemented
46     AliMpTriggerCrate& operator=(const AliMpTriggerCrate& rhs);
47
48     // data members     
49     Int_t        fDdlId; ///< DDL to which this bus patch is connected
50     AliMpArrayI  fLocalBoard; ///< local board connected to this crate
51     
52   ClassDef(AliMpTriggerCrate,1)  // The class collectiong electronics properties of DDL
53 };
54
55 // inline functions
56
57
58 /// Return the Ddl  Id
59 inline Int_t AliMpTriggerCrate::GetDdlId() const
60 {  return fDdlId; }
61
62 #endif //ALI_BUS_PATCH_H
63
64
65
66
67
68
69
70
71
72
73
74
75
76