// Author Christian Finck and Laurent Aphecetche, Subatech
#include <TObject.h>
-#include "AliRawDataHeader.h"
+#include "AliFstream.h"
class AliMUONBlockHeader;
class AliMUONBusStruct;
class AliMUONGlobalTrigger;
class AliMUONLocalStruct;
class AliMUONRegHeader;
-class AliMUONStopwatchGroup;
-class AliMUONTriggerCrateStore;
class AliMUONVDigitStore;
class AliMUONVTriggerStore;
class AliMpDDLStore;
class AliMpExMap;
+class AliRawDataHeaderSim;
class AliMUONRawWriter : public TObject
{
void SetScalersNumbers();
+ /// Set the header of DDL
+ void SetHeader(AliRawDataHeaderSim& header) {fHeader = &header;}
+
private:
void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
//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;
/// 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
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