]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSConstants.h
added missing header files for commit 29821
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSConstants.h
CommitLineData
d9f20a7f 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 *
5 * *
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 *
9 * *
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 **************************************************************************/
18
d9f20a7f 19#ifndef ALIHLTPHOSCONSTANTS_H
20#define ALIHLTPHOSCONSTANTS_H
21
d9f20a7f 22namespace PhosHLTConst
23{
24 const int MAX_HOSTS = 20;
25 const int DEFAULT_EVENT_PORT = 42001;
26 const int MAX_BIN_VALUE = 1023;
b444d727 27 const int HIGH_GAIN = 1;
28 const int LOW_GAIN = 0;
d9f20a7f 29
b444d727 30 const int ALTRO_MAX_SAMPLES = 1008; /**<The maximum number of samples of the ALTRO*/
04751caa 31 const int ALTRO_MAX_PRESAMPLES = 15;
32 // const int ALTRO_MAX_TRALER_SIZE = 7;
b444d727 33 // const int DDL_BLOCK_SIZE = 5;
d9f20a7f 34
b444d727 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;
d9f20a7f 41
b444d727 42 const int PF_MAX_PATH_LENGTH = 256;
03b3d247 43
c0b4b6ec 44#ifndef __CINT__
b60bd496 45 const unsigned char PF_VECTOR_DIR[] = "/HLT/PHOS/PFVectors";
c0b4b6ec 46#endif
03b3d247 47
b444d727 48 const int PF_DEFAULT_N_SAMPLES = 70;
49 const int PF_DEFAULT_STARTINDEX = 0;
50
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*/
53
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;
59
60 const int CSPS_PER_FEE = 32;
61 const int RCU_0 = 0;
62 const int RCU_1 = 1;
63 const int RCU_2 = 2;
64 const int RCU_3 = 3;
65
66 const int Z_0 = 0;
67 const int Z_1 = 1;
68 const int X_0 = 0;
69 const int X_1 = 1;
70
71 const int N_MODULES = 5; /**<Number of modules of the PHOS detector*/
72 const int N_RCUS = 4; /**<Number of RCUs per Module*/
04751caa 73
74 // N_RCUS_PER_MODULE
b444d727 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;
c0b4b6ec 81}
d9f20a7f 82
83
84#endif
85
86