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 "AliFstream.h"
17 class AliMUONBlockHeader;
18 class AliMUONBusStruct;
19 class AliMUONDarcHeader;
21 class AliMUONDspHeader;
22 class AliMUONGlobalTrigger;
23 class AliMUONLocalStruct;
24 class AliMUONRegHeader;
25 class AliMUONVDigitStore;
26 class AliMUONVTriggerStore;
29 class AliRawDataHeaderSim;
31 class AliMUONRawWriter : public TObject
34 AliMUONRawWriter(); // Constructor
35 virtual ~AliMUONRawWriter(); // Destructor
38 Int_t Digits2Raw(const AliMUONVDigitStore* digitStore, const AliMUONVTriggerStore* triggerStore);
40 void SetScalersNumbers();
42 /// Set the header of DDL
43 void SetHeader(AliRawDataHeaderSim& header) {fHeader = &header;}
47 void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
48 void WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL);
50 //void WriteBusPatch(AliMUONLocalBusStruct* busStruct);
52 Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]);
54 Int_t GetBusPatch(const AliMUONVDigit& digit) const;
57 /// Not implemented copy constructor
58 AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor
59 /// Not implemented assignment operator
60 AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs);
62 static void LocalWordPacking(UInt_t &word, UInt_t locId, UInt_t locDec,
63 UInt_t trigY, UInt_t posY, UInt_t posX,
64 UInt_t sdevX, UInt_t devX);
66 AliMUONBlockHeader* fBlockHeader; //!< DDL block header class pointers
67 AliMUONDspHeader* fDspHeader; //!< DDL Dsp header class pointers
68 AliMUONDarcHeader* fDarcHeader; //!< DDL darc header class pointers
69 AliMUONRegHeader* fRegHeader; //!< DDL regional header class pointers
70 AliMUONLocalStruct* fLocalStruct; //!< DDL local structure class pointers
72 AliMpDDLStore* fDDLStore; //!< DDL store pointer
74 Bool_t fScalerEvent; ///< flag to generates scaler event
76 AliRawDataHeaderSim* fHeader; ///< header of DDL
78 Int_t fBufferSize; //!< size of internal data buffer
79 Int_t* fBuffer; //!< internal data buffer
81 ClassDef(AliMUONRawWriter,5) // MUON cluster reconstructor in ALICE