]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
d9f20a7f | 4 | /************************************************************************** |
5 | * This file is property of and copyright by the Experimental Nuclear * | |
6 | * Physics Group, Dep. of Physics * | |
7 | * University of Oslo, Norway, 2006 * | |
8 | * * | |
9 | * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. * | |
10 | * Contributors are mentioned in the code where appropriate. * | |
11 | * Please report bugs to perthi@fys.uio.no * | |
12 | * * | |
13 | * Permission to use, copy, modify and distribute this software and its * | |
14 | * documentation strictly for non-commercial purposes is hereby granted * | |
15 | * without fee, provided that the above copyright notice appears in all * | |
16 | * copies and that both the copyright notice and this permission notice * | |
17 | * appear in the supporting documentation. The authors make no claims * | |
18 | * about the suitability of this software for any purpose. It is * | |
19 | * provided "as is" without express or implied warranty. * | |
20 | **************************************************************************/ | |
21 | ||
d9f20a7f | 22 | #ifndef ALIHLTPHOSCONSTANTS_H |
23 | #define ALIHLTPHOSCONSTANTS_H | |
24 | ||
d9f20a7f | 25 | namespace PhosHLTConst |
26 | { | |
27029341 | 27 | const int MAXHOSTS = 20; |
28 | const int DEFAULTEVENTPORT = 42001; | |
29 | const int MAXBINVALUE = 1023; | |
30 | const int HIGHGAIN = 1; | |
31 | const int LOWGAIN = 0; | |
32 | ||
33 | const int ALTROMAXSAMPLES = 1008; /**<The maximum number of samples of the ALTRO*/ | |
34 | const int ALTROMAXPRESAMPLES = 15; | |
35 | // const int ALTROMAXTRALERSIZE = 7; | |
36 | // const int DDLBLOCKSIZE = 5; | |
37 | ||
38 | const int NZROWSRCU = 28; /**<Number of rows per module*/ | |
39 | const int NXCOLUMNSRCU = 32; | |
40 | const int NZROWSMOD = 56; /**<Number of rows per module*/ | |
41 | const int NXCOLUMNSMOD = 64; /**<Number of columns per module*/ | |
42 | const int NGAINS = 2; /**<Number of gains per ALTRO channel*/ | |
43 | const int NDATATYPES = 10; | |
44 | ||
45 | const int PFMAXPATHLENGTH = 256; | |
03b3d247 | 46 | |
c0b4b6ec | 47 | #ifndef __CINT__ |
27029341 | 48 | const unsigned char PFVECTORDIR[] = "/HLT/PHOS/PFVectors"; |
c0b4b6ec | 49 | #endif |
03b3d247 | 50 | |
27029341 | 51 | const int PFDEFAULTNSAMPLES = 70; |
52 | const int PFDEFAULTSTARTINDEX = 0; | |
b444d727 | 53 | |
27029341 | 54 | const int DEFAULTTAU = 2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/ |
55 | const int DEFAULTFS = 10; /**<Assume that the signal is samples with 10 MHZ samle rate*/ | |
b444d727 | 56 | |
27029341 | 57 | const int MODULE0 = 0; |
58 | const int MODULE1 = 1; | |
59 | const int MODULE2 = 2; | |
60 | const int MODULE3 = 3; | |
61 | const int MODULE4 = 4; | |
b444d727 | 62 | |
27029341 | 63 | const int CSPSPERFEE = 32; |
64 | const int RCU0 = 0; | |
65 | const int RCU1 = 1; | |
66 | const int RCU2 = 2; | |
67 | const int RCU3 = 3; | |
b444d727 | 68 | |
27029341 | 69 | const int Z0 = 0; |
70 | const int Z1 = 1; | |
71 | const int X0 = 0; | |
72 | const int X1 = 1; | |
b444d727 | 73 | |
27029341 | 74 | const int NMODULES = 5; /**<Number of modules of the PHOS detector*/ |
75 | const int NRCUS = 4; /**<Number of RCUs per Module*/ | |
04751caa | 76 | |
27029341 | 77 | // NRCUSPERMODULE |
78 | const int NRCUSPERMODULE = 4 ; /**<Number of RCUs per Module*/ | |
79 | const int NRCUSPERTOTAL = NMODULES*NRCUSPERMODULE; /**<Total number of RCUs for PHOS*/ | |
80 | const int NFEECS = 14; /**<Number of Frontend cards per branch*/ | |
81 | const int NALTROS = 4; /**<Number of ALTROs per frontend card*/ | |
82 | const int NALTROCHANNELS = 16; | |
83 | const int NBRANCHES = 2; | |
c0b4b6ec | 84 | } |
d9f20a7f | 85 | |
86 | ||
87 | #endif | |
88 | ||
89 |