]>
Commit | Line | Data |
---|---|---|
92c23b09 | 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 calib | |
7 | /// \class AliMUONTriggerCrateConfig | |
8 | /// \brief The class defines the configuration of trigger crate | |
9 | /// | |
10 | /// \author Ch. Finck, Subatech Nantes | |
11 | ||
12 | #ifndef ALIMUON_TRIGGER_CRATE_CONFIG_H | |
13 | #define ALIMUON_TRIGGER_CRATE_CONFIG_H | |
14 | ||
15 | #include "AliMpArrayI.h" | |
16 | ||
17 | #include <TNamed.h> | |
18 | #include <TString.h> | |
19 | #include "AliMpArrayI.h" | |
20 | ||
21 | class AliMUONTriggerCrateConfig : public TNamed { | |
22 | ||
23 | public: | |
24 | ||
25 | AliMUONTriggerCrateConfig(); | |
26 | AliMUONTriggerCrateConfig(const Char_t* name, UShort_t Id, UShort_t mask, | |
27 | UShort_t mode, UShort_t coinc); | |
28 | virtual ~AliMUONTriggerCrateConfig(); | |
29 | ||
30 | /// get methods | |
31 | UShort_t GetId() const; | |
32 | UShort_t GetMask() const; | |
33 | UShort_t GetMode() const; | |
34 | UShort_t GetCoinc() const; | |
35 | Int_t GetNofLocalBoards() const; | |
36 | Int_t GetLocalBoardId(Int_t index) const; | |
37 | Bool_t HasLocalBoard(Int_t localBoardId) const; | |
38 | Bool_t AddLocalBoard(Int_t localBoardId); | |
39 | ||
40 | private: | |
41 | ||
42 | /// Not implemented | |
43 | AliMUONTriggerCrateConfig(const AliMUONTriggerCrateConfig& rhs); | |
44 | /// Not implemented | |
45 | AliMUONTriggerCrateConfig& operator=(const AliMUONTriggerCrateConfig& rhs); | |
46 | ||
47 | // data members | |
48 | UShort_t fId; ///< crate number | |
49 | UShort_t fMask; ///< regional mask | |
50 | UShort_t fMode; ///< mode operating for crate | |
51 | UShort_t fCoinc; ///< coincidence mode for crate | |
52 | AliMpArrayI fLocalBoard; ///< local board connected to this crate | |
53 | ||
54 | ClassDef(AliMUONTriggerCrateConfig,1) // The class collectiong electronics properties of DDL | |
55 | }; | |
56 | ||
57 | // inline functions | |
58 | ||
59 | /// Return Id | |
60 | inline UShort_t AliMUONTriggerCrateConfig::GetId() const | |
61 | { return fId; } | |
62 | ||
63 | /// Return mask | |
64 | inline UShort_t AliMUONTriggerCrateConfig::GetMask() const | |
65 | { return fMask; } | |
66 | ||
67 | /// Return Mode | |
68 | inline UShort_t AliMUONTriggerCrateConfig::GetMode() const | |
69 | { return fMode; } | |
70 | ||
71 | /// Return coinc | |
72 | inline UShort_t AliMUONTriggerCrateConfig::GetCoinc() const | |
73 | { return fCoinc; } | |
74 | ||
75 | #endif | |
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 |