- Disentangle masks effect from trigger chamber efficiency estimation.
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCrateConfig.h
CommitLineData
92c23b09 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
bf4d93eb 4// $Id$
92c23b09 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
7d5d0cc5 12#ifndef ALI_MUON_TRIGGER_CRATE_CONFIG_H
13#define ALI_MUON_TRIGGER_CRATE_CONFIG_H
92c23b09 14
15#include "AliMpArrayI.h"
5cc125b2 16#include "AliMpTriggerCrate.h"
92c23b09 17
5cc125b2 18#include <TObject.h>
92c23b09 19#include <TString.h>
20#include "AliMpArrayI.h"
21
5cc125b2 22class AliMUONTriggerCrateConfig : public TObject {
92c23b09 23
24 public:
5cc125b2 25 AliMUONTriggerCrateConfig(AliMpTriggerCrate* mpTriggerCrate);
7d5d0cc5 26 AliMUONTriggerCrateConfig(TRootIOCtor* ioCtor);
92c23b09 27 virtual ~AliMUONTriggerCrateConfig();
28
5cc125b2 29 // set methods
30 void SetMask(UShort_t mask);
31 void SetMode(UShort_t mode);
32 void SetCoinc(UShort_t coinc);
33
34 // get methods
35 const Char_t* GetName() const;
92c23b09 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);
44
1497cb86 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;
49
92c23b09 50 private:
5cc125b2 51 /// Not implemented
52 AliMUONTriggerCrateConfig();
92c23b09 53 /// Not implemented
54 AliMUONTriggerCrateConfig(const AliMUONTriggerCrateConfig& rhs);
55 /// Not implemented
56 AliMUONTriggerCrateConfig& operator=(const AliMUONTriggerCrateConfig& rhs);
57
58 // data members
5cc125b2 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
1497cb86 63
64 // not used data members kept for backward compatibility
65 UShort_t fId; ///< crate number
66 AliMpArrayI fLocalBoard; ///< local board connected to this crate
67
5cc125b2 68 ClassDef(AliMUONTriggerCrateConfig,2) // The class collectiong electronics properties of DDL
92c23b09 69};
70
71// inline functions
72
5cc125b2 73/// Set regional mask
74inline void AliMUONTriggerCrateConfig::SetMask(UShort_t mask)
75{ fMask = mask; }
76
77/// Set mode operating for crate
78inline void AliMUONTriggerCrateConfig::SetMode(UShort_t mode)
79{ fMode = mode; }
80
81/// Set coincidence mode for crate
82inline void AliMUONTriggerCrateConfig::SetCoinc(UShort_t coinc)
83{ fCoinc = coinc; }
84
85/// Return name
86inline const Char_t* AliMUONTriggerCrateConfig::GetName() const
87{ return fMpCrate->GetName(); }
88
92c23b09 89/// Return Id
90inline UShort_t AliMUONTriggerCrateConfig::GetId() const
5cc125b2 91{ return fMpCrate->GetId(); }
92c23b09 92
93/// Return mask
94inline UShort_t AliMUONTriggerCrateConfig::GetMask() const
95{ return fMask; }
96
97/// Return Mode
98inline UShort_t AliMUONTriggerCrateConfig::GetMode() const
99{ return fMode; }
100
101/// Return coinc
102inline UShort_t AliMUONTriggerCrateConfig::GetCoinc() const
103{ return fCoinc; }
104
105#endif
106
107
108
109
110
111
112
113
114
115
116
117
118
119