Gros chantier trigger:
[u/mrichter/AliRoot.git] / MUON / AliMUONRegionalTriggerConfig.h
CommitLineData
92c23b09 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 calib
7/// \class AliMUONRegionalTriggerConfig
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 ALIMUON_REGIONAL_TRIGGER_CONFIG_H
13#define ALIMUON_REGIONAL_TRIGGER_CONFIG_H
14
15#include <TObject.h>
16
17#include "AliMpExMap.h"
18
19#include <TObjArray.h>
20
21class AliMUONTriggerCrateConfig;
22class AliMUONLocalBoardConfig;
23
24class AliMUONRegionalTriggerConfig : public TObject{
25
26 public:
27 AliMUONRegionalTriggerConfig();
28 AliMUONRegionalTriggerConfig(const AliMUONRegionalTriggerConfig& rhs);
29 virtual ~AliMUONRegionalTriggerConfig();
30
31 // operators
32 AliMUONRegionalTriggerConfig& operator=(const AliMUONRegionalTriggerConfig& rhs);
33
34 // methods
35 Int_t ReadData(const TString& fileName = "");
36
37 AliMUONTriggerCrateConfig* FindTriggerCrate(TString crateName, Bool_t warn = true) const;
38
39 // method for looping
40
41 Int_t GetNofTriggerCrates() const;
42 AliMUONTriggerCrateConfig* GetTriggerCrate(Int_t index) const;
43 AliMUONTriggerCrateConfig* GetTriggerCrateFast(Int_t index) const;
44 TExMapIter GetTriggerCrateItr() const;
45
46
47 private:
48 // data members
49 AliMpExMap fTriggerCrates; ///< map for trigger crates
50
51 ClassDef(AliMUONRegionalTriggerConfig,1) // Regional trigger crate config
52};
53
54/// Return trigger crates iterator
55inline TExMapIter AliMUONRegionalTriggerConfig::GetTriggerCrateItr() const {
56 return fTriggerCrates.GetIterator();
57}
58#endif
59
60
61
62
63
64
65
66
67
68
69
70
71
72