]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDigitMaker.h
Remove obsolete class AliTPCclusterLMI (Marian)
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitMaker.h
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
8 /// \ingroup rec
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"
16
17 class AliMpBusPatch;
18 class AliMUONData;
19 class AliMUONDigit;
20 class AliMUONGlobalTrigger;
21 class AliMUONLocalTrigger;
22
23 class AliMpSegFactory;
24 class AliMUONRawStreamTracker;
25 class AliMUONRawStreamTrigger;
26
27 class AliMUONDigitMaker : public TObject 
28 {
29  public:
30   AliMUONDigitMaker(AliMUONData* data); // Constructor
31   virtual ~AliMUONDigitMaker(void); // Destructor
32     
33   // write raw data
34   Int_t  Raw2Digits(AliRawReader* rawReader);
35
36   Int_t  ReadTrackerDDL(AliRawReader* rawReader);
37   Int_t  ReadTriggerDDL(AliRawReader* rawReader);
38
39   AliMUONData*   GetMUONData() const {return fMUONData;}
40   void SetMUONData(AliMUONData* data) {fMUONData = data;}
41  
42   Int_t GetMapping(Int_t buspatchId, UShort_t manuId, 
43                           UChar_t channelId, AliMUONDigit* digit );
44
45   void  SetScalerEvent() {fScalerEvent = kTRUE;}
46
47  protected:
48   AliMUONDigitMaker();                  // Default constructor
49
50  private:
51
52   AliMUONData*     fMUONData;          //!< Data container for MUON subsystem 
53   
54   AliMpSegFactory* fSegFactory;        //!< Mapping segmentation factory
55
56   AliMpBusPatch*   fBusPatchManager;   //!< buspatch versus DE's & DDL
57
58   Bool_t           fScalerEvent;       //!< flag to generates scaler event
59
60   AliMUONRawStreamTracker* fRawStreamTracker;  //!< pointer of raw stream for tracker
61   AliMUONRawStreamTrigger* fRawStreamTrigger;  //!< pointer of raw stream for trigger
62
63   AliMUONDigit*        fDigit;                 //!< pointer to digits
64
65   AliMUONLocalTrigger*  fLocalTrigger;         //!< pointer to local trigger
66   AliMUONGlobalTrigger* fGlobalTrigger;        //!< pointer to local trigger
67
68   TStopwatch fTrackerTimer;                    //!< time watcher for tracker part
69   TStopwatch fTriggerTimer;                    //!< time watcher for trigger part
70   TStopwatch fMappingTimer;                    //!< time watcher for mapping-tracker part
71
72   AliMUONDigitMaker (const AliMUONDigitMaker& rhs); // copy constructor
73   AliMUONDigitMaker& operator=(const AliMUONDigitMaker& rhs); // assignment operator
74
75   ClassDef(AliMUONDigitMaker,1) // MUON digit maker from rawdata
76 };
77         
78 #endif