- Adding check and flagging for HG present
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCrateStore.h
CommitLineData
30dd09e2 1#ifndef ALIMUONTRIGGERCRATESTORE_H
2#define ALIMUONTRIGGERCRATESTORE_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
73c5afb5 9/// \ingroup trigger
30dd09e2 10/// \class AliMUONTriggerCrateStore
11/// \brief A container for AliMUONTriggerCrate objects.
12///
13985652 13// Author Laurent Aphecetche
30dd09e2 14
15#ifndef ROOT_TObject
16# include "TObject.h"
17#endif
18
aa6ecf89 19#include "TString.h"
20
30dd09e2 21class AliMUONLocalTriggerBoard;
22class AliMUONTriggerCrate;
23class AliMpExMap;
630711ed 24class TIterator;
92c23b09 25class AliMUONCalibrationData;
30dd09e2 26
27class AliMUONTriggerCrateStore : public TObject
28{
29public:
30 AliMUONTriggerCrateStore();
31 virtual ~AliMUONTriggerCrateStore();
32
33 Int_t NumberOfCrates() const;
630711ed 34
30dd09e2 35 AliMUONTriggerCrate* Crate(const char* crateName) const;
aa6ecf89 36 AliMUONTriggerCrate* Crate(Int_t ddl, Int_t reg) const;
37
30dd09e2 38 Int_t NumberOfLocalBoards() const;
630711ed 39
30dd09e2 40 AliMUONLocalTriggerBoard* LocalBoard(Int_t boardNumber) const;
41
92c23b09 42 void ReadFromFile(AliMUONCalibrationData* calibData);
630711ed 43 TIterator* CreateCrateIterator() const;
44
45 TIterator* CreateLocalBoardIterator() const;
30dd09e2 46
5398f946 47protected:
71a2d3aa 48 /// Not implemented
5398f946 49 AliMUONTriggerCrateStore(const AliMUONTriggerCrateStore& rhs);
71a2d3aa 50 /// Not implemented
5398f946 51 AliMUONTriggerCrateStore& operator = (const AliMUONTriggerCrateStore& rhs);
52
30dd09e2 53private:
54 void AddCrate(const char* crateName);
55
56private:
18b6b8c7 57 AliMpExMap* fCrates; ///< list of crates
58 AliMpExMap* fLocalBoards; ///< local boards (indexed by their number)
30dd09e2 59
aa6ecf89 60 TString GetCrateName(Int_t ddl, Int_t reg) const;
61
630711ed 62 ClassDef(AliMUONTriggerCrateStore,2) // Reader for CRATE.TXT file
30dd09e2 63};
64
65#endif