]>
Commit | Line | Data |
---|---|---|
cde9ca47 | 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 mptrigger | |
7 | /// \class AliMpRegionalTrigger | |
8 | /// \brief The class defines the properties of regional trigger crate | |
9 | /// | |
10 | /// \author Ch. Finck, Subatech Nantes; I. Hrivnacova, IPN Orsay | |
11 | ||
12 | #ifndef ALI_MP_REGIONAL_TRIGGER_H | |
13 | #define ALI_MP_REGIONAL_TRIGGER_H | |
14 | ||
15 | #include <TObject.h> | |
16 | ||
17 | #include "AliMpExMap.h" | |
18 | ||
19 | #include <TObjArray.h> | |
20 | ||
21 | class AliMpTriggerCrate; | |
22 | class AliMpLocalBoard; | |
630711ed | 23 | class TIterator; |
cde9ca47 | 24 | |
25 | class AliMpRegionalTrigger : public TObject{ | |
26 | ||
27 | public: | |
28 | AliMpRegionalTrigger(); | |
29 | AliMpRegionalTrigger(const AliMpRegionalTrigger& rhs); | |
630711ed | 30 | AliMpRegionalTrigger(TRootIOCtor* ioCtor); |
cde9ca47 | 31 | virtual ~AliMpRegionalTrigger(); |
32 | ||
33 | // operators | |
34 | AliMpRegionalTrigger& operator=(const AliMpRegionalTrigger& rhs); | |
35 | ||
36 | // methods | |
37 | Bool_t ReadData(const TString& fileName = ""); | |
38 | ||
39 | AliMpTriggerCrate* FindTriggerCrate(TString crateName, Bool_t warn = true) const; | |
40 | AliMpLocalBoard* FindLocalBoard(Int_t localBoardId, Bool_t warn = true) const; | |
41 | ||
42 | // method for looping | |
630711ed | 43 | |
44 | TIterator* CreateCrateIterator() const; | |
45 | ||
46 | TIterator* CreateLocalBoardIterator() const; | |
47 | ||
48 | Int_t LocalBoardId(Int_t index) const; | |
cde9ca47 | 49 | |
50 | Int_t GetNofTriggerCrates() const; | |
cde9ca47 | 51 | |
52 | Int_t GetNofLocalBoards() const; | |
cde9ca47 | 53 | |
54 | private: | |
55 | // data members | |
56 | AliMpExMap fTriggerCrates; ///< map for trigger crates | |
630711ed | 57 | AliMpExMap fLocalBoardMap; ///< map of local boards (owner of boards) |
58 | TObjArray fLocalBoardArray; ///< array of local boards (not owner of boards, the map is the owner) | |
cde9ca47 | 59 | |
630711ed | 60 | ClassDef(AliMpRegionalTrigger,2) // Regional trigger crate |
cde9ca47 | 61 | }; |
62 | ||
cde9ca47 | 63 | |
64 | #endif //ALI_MP_REGIONAL__CRATE_H | |
65 | ||
66 | ||
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 |