]>
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; | |
ab167304 | 23 | class AliMpDataStreams; |
630711ed | 24 | class TIterator; |
cde9ca47 | 25 | |
b80faac0 | 26 | using std::istream; |
27 | ||
cde9ca47 | 28 | class AliMpRegionalTrigger : public TObject{ |
29 | ||
30 | public: | |
31 | AliMpRegionalTrigger(); | |
32 | AliMpRegionalTrigger(const AliMpRegionalTrigger& rhs); | |
630711ed | 33 | AliMpRegionalTrigger(TRootIOCtor* ioCtor); |
cde9ca47 | 34 | virtual ~AliMpRegionalTrigger(); |
35 | ||
36 | // operators | |
37 | AliMpRegionalTrigger& operator=(const AliMpRegionalTrigger& rhs); | |
38 | ||
39 | // methods | |
ab167304 | 40 | Bool_t ReadData(const TString& fileName); |
41 | Bool_t ReadData(const AliMpDataStreams& dataStreams); | |
cde9ca47 | 42 | |
43 | AliMpTriggerCrate* FindTriggerCrate(TString crateName, Bool_t warn = true) const; | |
44 | AliMpLocalBoard* FindLocalBoard(Int_t localBoardId, Bool_t warn = true) const; | |
45 | ||
46 | // method for looping | |
630711ed | 47 | |
48 | TIterator* CreateCrateIterator() const; | |
49 | ||
50 | TIterator* CreateLocalBoardIterator() const; | |
51 | ||
52 | Int_t LocalBoardId(Int_t index) const; | |
cde9ca47 | 53 | |
54 | Int_t GetNofTriggerCrates() const; | |
cde9ca47 | 55 | |
56 | Int_t GetNofLocalBoards() const; | |
5cc125b2 | 57 | |
58 | // ownership | |
59 | void SetTriggerCratesOwner(Bool_t owner); | |
cde9ca47 | 60 | |
61 | private: | |
228fd720 | 62 | Bool_t ReadData(istream& in); |
63 | ||
cde9ca47 | 64 | // data members |
65 | AliMpExMap fTriggerCrates; ///< map for trigger crates | |
5cc125b2 | 66 | AliMpExMap fLocalBoardMap; ///< map of local boards (owner of boards) |
67 | TObjArray fLocalBoardArray; ///< array of local boards (not owner of boards, the map is the owner) | |
cde9ca47 | 68 | |
630711ed | 69 | ClassDef(AliMpRegionalTrigger,2) // Regional trigger crate |
cde9ca47 | 70 | }; |
71 | ||
cde9ca47 | 72 | |
73 | #endif //ALI_MP_REGIONAL__CRATE_H | |
74 | ||
75 | ||
76 | ||
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 |