]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRawWriter.h
Fixes for change in base class
[u/mrichter/AliRoot.git] / MUON / AliMUONRawWriter.h
index c29699c3456088593cd1d95d0d4201c97f04842b..cbcbc32987e1a4949270fb5dfabfa6d45eff74d8 100644 (file)
@@ -12,7 +12,7 @@
 //  Author Christian Finck and Laurent Aphecetche, Subatech
 
 #include <TObject.h>
-#include "AliRawDataHeader.h"
+#include "AliFstream.h"
 
 class AliMUONBlockHeader;
 class AliMUONBusStruct;
@@ -22,12 +22,11 @@ class AliMUONDspHeader;
 class AliMUONGlobalTrigger;
 class AliMUONLocalStruct;
 class AliMUONRegHeader;
-class AliMUONStopwatchGroup;
-class AliMUONTriggerCrateStore;
 class AliMUONVDigitStore;
 class AliMUONVTriggerStore;
 class AliMpDDLStore;
 class AliMpExMap;
+class AliRawDataHeaderSim;
 
 class AliMUONRawWriter : public TObject 
 {
@@ -36,10 +35,13 @@ class AliMUONRawWriter : public TObject
   virtual ~AliMUONRawWriter(); // Destructor
     
   // write raw data
-  Int_t Digits2Raw(AliMUONVDigitStore* digitStore, AliMUONVTriggerStore* triggerStore);
+  Int_t Digits2Raw(const AliMUONVDigitStore* digitStore, const AliMUONVTriggerStore* triggerStore);
   
   void SetScalersNumbers();
 
+  /// Set the header of DDL
+  void SetHeader(AliRawDataHeaderSim& header) {fHeader = &header;}
+
 private:
 
   void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
@@ -47,7 +49,7 @@ private:
 
   //void WriteBusPatch(AliMUONLocalBusStruct* busStruct);
   
-  Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, FILE* file[2]);
+  Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]);
   
   Int_t GetBusPatch(const AliMUONVDigit& digit) const;
 
@@ -57,6 +59,10 @@ private:
   /// Not implemented assignment operator
   AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs);
 
+ static void LocalWordPacking(UInt_t &word, UInt_t locId, UInt_t locDec, 
+                             UInt_t trigY, UInt_t posY, UInt_t posX, 
+                             UInt_t sdevX, UInt_t devX);
+
   AliMUONBlockHeader* fBlockHeader;  //!< DDL block header class pointers
   AliMUONDspHeader*   fDspHeader;    //!< DDL Dsp header class pointers
   AliMUONDarcHeader*  fDarcHeader;   //!< DDL darc header class pointers
@@ -64,18 +70,15 @@ private:
   AliMUONLocalStruct* fLocalStruct;  //!< DDL local structure class pointers
 
   AliMpDDLStore*            fDDLStore;     //!< DDL store pointer
-  AliMUONTriggerCrateStore* fCrateManager; //!< Crate array
 
   Bool_t fScalerEvent;               ///< flag to generates scaler event
 
-  AliRawDataHeader    fHeader;           ///< header of DDL
+  AliRawDataHeaderSim*    fHeader;           ///< header of DDL
   
-  AliMUONStopwatchGroup* fTimers;             //!< time watchers
-
   Int_t fBufferSize; //!< size of internal data buffer
   Int_t* fBuffer; //!< internal data buffer
 
-  ClassDef(AliMUONRawWriter,3) // MUON cluster reconstructor in ALICE
+  ClassDef(AliMUONRawWriter,5) // MUON cluster reconstructor in ALICE
 };
        
 #endif