AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpTriggerCrate.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $MpId: $
5 
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 
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 
40  void SetDdlId(Int_t ddl) {fDdlId = ddl;}
41 
42  private:
49 
50  // data members
51  UShort_t fId;
52  Int_t fDdlId;
54 
55  ClassDef(AliMpTriggerCrate,3) // The class collectiong electronics properties of DDL
56 };
57 
58 // inline functions
59 
60 
62 inline Int_t AliMpTriggerCrate::GetDdlId() const
63 { return fDdlId; }
64 
66 inline UShort_t AliMpTriggerCrate::GetId() const
67 { 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 
Int_t GetDdlId() const
get methods
UShort_t GetId() const
Return Id.
The class defines the properties of trigger crate.
Int_t GetLocalBoardId(Int_t index) const
AliMpTriggerCrate()
Not implemented.
Int_t fDdlId
DDL to which this bus patch is connected.
AliMpTriggerCrate & operator=(const AliMpTriggerCrate &rhs)
Not implemented.
Bool_t AddLocalBoard(Int_t localBoardId)
Int_t GetNofLocalBoards() const
AliMpArrayI fLocalBoard
local board connected to this crate
UShort_t fId
crate number
static TString GenerateName(Int_t crateId, Int_t ddlId, Int_t nodDdls)
Bool_t HasLocalBoard(Int_t localBoardId) const
Helper class for sorted integer array.
Definition: AliMpArrayI.h:21
void SetDdlId(Int_t ddl)
set methods