]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSConstant.h
- changes to make the clusterisation work for EMCAL
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSConstant.h
CommitLineData
4f4b7ba4 1//-*- Mode: C++ -*-
2// $Id: AliHLTPHOSConstant.h -1 $
3
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 *
8 * *
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 *
12 * *
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 **************************************************************************/
21
22#ifndef ALIHLTPHOSCONSTANT_H
23#define ALIHLTPHOSCONSTANT_H
24
25namespace PhosHLTConst
26{
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;
32
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;
37
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;
44
45 const int PFMAXPATHLENGTH = 256;
46
47#ifndef __CINT__
48 const unsigned char PFVECTORDIR[] = "/HLT/PHOS/PFVectors";
49#endif
50
51 const int PFDEFAULTNSAMPLES = 70;
52 const int PFDEFAULTSTARTINDEX = 0;
53
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*/
56
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;
62
63 const int CSPSPERFEE = 32;
64 const int RCU0 = 0;
65 const int RCU1 = 1;
66 const int RCU2 = 2;
67 const int RCU3 = 3;
68
69 const int Z0 = 0;
70 const int Z1 = 1;
71 const int X0 = 0;
72 const int X1 = 1;
73
74 const int NMODULES = 5; /**<Number of modules of the PHOS detector*/
75 const int NRCUS = 4; /**<Number of RCUs per Module*/
76
77 // NRCUSPERMODULE
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;
84}
85
86
87#endif
88
89