4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
6 //* See cxx source for full Copyright notice */
8 /// @file AliHLTPHOSConstants.h
9 /// @author Svein Lindal
11 /// @brief Class containing constants for PHOS libraries.
13 #ifndef ALIHLTPHOSCONSTANTS_H
14 #define ALIHLTPHOSCONSTANTS_H
17 #include "AliHLTCaloConstants.h"
19 class AliHLTPHOSConstants : public AliHLTCaloConstants
24 AliHLTPHOSConstants();
25 ~AliHLTPHOSConstants();
27 Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
28 Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }
29 Int_t GetMAXBINVALUE() const { return fkMAXBINVALUE; }
30 Int_t GetHIGHGAIN() const { return fkHIGHGAIN;}
31 Int_t GetLOWGAIN() const { return fkLOWGAIN;}
33 Int_t GetALTROMAXSAMPLES() const {return fkALTROMAXSAMPLES;}
34 Int_t GetALTROMAXPRESAMPLES() const { return fkALTROMAXPRESAMPLES;}
36 Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
37 Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
38 Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
39 Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
40 Int_t GetNGAINS() const { return fkNGAINS;}
41 Int_t GetNDATATYPES() const { return fkNDATATYPES;}
43 Int_t GetPFMAXPATHLENGTH() const { return fkPFMAXPATHLENGTH;}
45 Int_t GetPFDEFAULTNSAMPLES() const{ return fkPFDEFAULTNSAMPLES;}
46 Int_t GetPFDEFAULTSTARTINDEX() const { return fkPFDEFAULTSTARTINDEX;}
48 Double_t GetDEFAULTTAU() const { return fkDEFAULTTAU;}
49 Int_t GetDEFAULTFS() const { return fkDEFAULTFS;}
51 Int_t GetMODULE0() const { return fkMODULE0;}
52 Int_t GetMODULE1() const { return fkMODULE1;}
53 Int_t GetMODULE2() const { return fkMODULE2;}
54 Int_t GetMODULE3() const { return fkMODULE3;}
55 Int_t GetMODULE4() const { return fkMODULE4;}
57 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}
58 Int_t GetRCU0() const { return fkRCU0;}
59 Int_t GetRCU1() const { return fkRCU1;}
60 Int_t GetRCU2() const { return fkRCU2;}
61 Int_t GetRCU3() const { return fkRCU3;}
63 Int_t GetZ0() const { return fkZ0;}
64 Int_t GetZ1() const { return fkZ1;}
65 Int_t GetX0() const { return fkX0;}
66 Int_t GetX1() const { return fkX1;}
68 Int_t GetNMODULES() const { return fkNMODULES;}
69 Int_t GetNRCUS() const { return fkNRCUS;}
71 Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
72 Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
73 Int_t GetNFEECS() const { return fkNFEECS;}
74 Int_t GetNALTROS() const { return fkNALTROS;}
75 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}
76 Int_t GetNBRANCHES() const { return fkNBRANCHES;}
78 Float_t GetCELLSTEP() const { return fkCELLSTEP; }
79 Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
81 Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
85 /** Constant members */
86 const Int_t fkMAXHOSTS;
87 const Int_t fkDEFAULTEVENTPORT;
88 const Int_t fkMAXBINVALUE;
89 const Int_t fkHIGHGAIN;
90 const Int_t fkLOWGAIN;
92 const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
93 const Int_t fkALTROMAXPRESAMPLES;
95 const Int_t fkNZROWSRCU; /**<Number of rows per module*/
96 const Int_t fkNXCOLUMNSRCU;
97 const Int_t fkNZROWSMOD; /**<Number of rows per module*/
98 const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
99 const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
100 const Int_t fkNDATATYPES;
102 const Int_t fkPFMAXPATHLENGTH;
104 const Int_t fkPFDEFAULTNSAMPLES;
105 const Int_t fkPFDEFAULTSTARTINDEX;
107 const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
108 const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
110 const Int_t fkMODULE0;
111 const Int_t fkMODULE1;
112 const Int_t fkMODULE2;
113 const Int_t fkMODULE3;
114 const Int_t fkMODULE4;
116 const Int_t fkCSPSPERFEE;
127 const Int_t fkNMODULES; /**<Number of modules of the PHOS detector*/
128 const Int_t fkNRCUS; /**<Number of RCUs per Module*/
130 const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
131 const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for PHOS*/
132 const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
133 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
134 const Int_t fkNALTROCHANNELS;
135 const Int_t fkNBRANCHES;
137 const Float_t fkCELLSTEP;
138 const Int_t fkNRCUSPERSECTOR;
140 const Int_t fkDDLOFFSET;
143 ClassDef(AliHLTPHOSConstants, 1);