]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/macros/CalibrationDB/constants.h
Minor change in the projection range
[u/mrichter/AliRoot.git] / EMCAL / macros / CalibrationDB / constants.h
CommitLineData
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
19const int nMWPCHitMax = 10000;
20const int NMWPCPLANES = 7;
21
22// for the mapping and geometry constants
23const int ncards = 2;
24const int rows = 8;
25const int cols = 8;
26const int gains = 2;
27const int FEC[ncards] = {5, 6}; // cards in the crate
28// we should have one charge-sensitive pre-amp per module
29const int NCSP = rows*cols;
30
31// for the readout
32const int NFEC = 2; // Max 2 FrontEndCard
33const int NCHIP = 4; // 4 ALTROs per FEC
34const int NCHAN = 16; // Channels per ALTRO
35const int CHANNELS = NFEC*NCHIP*NCHAN; // Max uses ALTRO channels
36const int TOTCHAN = CHANNELS;
37
38const int REQSAMPLES = 50; // This is what we ask for in the RCU
39const int EXTRASAMPLES = 15; // We get a few bonus ones
40const int REALSAMPLES = REQSAMPLES + EXTRASAMPLES; // This is the reported wordcount-2
41const int SAMPLES = REQSAMPLES + EXTRASAMPLES; // Number of readout ALTRO words per channel (last 4 words is trailer)
42
43// general flags
44const 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
48const double NOMINAL_PEDESTAL_RMS[NFEC][2] = { {0.3, 2.0}, // FEC 1
49 {0.6, 4.0} }; // FEC 2
50
51#endif