HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
richdef.h
Go to the documentation of this file.
1 #ifndef __RichDEF_H
2 #define __RichDEF_H
3 
4 #define RICH_MAX_SECTORS 6
5 #define RICH_MAX_COLS 96
6 #define RICH_MAX_ROWS 96
7 #define RICH_MAX_PADS 4712
8 #define RICH_MAX_ADCS 5
9 #define RICH_MAX_APVS 15
10 #define RICH_MAX_CHANNELS 128
11 
12 #define RICH700_MAX_COLS 192
13 #define RICH700_MAX_ROWS 192
14 
15 #define RICH_SIZE_HW 16384 // 3 bits for ADCs + 4 bits for APVs + 7 bits for Channels
16 #define RICH_SIZE_SW 9696 // maxCols*100 + maxRows
17 
18 #define RICH_SECTOR_MASK 0x7
19 #define RICH_ADC_MASK 0x7
20 #define RICH_APV_MASK 0xf
21 #define RICH_CHANNEL_MASK 0x7F
22 #define RICH_CHARGE_MASK 0x3FFF
23 
24 #define RICH_SECTOR_OFFSET 28
25 #define RICH_ADC_OFFSET 25
26 #define RICH_APV_OFFSET 21
27 #define RICH_CHANNEL_OFFSET 14
28 #define RICH_CHARGE_OFFSET 0
29 
30 // JAM2017: new for rich700 reconstruction
31 #define RICH700_MAX_TDCCHANNELS 32
32 #define RICH700_MAX_PMTPIXELS 64
33 #define RICH700_MAX_PMT 576
34 #define RICH700_MAXPIXELS (RICH700_MAX_PMT * RICH700_MAX_PMTPIXELS)
35 
36 
37 #include "haddef.h"
38 
46 
47 #endif
48 
49 
50 
const Cat_t catRichDirClus
Definition: richdef.h:43
const Cat_t catRichHitHdr
Definition: richdef.h:42
const Cat_t catRichHit
Definition: richdef.h:41
Short_t Cat_t
Definition: haddef.h:8
const Int_t RICH_OFFSET
Definition: haddef.h:38
const Cat_t catRichRaw
Definition: richdef.h:39
const Cat_t catRich700Raw
Definition: richdef.h:45
const Cat_t catRichCal
Definition: richdef.h:40
const Cat_t catRichTrack
Definition: richdef.h:44