1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \class AliMUONTriggerCrateConfig
8 /// \brief The class defines the configuration of trigger crate
10 /// \author Ch. Finck, Subatech Nantes
12 #ifndef ALI_MUON_TRIGGER_CRATE_CONFIG_H
13 #define ALI_MUON_TRIGGER_CRATE_CONFIG_H
15 #include "AliMpArrayI.h"
16 #include "AliMpTriggerCrate.h"
20 #include "AliMpArrayI.h"
22 class AliMUONTriggerCrateConfig : public TObject {
25 AliMUONTriggerCrateConfig(AliMpTriggerCrate* mpTriggerCrate);
26 AliMUONTriggerCrateConfig(TRootIOCtor* ioCtor);
27 virtual ~AliMUONTriggerCrateConfig();
30 void SetMask(UShort_t mask);
31 void SetMode(UShort_t mode);
32 void SetCoinc(UShort_t coinc);
35 const Char_t* GetName() const;
36 UShort_t GetId() const;
37 UShort_t GetMask() const;
38 UShort_t GetMode() const;
39 UShort_t GetCoinc() const;
40 Int_t GetNofLocalBoards() const;
41 Int_t GetLocalBoardId(Int_t index) const;
42 Bool_t HasLocalBoard(Int_t localBoardId) const;
43 Bool_t AddLocalBoard(Int_t localBoardId);
45 // Only for checking data memebres for backward compatibility
46 // These methods should not be called from other code !!!
47 Int_t GetNofLocalBoardsOld() const;
48 Int_t GetLocalBoardIdOld(Int_t index) const;
52 AliMUONTriggerCrateConfig();
54 AliMUONTriggerCrateConfig(const AliMUONTriggerCrateConfig& rhs);
56 AliMUONTriggerCrateConfig& operator=(const AliMUONTriggerCrateConfig& rhs);
59 AliMpTriggerCrate* fMpCrate; ///< mapping crate
60 UShort_t fMask; ///< regional mask
61 UShort_t fMode; ///< mode operating for crate
62 UShort_t fCoinc; ///< coincidence mode for crate
64 // not used data members kept for backward compatibility
65 UShort_t fId; ///< crate number
66 AliMpArrayI fLocalBoard; ///< local board connected to this crate
68 ClassDef(AliMUONTriggerCrateConfig,2) // The class collectiong electronics properties of DDL
74 inline void AliMUONTriggerCrateConfig::SetMask(UShort_t mask)
77 /// Set mode operating for crate
78 inline void AliMUONTriggerCrateConfig::SetMode(UShort_t mode)
81 /// Set coincidence mode for crate
82 inline void AliMUONTriggerCrateConfig::SetCoinc(UShort_t coinc)
86 inline const Char_t* AliMUONTriggerCrateConfig::GetName() const
87 { return fMpCrate->GetName(); }
90 inline UShort_t AliMUONTriggerCrateConfig::GetId() const
91 { return fMpCrate->GetId(); }
94 inline UShort_t AliMUONTriggerCrateConfig::GetMask() const
98 inline UShort_t AliMUONTriggerCrateConfig::GetMode() const
102 inline UShort_t AliMUONTriggerCrateConfig::GetCoinc() const