1 #ifndef ALIMUONRAWWRITER_H
2 #define ALIMUONRAWWRITER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 /// \class AliMUONRawWriter
10 /// \brief Raw data class for trigger and tracker chambers
12 // Author Christian Finck and Laurent Aphecetche, Subatech
15 #include "AliRawDataHeader.h"
16 #include "AliFstream.h"
18 class AliMUONBlockHeader;
19 class AliMUONBusStruct;
20 class AliMUONDarcHeader;
22 class AliMUONDspHeader;
23 class AliMUONGlobalTrigger;
24 class AliMUONLocalStruct;
25 class AliMUONRegHeader;
26 class AliMUONVDigitStore;
27 class AliMUONVTriggerStore;
31 class AliMUONRawWriter : public TObject
34 AliMUONRawWriter(); // Constructor
35 virtual ~AliMUONRawWriter(); // Destructor
38 Int_t Digits2Raw(AliMUONVDigitStore* digitStore, AliMUONVTriggerStore* triggerStore);
40 void SetScalersNumbers();
44 void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
45 void WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL);
47 //void WriteBusPatch(AliMUONLocalBusStruct* busStruct);
49 Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]);
51 Int_t GetBusPatch(const AliMUONVDigit& digit) const;
54 /// Not implemented copy constructor
55 AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor
56 /// Not implemented assignment operator
57 AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs);
59 static void LocalWordPacking(UInt_t &word, UInt_t locId, UInt_t locDec,
60 UInt_t trigY, UInt_t posY, UInt_t posX,
61 UInt_t sdevX, UInt_t devX);
63 AliMUONBlockHeader* fBlockHeader; //!< DDL block header class pointers
64 AliMUONDspHeader* fDspHeader; //!< DDL Dsp header class pointers
65 AliMUONDarcHeader* fDarcHeader; //!< DDL darc header class pointers
66 AliMUONRegHeader* fRegHeader; //!< DDL regional header class pointers
67 AliMUONLocalStruct* fLocalStruct; //!< DDL local structure class pointers
69 AliMpDDLStore* fDDLStore; //!< DDL store pointer
71 Bool_t fScalerEvent; ///< flag to generates scaler event
73 AliRawDataHeader fHeader; ///< header of DDL
75 Int_t fBufferSize; //!< size of internal data buffer
76 Int_t* fBuffer; //!< internal data buffer
78 ClassDef(AliMUONRawWriter,4) // MUON cluster reconstructor in ALICE