AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDigitMaker.h
Go to the documentation of this file.
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 
12 // Author: Ch, Finck
13 
14 #include <TObject.h>
15 
16 class TArrayS;
17 
18 class AliRawReader;
19 class AliMUONLocalStruct;
20 
23 
24 class AliMUONVDigitStore;
26 
27 class AliMUONLogger;
28 
29 class AliMUONDigitMaker : public TObject
30 {
31  public:
32  AliMUONDigitMaker(Bool_t enableErrorLogger, Bool_t a, Bool_t b);
33 
34  AliMUONDigitMaker(Bool_t enableErrorLogger = kTRUE); // Constructor
35 
36  virtual ~AliMUONDigitMaker(void); // Destructor
37 
39  enum ErrorCode
40  {
41  kOK=0,
42  kTrackerBAD=1<<1,
44  };
45 
46  // write raw data
47  Int_t Raw2Digits(AliRawReader* rawReader,
48  AliMUONVDigitStore* digitContainer=0,
49  AliMUONVTriggerStore* triggerStore=0);
50 
51  Int_t ReadTrackerDDL(AliRawReader* rawReader);
52  Int_t ReadTriggerDDL(AliRawReader* rawReader);
53 
54  Int_t TriggerDigits(Int_t nBoard, const TArrayS* xyPattern,
55  AliMUONVDigitStore& digitStore, Bool_t warn = kTRUE) const;
56 
57  Bool_t TriggerToDigitsStore(const AliMUONVTriggerStore& triggerStore,
58  AliMUONVDigitStore& digitStore) const;
59 
62 
64  void SetMakeTriggerDigits(Bool_t flag = kFALSE) { fMakeTriggerDigits = flag; }
65 
67  void SetMakeTrackerDigits(Bool_t flag = kTRUE) { fMakeTrackerDigits = flag; }
68 
71 
74 
75  void Print(Option_t* opt="") const;
76 
77  void SetTryRecover(Bool_t flag);
78 
79 private:
80 
82  AliMUONDigitMaker (const AliMUONDigitMaker& rhs); // copy constructor
84  AliMUONDigitMaker& operator=(const AliMUONDigitMaker& rhs); // assignment operator
85 
86 private:
87  Bool_t fScalerEvent;
90 
93 
96 
98 
99  ClassDef(AliMUONDigitMaker,8) // MUON digit maker from rawdata
100 };
101 
102 #endif
A high performance stream decoder for muon tracking DDL streams.
TBrowser b
Definition: RunAnaESD.C:12
Reading Raw data class for trigger and tracker chambers.
void SetMakeTriggerDigits(Bool_t flag=kFALSE)
Set flag whether or not we should generate digits for the trigger.
AliMUONRawStreamTrackerHP * fRawStreamTracker
! pointer of raw stream for tracker
Rawdata local card structure for trigger.
Interface for a digit container.
Int_t ReadTriggerDDL(AliRawReader *rawReader)
Int_t TriggerDigits(Int_t nBoard, const TArrayS *xyPattern, AliMUONVDigitStore &digitStore, Bool_t warn=kTRUE) const
Int_t ReadTrackerDDL(AliRawReader *rawReader)
void Print(Option_t *opt="") const
AliMUONRawStreamTrackerHP * GetRawStreamTracker() const
Return the raw stream object which decodes DDL raw data from tracking stations.
virtual ~AliMUONDigitMaker(void)
Higher performance decoder stream class for reading MUON raw trigger data.
Bool_t fMakeTriggerDigits
! whether or not we should generate digits for the trigger
Base class of a trigger information store.
AliMUONRawStreamTriggerHP * GetRawStreamTrigger() const
Return the raw stream object which decodes DDL raw data from the trigger system.
Int_t Raw2Digits(AliRawReader *rawReader, AliMUONVDigitStore *digitContainer=0, AliMUONVTriggerStore *triggerStore=0)
ErrorCode
Code to indicate readout errors.
AliMUONRawStreamTriggerHP * fRawStreamTrigger
! pointer of raw stream for trigger
A logger that keeps track of the number of times a message appeared.
Definition: AliMUONLogger.h:24
AliMUONLogger * fLogger
! to log messages
AliMUONVTriggerStore * fTriggerStore
! not owner
AliMUONVDigitStore * fDigitStore
! not owner
AliMUONDigitMaker & operator=(const AliMUONDigitMaker &rhs)
Not implemented.
tracker part had readout errors
void SetMakeTrackerDigits(Bool_t flag=kTRUE)
Set flag whether or not we should generate digits for the tracker.
Bool_t fMakeTrackerDigits
! whether or not we should generate digits for the tracker
void SetTryRecover(Bool_t flag)
Bool_t TriggerToDigitsStore(const AliMUONVTriggerStore &triggerStore, AliMUONVDigitStore &digitStore) const
AliMUONDigitMaker(Bool_t enableErrorLogger, Bool_t a, Bool_t b)
trigger part had readout errors
void SetScalerEvent()
Set flag to generates scaler event.
return kTRUE
Definition: AliFMDv1.cxx:97
Bool_t fScalerEvent
! flag to generates scaler event