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 int HIGH_GAIN = 1;
28 const int LOW_GAIN = 0;
30 const int ALTRO_MAX_SAMPLES = 1008; /**<The maximum number of samples of the ALTRO*/
31 const int ALTRO_MAX_PRESAMPLES = 15;
32 // const int ALTRO_MAX_TRALER_SIZE = 7;
33 // const int DDL_BLOCK_SIZE = 5;
35 const int N_ZROWS_RCU = 28; /**<Number of rows per module*/
36 const int N_XCOLUMNS_RCU = 32;
37 const int N_ZROWS_MOD = 56; /**<Number of rows per module*/
38 const int N_XCOLUMNS_MOD = 64; /**<Number of columns per module*/
39 const int N_GAINS = 2; /**<Number of gains per ALTRO channel*/
40 const int N_DATATYPES = 10;
42 const int PF_MAX_PATH_LENGTH = 256;
45 const unsigned char PF_VECTOR_DIR[] = "/HLT/PHOS/PFVectors";
48 const int PF_DEFAULT_N_SAMPLES = 70;
49 const int PF_DEFAULT_STARTINDEX = 0;
51 const int DEFAULT_TAU = 2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
52 const int DEFAULT_FS = 10; /**<Assume that the signal is samples with 10 MHZ samle rate*/
54 const int MODULE_0 = 0;
55 const int MODULE_1 = 1;
56 const int MODULE_2 = 2;
57 const int MODULE_3 = 3;
58 const int MODULE_4 = 4;
60 const int CSPS_PER_FEE = 32;
71 const int N_MODULES = 5; /**<Number of modules of the PHOS detector*/
72 const int N_RCUS = 4; /**<Number of RCUs per Module*/
75 const int N_RCUS_PER_MODULE = 4 ; /**<Number of RCUs per Module*/
76 const int N_RCUS_PER_TOTAL = N_MODULES*N_RCUS_PER_MODULE; /**<Total number of RCUs for PHOS*/
77 const int N_FEECS = 14; /**<Number of Frontend cards per branch*/
78 const int N_ALTROS = 4; /**<Number of ALTROs per frontend card*/
79 const int N_ALTROCHANNELS = 16;
80 const int N_BRANCHES = 2;