Renamed from RichConfig.C
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitMaker.h
CommitLineData
a3283a4c 1#ifndef ALIMUONDIGITMAKER_H
2#define ALIMUONDIGITMAKER_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
241560c2 8/// \ingroup base
a3283a4c 9/// \class AliMUONDigitMaker
10/// \brief Raw data class for trigger and tracker chambers
11///
12/// Readding Raw data class for trigger and tracker chambers
13
14#include <TObject.h>
15#include "TStopwatch.h"
00e86732 16class AliRawReader;
a3283a4c 17class AliMUONData;
18class AliMUONDigit;
19class AliMUONGlobalTrigger;
20class AliMUONLocalTrigger;
d53fb0de 21class AliMUONTriggerCrateStore;
d2d759cf 22class AliMUONLocalTriggerBoard;
23class AliMUONLocalStruct;
a3283a4c 24
a3283a4c 25class AliMUONRawStreamTracker;
26class AliMUONRawStreamTrigger;
27
28class AliMUONDigitMaker : public TObject
29{
30 public:
241560c2 31 AliMUONDigitMaker(Bool_t digit = kTRUE); // Constructor
a3283a4c 32 virtual ~AliMUONDigitMaker(void); // Destructor
33
34 // write raw data
35 Int_t Raw2Digits(AliRawReader* rawReader);
36
37 Int_t ReadTrackerDDL(AliRawReader* rawReader);
38 Int_t ReadTriggerDDL(AliRawReader* rawReader);
9265505b 39
40 /// Return MUON data
a3283a4c 41 AliMUONData* GetMUONData() const {return fMUONData;}
9265505b 42 /// Set MUON data
a3283a4c 43 void SetMUONData(AliMUONData* data) {fMUONData = data;}
44
45 Int_t GetMapping(Int_t buspatchId, UShort_t manuId,
46 UChar_t channelId, AliMUONDigit* digit );
47
d2d759cf 48 Int_t TriggerDigits(AliMUONLocalTriggerBoard* localBoard,
49 AliMUONLocalStruct* localStruct, TList& digitList );
50
51 void GetTriggerChamber(AliMUONLocalStruct* localStruct,
52 Int_t& xyPattern, Int_t& iChamber, Int_t& iCath, Int_t iCase );
53
9265505b 54 /// Set flag to generates scaler event
a3283a4c 55 void SetScalerEvent() {fScalerEvent = kTRUE;}
56
9265505b 57 /// Set Crate array
fe5010dd 58 void SetCrateManager(AliMUONTriggerCrateStore* crateManager) {fCrateManager = crateManager;}
59
a3283a4c 60 private:
61
829425a5 62 AliMUONData* fMUONData; //!< Data container for MUON subsystem
a3283a4c 63
829425a5 64 Bool_t fScalerEvent; //!< flag to generates scaler event
a3283a4c 65
241560c2 66 Bool_t fDigitFlag; //!< true for Digit, false for SDigit
67
829425a5 68 AliMUONRawStreamTracker* fRawStreamTracker; //!< pointer of raw stream for tracker
69 AliMUONRawStreamTrigger* fRawStreamTrigger; //!< pointer of raw stream for trigger
a3283a4c 70
ce373c77 71 AliMUONDigit* fDigit; //!< pointer to digits
a3283a4c 72
ce373c77 73 AliMUONLocalTrigger* fLocalTrigger; //!< pointer to local trigger
74 AliMUONGlobalTrigger* fGlobalTrigger; //!< pointer to local trigger
a3283a4c 75
d53fb0de 76 AliMUONTriggerCrateStore* fCrateManager; //!< Crate array
77
ce373c77 78 TStopwatch fTrackerTimer; //!< time watcher for tracker part
79 TStopwatch fTriggerTimer; //!< time watcher for trigger part
80 TStopwatch fMappingTimer; //!< time watcher for mapping-tracker part
a3283a4c 81
9f5dcca3 82 AliMUONDigitMaker (const AliMUONDigitMaker& rhs); // copy constructor
83 AliMUONDigitMaker& operator=(const AliMUONDigitMaker& rhs); // assignment operator
84
00e86732 85 void GetCrateName(Char_t* name, Int_t iDDL, Int_t iReg) const;
d53fb0de 86
a3283a4c 87 ClassDef(AliMUONDigitMaker,1) // MUON digit maker from rawdata
88};
89
90#endif