- Removed not implemented methods AddData(), GetGlobalTriggerPattern
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerElectronics.h
CommitLineData
516d3280 1#ifndef ALIMUONTRIGGERELECTRONICS_H
2#define ALIMUONTRIGGERELECTRONICS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
4f725a38 8/// \ingroup sim
9/// \class AliMUONTriggerElectronics
10/// \brief Manager class for muon trigger electronics
11///
12/// Client of trigger board classes
13///
14/// \author Rachid Guernane (LPCCFd)
516d3280 15
16#ifndef ROOT_TTask
17# include "TTask.h"
18#endif
19
20#ifndef ROOT_TArrayI
21# include "TArrayI.h"
22#endif
23
24#ifndef ROOT_TString
25# include "TString.h"
26#endif
27
28class AliMUONTriggerCrate;
4c0f0f5d 29class AliMUONCalibrationData;
516d3280 30class AliMUONData;
31class AliMUONGlobalTriggerBoard;
f1e8d46c 32class AliMUONTriggerCrateStore;
1908473e 33class AliMUONLocalTrigger;
34class AliMUONGlobalTrigger;
516d3280 35
36class AliMUONTriggerElectronics : public TTask
37{
38 public:
4f725a38 39 AliMUONTriggerElectronics(AliMUONData* data = 0,
40 AliMUONCalibrationData* calibData=0);
516d3280 41 virtual ~AliMUONTriggerElectronics();
42
43 virtual void Exec(Option_t*);
44
7fc86979 45 /// Set Crate config from ascii file
f023e45b 46 virtual void SetDataSource(TString SourceFile =
47 "$ALICE_ROOT/MUON/mapping/data/stationTrigger/crate.dat")
516d3280 48 {fSourceFileName = SourceFile;}
49
4f725a38 50 virtual void Factory(AliMUONCalibrationData* calibData);
51 void LoadMasks(AliMUONCalibrationData* calibData);
516d3280 52
516d3280 53 virtual void Feed(UShort_t pattern[2][4]);
f1e8d46c 54 virtual void FeedM();
68ee8c5e 55
516d3280 56 virtual void Reset();
57
58 virtual void Scan(Option_t *option);
59
60 virtual void LocalResponse();
61 virtual void RegionalResponse();
62 virtual void GlobalResponse();
63
516d3280 64 virtual void DumpOS();
65
66 virtual void Digits2Trigger();
67 virtual void Trigger();
516d3280 68
43368512 69 private:
884a73f1 70 AliMUONTriggerElectronics(const AliMUONTriggerElectronics& right);
71 AliMUONTriggerElectronics& operator = (const AliMUONTriggerElectronics& right);
72
516d3280 73 private:
829425a5 74 TString fSourceFileName; ///< Source file
75 AliMUONTriggerCrateStore *fCrates; ///< Crate array
76 AliMUONGlobalTriggerBoard *fGlobalTriggerBoard; ///< Global trigger board
4b826072 77 AliMUONData *fMUONData; //!< Data container for MUON subsystem
1908473e 78 AliMUONLocalTrigger* fLocalTrigger; //!< pointer for local trigger container
79 AliMUONGlobalTrigger* fGlobalTrigger; //!< pointer for global trigger container
80
f1e8d46c 81 ClassDef(AliMUONTriggerElectronics,2)
516d3280 82};
83#endif