#include "AliLoader.h"
#include "AliRunDigitizer.h"
#include "AliMC.h"
-#include "AliRun.h"
+#include "AliRun.h"
+#include "AliRawDataHeaderSim.h"
#include "AliMUON.h"
#include "AliMUONChamberTrigger.h"
#include "AliMUONConstants.h"
{
/// Convert digits of the current event to raw data
+ AliRawDataHeaderSim header;
+
if (!fRawWriter)
{
fRawWriter = new AliMUONRawWriter;
treeD->GetEvent(0);
+ fRawWriter->SetHeader(header);
if (!fRawWriter->Digits2Raw(digitStore,triggerStore))
{
AliError("pb writting raw data");
}
//____________________________________________________________________
-void AliMUON::SetFastDecoder(Bool_t useFastDecoder)
+Bool_t AliMUON::UsingFastTrackerDecoder() const
+{
+/// Checks to see if we are using the fast decoder for tracker DDL streams.
+
+ if ( ! fDigitMaker ) {
+ AliError("Digit maker is not instantiated.");
+ return kFALSE;
+ }
+
+ return fDigitMaker->UsingFastTrackerDecoder();
+}
+
+//____________________________________________________________________
+Bool_t AliMUON::UsingFastTriggerDecoder() const
+{
+/// Checks to see if we are using the fast decoder for trigger DDL streams.
+
+ if ( ! fDigitMaker ) {
+ AliError("Digit maker is not instantiated.");
+ return kFALSE;
+ }
+
+ return fDigitMaker->UsingFastTriggerDecoder();
+}
+
+//____________________________________________________________________
+void AliMUON::SetFastTrackerDecoder(Bool_t useFastDecoder)
{
/// Set fast raw data decoder
if ( ! fDigitMaker ) {
AliError("Digit maker is not instantiated.");
return;
- }
+ }
+
+ fDigitMaker->SetFastTrackerDecoder(useFastDecoder);
+}
+
+//____________________________________________________________________
+void AliMUON::SetFastTriggerDecoder(Bool_t useFastDecoder)
+{
+/// Set fast raw data decoder
+
+ if ( ! fDigitMaker ) {
+ AliError("Digit maker is not instantiated.");
+ return;
+ }
+
+ fDigitMaker->SetFastTriggerDecoder(useFastDecoder);
+}
- fDigitMaker->SetFastDecoder(useFastDecoder);
-}