]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONDigitMaker.h
Add Config/HighVoltage directory and entry
[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 base
9 /// \class AliMUONDigitMaker
10 /// \brief Reading Raw data class for trigger and tracker chambers
11 ///
12 //  Author: Ch, Finck
13
14 #include <TObject.h>
15
16 class TArrayS;
17
18 class AliRawReader;
19 class AliMUONLocalStruct;
20
21 class AliMUONVRawStreamTracker;
22 class AliMUONRawStreamTrigger;
23
24 class AliMUONVDigitStore;
25 class AliMUONVTriggerStore;
26
27 class AliMUONLogger;
28
29 class AliMUONDigitMaker : public TObject 
30 {
31  public:
32   AliMUONDigitMaker(Bool_t enableErrorLogger = kTRUE, Bool_t useFastDecoder = kFALSE); // Constructor
33   virtual ~AliMUONDigitMaker(void); // Destructor
34     
35   // write raw data
36   Int_t  Raw2Digits(AliRawReader* rawReader, 
37                     AliMUONVDigitStore* digitContainer=0,
38                     AliMUONVTriggerStore* triggerStore=0);
39
40   Int_t  ReadTrackerDDL(AliRawReader* rawReader);
41   Int_t  ReadTriggerDDL(AliRawReader* rawReader);
42   
43   Int_t TriggerDigits(Int_t nBoard, TArrayS* xyPattern, 
44                       AliMUONVDigitStore& digitStore) const;
45
46         /// Set flag to generates scaler event
47   void  SetScalerEvent() { fScalerEvent = kTRUE; }
48
49         /// Set flag whether or not we should generate digits for the trigger
50   void  SetMakeTriggerDigits(Bool_t flag = kFALSE) { fMakeTriggerDigits = flag; }
51
52   void  SetFastDecoder(Bool_t useFastDecoder); 
53
54 private:
55     
56   /// Not implemented
57   AliMUONDigitMaker (const AliMUONDigitMaker& rhs); // copy constructor
58   /// Not implemented
59   AliMUONDigitMaker& operator=(const AliMUONDigitMaker& rhs); // assignment operator
60
61 private:
62   void CreateRawStreamTracker(Bool_t useFastDecoder);
63
64   Bool_t fScalerEvent;       //!< flag to generates scaler event
65   Bool_t fMakeTriggerDigits; //!< whether or not we should generate digits for the trigger
66   
67   AliMUONVRawStreamTracker* fRawStreamTracker; //!< pointer of raw stream for tracker
68   AliMUONRawStreamTrigger* fRawStreamTrigger;  //!< pointer of raw stream for trigger
69
70   AliMUONVDigitStore* fDigitStore; //!< not owner
71   AliMUONVTriggerStore* fTriggerStore; //!< not owner
72
73   AliMUONLogger* fLogger; //!< to log messages
74   
75   ClassDef(AliMUONDigitMaker,6) // MUON digit maker from rawdata
76 };
77         
78 #endif