1 #ifndef ALIMUONTRIGGERCRATESTORE_H
2 #define ALIMUONTRIGGERCRATESTORE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONTriggerCrateStore
11 /// \brief A container for AliMUONTriggerCrate objects.
13 // Author Laurent Aphecetche
21 class AliMUONLocalTriggerBoard;
22 class AliMUONTriggerCrate;
25 class AliMUONCalibrationData;
27 class AliMUONTriggerCrateStore : public TObject
30 AliMUONTriggerCrateStore();
31 virtual ~AliMUONTriggerCrateStore();
33 Int_t NumberOfCrates() const;
35 AliMUONTriggerCrate* Crate(const char* crateName) const;
36 AliMUONTriggerCrate* Crate(Int_t ddl, Int_t reg) const;
38 Int_t NumberOfLocalBoards() const;
40 AliMUONLocalTriggerBoard* LocalBoard(Int_t boardNumber) const;
42 void ReadFromFile(AliMUONCalibrationData* calibData);
43 TIterator* CreateCrateIterator() const;
45 TIterator* CreateLocalBoardIterator() const;
49 AliMUONTriggerCrateStore(const AliMUONTriggerCrateStore& rhs);
51 AliMUONTriggerCrateStore& operator = (const AliMUONTriggerCrateStore& rhs);
54 void AddCrate(const char* crateName);
57 AliMpExMap* fCrates; ///< list of crates
58 AliMpExMap* fLocalBoards; ///< local boards (indexed by their number)
60 TString GetCrateName(Int_t ddl, Int_t reg) const;
62 ClassDef(AliMUONTriggerCrateStore,2) // Reader for CRATE.TXT file