]>
Commit | Line | Data |
---|---|---|
83b4f746 | 1 | #ifndef CONSTANTS_H |
2 | #define CONSTANTS_H | |
3 | ||
4 | #ifndef __CINT__ | |
5 | ||
6 | #ifndef TRUE | |
7 | #define TRUE 1 | |
8 | #endif | |
9 | ||
10 | #ifndef FALSE | |
11 | #define FALSE 0 | |
12 | #endif | |
13 | ||
14 | #define WHERE __FILE__ << ":" << __LINE__ << ": " | |
15 | ||
16 | #endif | |
17 | ||
18 | // from MWPC | |
19 | const int nMWPCHitMax = 10000; | |
20 | const int NMWPCPLANES = 7; | |
21 | ||
22 | // for the mapping and geometry constants | |
23 | const int ncards = 2; | |
24 | const int rows = 8; | |
25 | const int cols = 8; | |
26 | const int gains = 2; | |
27 | const int FEC[ncards] = {5, 6}; // cards in the crate | |
28 | // we should have one charge-sensitive pre-amp per module | |
29 | const int NCSP = rows*cols; | |
30 | ||
31 | // for the readout | |
32 | const int NFEC = 2; // Max 2 FrontEndCard | |
33 | const int NCHIP = 4; // 4 ALTROs per FEC | |
34 | const int NCHAN = 16; // Channels per ALTRO | |
35 | const int CHANNELS = NFEC*NCHIP*NCHAN; // Max uses ALTRO channels | |
36 | const int TOTCHAN = CHANNELS; | |
37 | ||
38 | const int REQSAMPLES = 50; // This is what we ask for in the RCU | |
39 | const int EXTRASAMPLES = 15; // We get a few bonus ones | |
40 | const int REALSAMPLES = REQSAMPLES + EXTRASAMPLES; // This is the reported wordcount-2 | |
41 | const int SAMPLES = REQSAMPLES + EXTRASAMPLES; // Number of readout ALTRO words per channel (last 4 words is trailer) | |
42 | ||
43 | // general flags | |
44 | const int debug = 0; // Set 0/1/2/3 to print debug messages of different detail levels | |
45 | ||
46 | // put in nominal errors for pedestal for fits | |
47 | // low, and high gains are separate | |
48 | const double NOMINAL_PEDESTAL_RMS[NFEC][2] = { {0.3, 2.0}, // FEC 1 | |
49 | {0.6, 4.0} }; // FEC 2 | |
50 | ||
51 | #endif |