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 */
9 /// \class AliMUONTriggerElectronics
10 /// \brief Manager class for muon trigger electronics
12 /// Client of trigger board classes
14 /// \author Rachid Guernane (LPCCFd)
28 class AliMUONTriggerCrate;
29 class AliMUONCalibrationData;
31 class AliMUONGlobalTriggerBoard;
32 class AliMUONTriggerCrateStore;
33 class AliMUONLocalTrigger;
34 class AliMUONGlobalTrigger;
36 class AliMUONTriggerElectronics : public TTask
39 AliMUONTriggerElectronics(AliMUONData* data = 0,
40 AliMUONCalibrationData* calibData=0);
41 virtual ~AliMUONTriggerElectronics();
43 virtual void Exec(Option_t*);
45 /// Set Crate config from ascii file
46 virtual void SetDataSource(TString SourceFile =
47 "$ALICE_ROOT/MUON/mapping/data/stationTrigger/crate.dat")
48 {fSourceFileName = SourceFile;}
50 virtual void Factory(AliMUONCalibrationData* calibData);
51 void LoadMasks(AliMUONCalibrationData* calibData);
53 virtual void Feed(UShort_t pattern[2][4]);
58 virtual void Scan(Option_t *option);
60 virtual void LocalResponse();
61 virtual void RegionalResponse();
62 virtual void GlobalResponse();
64 virtual void DumpOS();
66 virtual void Digits2Trigger();
67 virtual void Trigger();
70 AliMUONTriggerElectronics(const AliMUONTriggerElectronics& right);
71 AliMUONTriggerElectronics& operator = (const AliMUONTriggerElectronics& right);
74 TString fSourceFileName; ///< Source file
75 AliMUONTriggerCrateStore *fCrates; ///< Crate array
76 AliMUONGlobalTriggerBoard *fGlobalTriggerBoard; ///< Global trigger board
77 AliMUONData *fMUONData; //!< Data container for MUON subsystem
78 AliMUONLocalTrigger* fLocalTrigger; //!< pointer for local trigger container
79 AliMUONGlobalTrigger* fGlobalTrigger; //!< pointer for global trigger container
81 ClassDef(AliMUONTriggerElectronics,2)