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 /// Writring Raw data class for trigger and tracker chambers
15 #include <TClonesArray.h>
16 #include "AliMUONBusStruct.h"
17 #include "AliRawDataHeader.h"
18 #include "TStopwatch.h"
22 class AliMUONDspHeader;
23 class AliMUONBlockHeader;
24 class AliMUONDarcHeader;
25 class AliMUONRegHeader;
26 class AliMUONLocalStruct;
27 class AliMUONGlobalTrigger;
29 class AliMpSegFactory;
31 class AliMUONRawWriter : public TObject
34 AliMUONRawWriter(AliMUONData* data); // Constructor
35 virtual ~AliMUONRawWriter(); // Destructor
40 void SetScalerEvent() {fScalerEvent = kTRUE;}
43 AliMUONRawWriter(); // Default constructor
44 AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor
45 AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs); // assignment operator
48 Int_t WriteTrackerDDL(Int_t iCh);
49 Int_t WriteTriggerDDL();
53 void AddData(const AliMUONBusStruct& event)
55 TClonesArray &temp = *fBusArray;
56 new(temp[temp.GetEntriesFast()]) AliMUONBusStruct(event);
59 Int_t GetBusPatch(const AliMUONDigit& digit);
61 Int_t GetGlobalTriggerPattern(const AliMUONGlobalTrigger* gloTrg) const;
65 AliMUONData* fMUONData; //!< Data container for MUON subsystem
67 FILE* fFile[2]; //!< DDL binary file pointer one per 1/2 chamber
69 TClonesArray* fBusArray; //!< array to sub event tracker
71 AliMUONBlockHeader* fBlockHeader; //!< DDL block header class pointers
72 AliMUONDspHeader* fDspHeader; //!< DDL Dsp header class pointers
73 AliMUONBusStruct* fBusStruct; //!< DDL bus patch structure class pointers
74 AliMUONDarcHeader* fDarcHeader; //!< DDL darc header class pointers
75 AliMUONRegHeader* fRegHeader; //!< DDL regional header class pointers
76 AliMUONLocalStruct* fLocalStruct; //!< DDL local structure class pointers
78 AliMpBusPatch* fBusPatchManager; //!< buspatch versus DE's & DDL
80 Bool_t fScalerEvent; ///< flag to generates scaler event
82 AliRawDataHeader fHeader; ///< header of DDL
84 static Int_t fgManuPerBusSwp1B[12]; //!< array containing the first manuId for each buspatch st1, Bending
85 static Int_t fgManuPerBusSwp1NB[12]; //!< array containing the first manuId for each buspatch st1, NBending
87 static Int_t fgManuPerBusSwp2B[12]; //!< array containing the first manuId for each buspatch st2, Bending
88 static Int_t fgManuPerBusSwp2NB[12]; //!< array containing the first manuId for each buspatch st2, NBending
90 TStopwatch fTrackerTimer; //!<
91 TStopwatch fTriggerTimer; //!<
92 TStopwatch fMappingTimer; //!<
94 AliMpSegFactory* fSegFactory; //!< mapping segmentation factory
96 ClassDef(AliMUONRawWriter,1) // MUON cluster reconstructor in ALICE