forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAliPHOSCpvRawWrite.h
55 lines (41 loc) · 1.55 KB
/
AliPHOSCpvRawWrite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef ALIPHOSCPVRAWWRITE_H
#define ALIPHOSCPVRAWWRITE_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id: $ */
/* History:
*
* $Log$
*/
//_________________________________________________________________________
// Create a raw data stream for the CPV detector
// Input: AliPHOSDigit or TClonesArray of AliPHOSDigits
// Output: AliFstream, a raw data stream in DDL format
// Author: Yuri Kharlov
// 14 April 2008
//_________________________________________________________________________
// --- ROOT system ---
class TObject;
class TClonesArray;
class AliFstream;
// --- Standard library ---
// --- AliRoot header files ---
class AliPHOSDigit;
class AliPHOSCpvRawWrite : public TObject
{
public:
AliPHOSCpvRawWrite() ;
virtual ~AliPHOSCpvRawWrite() ;
void WriteRaw(const TObjArray *digits);
void HWaddress(const AliPHOSDigit *digit, UInt_t &w32, Int_t &ddl, Int_t &row, Int_t &dilogic, Int_t &address);
void WriteRowMarker (AliFstream *ddl,UInt_t size);
void WriteSegMarker (AliFstream *ddl,UInt_t row, Int_t nwInSeg);
void WriteEoE (AliFstream *ddl,UInt_t row,UInt_t dil,UInt_t wordCnt);
protected:
Int_t fNDDL ; // Number of DDLs
Int_t fNRow ; // Number of row controllers per DDL
Int_t fNDilogic ; // Number of DLOGIC chips per column
Int_t fNPad ; // Number of pads per DLOGIC
ClassDef(AliPHOSCpvRawWrite,1) // CPV raw data writer
};
#endif // AliPHOSCPVRAWWRITE_H