]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSConstants.h
- handling of global AliHLTSystem singleton moved to BASE
[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*/
31 // const int ALTRO_MAX_TRALER_SIZE = 7;
32 // const int DDL_BLOCK_SIZE = 5;
d9f20a7f 33
b444d727 34 const int N_ZROWS_RCU = 28; /**<Number of rows per module*/
35 const int N_XCOLUMNS_RCU = 32;
36 const int N_ZROWS_MOD = 56; /**<Number of rows per module*/
37 const int N_XCOLUMNS_MOD = 64; /**<Number of columns per module*/
38 const int N_GAINS = 2; /**<Number of gains per ALTRO channel*/
39 const int N_DATATYPES = 10;
d9f20a7f 40
b444d727 41 const int PF_MAX_PATH_LENGTH = 256;
03b3d247 42
c0b4b6ec 43#ifndef __CINT__
b60bd496 44 const unsigned char PF_VECTOR_DIR[] = "/HLT/PHOS/PFVectors";
c0b4b6ec 45#endif
03b3d247 46
b444d727 47 const int PF_DEFAULT_N_SAMPLES = 70;
48 const int PF_DEFAULT_STARTINDEX = 0;
49
50 const int DEFAULT_TAU = 2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
51 const int DEFAULT_FS = 10; /**<Assume that the signal is samples with 10 MHZ samle rate*/
52
53 const int MODULE_0 = 0;
54 const int MODULE_1 = 1;
55 const int MODULE_2 = 2;
56 const int MODULE_3 = 3;
57 const int MODULE_4 = 4;
58
59 const int CSPS_PER_FEE = 32;
60 const int RCU_0 = 0;
61 const int RCU_1 = 1;
62 const int RCU_2 = 2;
63 const int RCU_3 = 3;
64
65 const int Z_0 = 0;
66 const int Z_1 = 1;
67 const int X_0 = 0;
68 const int X_1 = 1;
69
70 const int N_MODULES = 5; /**<Number of modules of the PHOS detector*/
71 const int N_RCUS = 4; /**<Number of RCUs per Module*/
72 const int N_RCUS_PER_MODULE = 4 ; /**<Number of RCUs per Module*/
73 const int N_RCUS_PER_TOTAL = N_MODULES*N_RCUS_PER_MODULE; /**<Total number of RCUs for PHOS*/
74 const int N_FEECS = 14; /**<Number of Frontend cards per branch*/
75 const int N_ALTROS = 4; /**<Number of ALTROs per frontend card*/
76 const int N_ALTROCHANNELS = 16;
77 const int N_BRANCHES = 2;
c0b4b6ec 78}
d9f20a7f 79
80
81#endif
82
83