]>
Commit | Line | Data |
---|---|---|
a19e2543 | 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 */ | |
5 | ||
6 | /*$Id$*/ | |
7 | ||
474f669f | 8 | /// \ingroup base |
a19e2543 | 9 | /// \class AliMUONRawWriter |
10 | /// \brief Raw data class for trigger and tracker chambers | |
11 | /// | |
78649106 | 12 | // Author Christian Finck and Laurent Aphecetche, Subatech |
a19e2543 | 13 | |
14 | #include <TObject.h> | |
2cf44ef3 | 15 | #include "AliRawDataHeader.h" |
b672bf31 | 16 | #include "AliFstream.h" |
a19e2543 | 17 | |
2cf44ef3 | 18 | class AliMUONBlockHeader; |
344ef20f | 19 | class AliMUONBusStruct; |
48217459 | 20 | class AliMUONDarcHeader; |
21 | class AliMUONVDigit; | |
22 | class AliMUONDspHeader; | |
a19e2543 | 23 | class AliMUONGlobalTrigger; |
48217459 | 24 | class AliMUONLocalStruct; |
25 | class AliMUONRegHeader; | |
48217459 | 26 | class AliMUONVDigitStore; |
27 | class AliMUONVTriggerStore; | |
28 | class AliMpDDLStore; | |
29 | class AliMpExMap; | |
a19e2543 | 30 | |
31 | class AliMUONRawWriter : public TObject | |
32 | { | |
33 | public: | |
48217459 | 34 | AliMUONRawWriter(); // Constructor |
2cf44ef3 | 35 | virtual ~AliMUONRawWriter(); // Destructor |
a19e2543 | 36 | |
37 | // write raw data | |
48217459 | 38 | Int_t Digits2Raw(AliMUONVDigitStore* digitStore, AliMUONVTriggerStore* triggerStore); |
39 | ||
84ceeb06 | 40 | void SetScalersNumbers(); |
41 | ||
48217459 | 42 | private: |
43 | ||
44 | void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap); | |
45 | void WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL); | |
8778870d | 46 | |
48217459 | 47 | //void WriteBusPatch(AliMUONLocalBusStruct* busStruct); |
8778870d | 48 | |
b672bf31 | 49 | Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]); |
48217459 | 50 | |
51 | Int_t GetBusPatch(const AliMUONVDigit& digit) const; | |
a844d67f | 52 | |
8778870d | 53 | private: |
2d95e00c | 54 | /// Not implemented copy constructor |
55 | AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor | |
56 | /// Not implemented assignment operator | |
57 | AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs); | |
58 | ||
2ed86fc4 | 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); | |
62 | ||
829425a5 | 63 | AliMUONBlockHeader* fBlockHeader; //!< DDL block header class pointers |
64 | AliMUONDspHeader* fDspHeader; //!< DDL Dsp header class pointers | |
829425a5 | 65 | AliMUONDarcHeader* fDarcHeader; //!< DDL darc header class pointers |
66 | AliMUONRegHeader* fRegHeader; //!< DDL regional header class pointers | |
67 | AliMUONLocalStruct* fLocalStruct; //!< DDL local structure class pointers | |
a19e2543 | 68 | |
5cab551d | 69 | AliMpDDLStore* fDDLStore; //!< DDL store pointer |
ced309a5 | 70 | |
829425a5 | 71 | Bool_t fScalerEvent; ///< flag to generates scaler event |
ced309a5 | 72 | |
829425a5 | 73 | AliRawDataHeader fHeader; ///< header of DDL |
2cbb173f | 74 | |
48217459 | 75 | Int_t fBufferSize; //!< size of internal data buffer |
76 | Int_t* fBuffer; //!< internal data buffer | |
77 | ||
134d2964 | 78 | ClassDef(AliMUONRawWriter,4) // MUON cluster reconstructor in ALICE |
a19e2543 | 79 | }; |
80 | ||
81 | #endif |