1 /**************************************************************************
2 * This file is property of and copyright by the Experimental Nuclear *
3 * Physics Group, Dep. of Physics *
4 * University of Oslo, Norway, 2006 *
6 * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. *
7 * Contributors are mentioned in the code where appropriate. *
8 * Please report bugs to perthi@fys.uio.no *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 #ifndef ALIHLTPHOSCONSTANTS_H
20 #define ALIHLTPHOSCONSTANTS_H
22 namespace PhosHLTConst
24 const int MAX_HOSTS = 20;
25 const int DEFAULT_EVENT_PORT = 42001;
26 const int MAX_BIN_VALUE = 1023;
27 const unsigned int HIGH_GAIN = 1;
28 const unsigned int LOW_GAIN = 0;
31 const unsigned int ALTRO_MAX_SAMPLES = 1008; /**<The maximum number of samples of the ALTRO*/
32 const unsigned int ALTRO_MAX_TRALER_SIZE = 7;
33 const unsigned int DDL_BLOCK_SIZE = 5;
35 const unsigned int N_ZROWS_RCU = 28; /**<Number of rows per module*/
36 const unsigned int N_XCOLUMNS_RCU = 32;
37 const unsigned int N_ZROWS_MOD = 56; /**<Number of rows per module*/
38 const unsigned int N_XCOLUMNS_MOD = 64; /**<Number of columns per module*/
39 const unsigned int N_GAINS = 2; /**<Number of gains per ALTRO channel*/
40 const unsigned int N_DATATYPES = 10;
42 const unsigned int PF_MAX_PATH_LENGTH = 256;
44 const unsigned char PF_VECTOR_DIR[] = "/HLT/PHOS/PFVectors";
46 const unsigned int PF_DEFAULT_N_SAMPLES = 70;
47 const unsigned int PF_DEFAULT_STARTINDEX = 0;
49 const unsigned int DEFAULT_TAU = 2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
50 const unsigned int DEFAULT_FS = 10; /**<Assume that the signal is samples with 10 MHZ samle rate*/
52 const unsigned int MODULE_0 = 0;
53 const unsigned int MODULE_1 = 1;
54 const unsigned int MODULE_2 = 2;
55 const unsigned int MODULE_3 = 3;
56 const unsigned int MODULE_4 = 4;
58 const unsigned int CSPS_PER_FEE = 32;
59 const unsigned int RCU_0 = 0;
60 const unsigned int RCU_1 = 1;
61 const unsigned int RCU_2 = 2;
62 const unsigned int RCU_3 = 3;
64 const unsigned int Z_0 = 0;
65 const unsigned int Z_1 = 1;
66 const unsigned int X_0 = 0;
67 const unsigned int X_1 = 1;
69 const unsigned int N_MODULES = 5; /**<Number of modules of the PHOS detector*/
70 const unsigned int N_RCUS = 4; /**<Number of RCUs per Module*/
71 const unsigned int N_RCUS_PER_MODULE = 4 ; /**<Number of RCUs per Module*/
72 const unsigned int N_RCUS_PER_TOTAL = N_MODULES*N_RCUS_PER_MODULE; /**<Total number of RCUs for PHOS*/
73 const unsigned int N_FEECS = 14; /**<Number of Frontend cards per branch*/
74 const unsigned int N_ALTROS = 4; /**<Number of ALTROs per frontend card*/
75 const unsigned int N_ALTROCHANNELS = 16;
76 const unsigned int N_BRANCHES = 2;