]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRawWriter.h
Setting a dummy number of contributors for the MC primary vertex
[u/mrichter/AliRoot.git] / MUON / AliMUONRawWriter.h
CommitLineData
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>
b672bf31 15#include "AliFstream.h"
a19e2543 16
2cf44ef3 17class AliMUONBlockHeader;
344ef20f 18class AliMUONBusStruct;
48217459 19class AliMUONDarcHeader;
20class AliMUONVDigit;
21class AliMUONDspHeader;
a19e2543 22class AliMUONGlobalTrigger;
48217459 23class AliMUONLocalStruct;
24class AliMUONRegHeader;
48217459 25class AliMUONVDigitStore;
26class AliMUONVTriggerStore;
27class AliMpDDLStore;
28class AliMpExMap;
0014fbe8 29class AliRawDataHeaderSim;
a19e2543 30
31class AliMUONRawWriter : public TObject
32{
33 public:
48217459 34 AliMUONRawWriter(); // Constructor
2cf44ef3 35 virtual ~AliMUONRawWriter(); // Destructor
a19e2543 36
37 // write raw data
57e2ad1a 38 Int_t Digits2Raw(const AliMUONVDigitStore* digitStore, const AliMUONVTriggerStore* triggerStore);
48217459 39
84ceeb06 40 void SetScalersNumbers();
41
0014fbe8 42 /// Set the header of DDL
43 void SetHeader(AliRawDataHeaderSim& header) {fHeader = &header;}
44
48217459 45private:
46
47 void Digits2BusPatchMap(const AliMUONVDigitStore& digitStore, AliMpExMap& busPatchMap);
48 void WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL);
8778870d 49
48217459 50 //void WriteBusPatch(AliMUONLocalBusStruct* busStruct);
8778870d 51
b672bf31 52 Int_t WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2]);
48217459 53
54 Int_t GetBusPatch(const AliMUONVDigit& digit) const;
a844d67f 55
8778870d 56private:
2d95e00c 57 /// Not implemented copy constructor
58 AliMUONRawWriter (const AliMUONRawWriter& rhs); // copy constructor
59 /// Not implemented assignment operator
60 AliMUONRawWriter& operator=(const AliMUONRawWriter& rhs);
61
2ed86fc4 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
829425a5 66 AliMUONBlockHeader* fBlockHeader; //!< DDL block header class pointers
67 AliMUONDspHeader* fDspHeader; //!< DDL Dsp header class pointers
829425a5 68 AliMUONDarcHeader* fDarcHeader; //!< DDL darc header class pointers
69 AliMUONRegHeader* fRegHeader; //!< DDL regional header class pointers
70 AliMUONLocalStruct* fLocalStruct; //!< DDL local structure class pointers
a19e2543 71
5cab551d 72 AliMpDDLStore* fDDLStore; //!< DDL store pointer
ced309a5 73
829425a5 74 Bool_t fScalerEvent; ///< flag to generates scaler event
ced309a5 75
0014fbe8 76 AliRawDataHeaderSim* fHeader; ///< header of DDL
2cbb173f 77
48217459 78 Int_t fBufferSize; //!< size of internal data buffer
79 Int_t* fBuffer; //!< internal data buffer
80
0014fbe8 81 ClassDef(AliMUONRawWriter,5) // MUON cluster reconstructor in ALICE
a19e2543 82};
83
84#endif