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 *
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 *
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 **************************************************************************/
22 #ifndef ALIHLTPHOSCONSTANT_H
23 #define ALIHLTPHOSCONSTANT_H
25 namespace PhosHLTConst
27 const int MAXHOSTS = 20;
28 const int DEFAULTEVENTPORT = 42001;
29 const int MAXBINVALUE = 1023;
30 const int HIGHGAIN = 0;
31 const int LOWGAIN = 1;
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;
38 const int NZROWSRCU = 56; /**<Number of rows per module*/
39 const int NXCOLUMNSRCU = 16;
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;
45 const int PFMAXPATHLENGTH = 256;
48 const unsigned char PFVECTORDIR[] = "/HLT/PHOS/PFVectors";
51 const int PFDEFAULTNSAMPLES = 70;
52 const int PFDEFAULTSTARTINDEX = 0;
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*/
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;
63 const int CSPSPERFEE = 32;
74 const int NMODULES = 5; /**<Number of modules of the PHOS detector*/
75 const int NRCUS = 4; /**<Number of RCUs per Module*/
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;