AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONRawWriter.h
Go to the documentation of this file.
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 
12 // Author Christian Finck and Laurent Aphecetche, Subatech
13 
14 #include <TObject.h>
15 #include "AliFstream.h"
16 
17 class AliMUONBlockHeader;
18 class AliMUONBusStruct;
19 class AliMUONDarcHeader;
20 class AliMUONVDigit;
21 class AliMUONDspHeader;
23 class AliMUONLocalStruct;
24 class AliMUONRegHeader;
25 class AliMUONVDigitStore;
27 class AliMpDDLStore;
28 class AliMpExMap;
29 class AliRawDataHeaderSim;
30 
31 class AliMUONRawWriter : public TObject
32 {
33  public:
34  AliMUONRawWriter(); // Constructor
35  virtual ~AliMUONRawWriter(); // Destructor
36 
37  // write raw data
38  Int_t Digits2Raw(const AliMUONVDigitStore* digitStore, const AliMUONVTriggerStore* triggerStore);
39 
40  void SetScalersNumbers();
41 
43  void SetHeader(AliRawDataHeaderSim& header) {fHeader = &header;}
44 
45 private:
46 
47  void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
48  void WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL);
49 
50  //void WriteBusPatch(AliMUONLocalBusStruct* busStruct);
51 
52  Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]);
53 
54  Int_t GetBusPatch(const AliMUONVDigit& digit) const;
55 
56 private:
58  AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor
61 
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);
65 
71 
73 
74  Bool_t fScalerEvent;
75 
76  AliRawDataHeaderSim* fHeader;
77 
78  Int_t fBufferSize;
79  Int_t* fBuffer;
80 
81  ClassDef(AliMUONRawWriter,5) // MUON cluster reconstructor in ALICE
82 };
83 
84 #endif
Rawdata local card structure for trigger.
Interface for a digit container.
The top container class for DDLs, det elements and bus patched.
Definition: AliMpDDLStore.h:35
Bool_t fScalerEvent
flag to generates scaler event
MUON DSP header for tracker event.
AliMUONDspHeader * fDspHeader
! DDL Dsp header class pointers
Int_t * fBuffer
! internal data buffer
AliMUONRawWriter & operator=(const AliMUONRawWriter &rhs)
Not implemented assignment operator.
void Digits2BusPatchMap(const AliMUONVDigitStore &digitStore, AliMpExMap &busPatchMap)
MUON regional header for trigger.
Base class of a trigger information store.
void WriteTrackerDDL(AliMpExMap &busPatchMap, Int_t iDDL)
Int_t Digits2Raw(const AliMUONVDigitStore *digitStore, const AliMUONVTriggerStore *triggerStore)
Int_t WriteTriggerDDL(const AliMUONVTriggerStore &triggerStore, AliFstream *file[2])
AliMUONLocalStruct * fLocalStruct
! DDL local structure class pointers
AliRawDataHeaderSim * fHeader
header of DDL
MUON Darc header for Trigger.
AliMUONRegHeader * fRegHeader
! DDL regional header class pointers
Raw data class for trigger and tracker chambers.
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)
AliMUONDarcHeader * fDarcHeader
! DDL darc header class pointers
void SetHeader(AliRawDataHeaderSim &header)
Set the header of DDL.
MUON block (Crocus CRT) header for tracker event.
Global trigger object.
ABC of a MUON digit.
Definition: AliMUONVDigit.h:18
Int_t fBufferSize
! size of internal data buffer
AliMpDDLStore * fDDLStore
! DDL store pointer
Int_t GetBusPatch(const AliMUONVDigit &digit) const
MUON buspatch structure for tracker.
Helper class making Root persistent TExMap.
Definition: AliMpExMap.h:28
AliMUONBlockHeader * fBlockHeader
! DDL block header class pointers