]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/EMCAL/AliHLTEMCALConstants.h
- fixing problem with setting DDL ID for the decoder
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALConstants.h
CommitLineData
88b2ce82 1//-*- Mode: C++ -*-
4f4b7ba4 2// $Id: AliHLTEMCALConstants.h 35357 2009-10-08 13:24:38Z phille $
88b2ce82 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 * *
4f4b7ba4 9 * Author: Svein Lindal slindal@fys.uio.no for the ALICE DCS Project. *
88b2ce82 10 * Contributors are mentioned in the code where appropriate. *
4f4b7ba4 11 * Please report bugs to slindal@fys.uio.no *
88b2ce82 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
88b2ce82 22#ifndef ALIHLTEMCALCONSTANTS_H
23#define ALIHLTEMCALCONSTANTS_H
24
4f4b7ba4 25#include "Rtypes.h"
26#include "AliHLTCaloConstants.h"
27
28
29class AliHLTEMCALConstants : public AliHLTCaloConstants
88b2ce82 30{
4d6be4cd 31
4f4b7ba4 32public:
33
34 AliHLTEMCALConstants();
35 ~AliHLTEMCALConstants();
4d6be4cd 36
4f4b7ba4 37 Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
38 Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }
39 Int_t GetMAXBINVALUE() const { return fkMAXBINVALUE; }
40 Int_t GetHIGHGAIN() const { return fkHIGHGAIN;}
41 Int_t GetLOWGAIN() const { return fkLOWGAIN;}
42
43 Int_t GetALTROMAXSAMPLES() const {return fkALTROMAXSAMPLES;}
44 Int_t GetALTROMAXPRESAMPLES() const { return fkALTROMAXPRESAMPLES;}
45
46 Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
47 Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
48 Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
49 Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
50 Int_t GetNGAINS() const { return fkNGAINS;}
51 Int_t GetNDATATYPES() const { return fkNDATATYPES;}
52
53 Int_t GetPFMAXPATHLENGTH() const { return fkPFMAXPATHLENGTH;}
54
55 Int_t GetPFDEFAULTNSAMPLES() const{ return fkPFDEFAULTNSAMPLES;}
56 Int_t GetPFDEFAULTSTARTINDEX() const { return fkPFDEFAULTSTARTINDEX;}
57
58 Double_t GetDEFAULTTAU() const { return fkDEFAULTTAU;}
59 Int_t GetDEFAULTFS() const { return fkDEFAULTFS;}
60
61 Int_t GetMODULE0() const { return fkMODULE0;}
62 Int_t GetMODULE1() const { return fkMODULE1;}
63 Int_t GetMODULE2() const { return fkMODULE2;}
64 Int_t GetMODULE3() const { return fkMODULE3;}
65 Int_t GetMODULE4() const { return fkMODULE4;}
66
67 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}
68 Int_t GetRCU0() const { return fkRCU0;}
69 Int_t GetRCU1() const { return fkRCU1;}
70 Int_t GetRCU2() const { return fkRCU2;}
71 Int_t GetRCU3() const { return fkRCU3;}
72
73 Int_t GetZ0() const { return fkZ0;}
74 Int_t GetZ1() const { return fkZ1;}
75 Int_t GetX0() const { return fkX0;}
76 Int_t GetX1() const { return fkX1;}
77
78 Int_t GetNMODULES() const { return fkNMODULES;}
79 Int_t GetNRCUS() const { return fkNRCUS;}
88b2ce82 80
4f4b7ba4 81 Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
82 Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
83 Int_t GetNFEECS() const { return fkNFEECS;}
84 Int_t GetNALTROS() const { return fkNALTROS;}
85 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}
86 Int_t GetNBRANCHES() const { return fkNBRANCHES;}
88b2ce82 87
4f4b7ba4 88 Float_t GetCELLSTEP() const { return fkCELLSTEP; } //BALLE must be set correctly
89 Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
9cd20a1c 90 Int_t GetDDLOffset() const { return fkDDLOFFSET; }
88b2ce82 91
88b2ce82 92
4f4b7ba4 93private:
94
95 /** Constant members */
96
97 const Int_t fkMAXHOSTS;
98 const Int_t fkDEFAULTEVENTPORT;
99 const Int_t fkMAXBINVALUE;
100 const Int_t fkHIGHGAIN;
101 const Int_t fkLOWGAIN;
102
103 const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
104 const Int_t fkALTROMAXPRESAMPLES;
105
106 const Int_t fkNZROWSRCU; /**<Number of rows per module*/
107 const Int_t fkNXCOLUMNSRCU;
108 const Int_t fkNZROWSMOD; /**<Number of rows per module*/
109 const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
110 const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
111 const Int_t fkNDATATYPES;
88b2ce82 112
4f4b7ba4 113 const Int_t fkPFMAXPATHLENGTH;
114
115 const Int_t fkPFDEFAULTNSAMPLES;
116 const Int_t fkPFDEFAULTSTARTINDEX;
117
118 const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
119 const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
120
121 const Int_t fkMODULE0;
122 const Int_t fkMODULE1;
123 const Int_t fkMODULE2;
124 const Int_t fkMODULE3;
125 const Int_t fkMODULE4;
126
127 const Int_t fkCSPSPERFEE;
128 const Int_t fkRCU0;
129 const Int_t fkRCU1;
130 const Int_t fkRCU2;
131 const Int_t fkRCU3;
132
133 const Int_t fkZ0;
134 const Int_t fkZ1;
135 const Int_t fkX0;
136 const Int_t fkX1;
137
138 const Int_t fkNMODULES; /**<Number of modules of the EMCAL detector*/
139 const Int_t fkNRCUS; /**<Number of RCUs per Module*/
140
141 const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
142 const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for EMCAL*/
143 const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
144 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
145 const Int_t fkNALTROCHANNELS;
146 const Int_t fkNBRANCHES;
147
148 const Float_t fkCELLSTEP;
149 const Int_t fkNRCUSPERSECTOR;
9cd20a1c 150
151 const Int_t fkDDLOFFSET;
4f4b7ba4 152
153 ClassDef(AliHLTEMCALConstants, 1)
154
155};
156#endif