]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSConstants.h
Merge branch 'TPCdev' of https://git.cern.ch/reps/AliRoot into TPCdev
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSConstants.h
index ad6923893236473cda938269c988280fe62288fa..4eb20f50af3794a8e9824e5b872e188e8d2c65db 100644 (file)
 
 #ifndef ALIHLTPHOSCONSTANTS_H
 #define ALIHLTPHOSCONSTANTS_H
+
+
 #include <TString.h>
+#include "Rtypes.h"
+
+
+#include "AliHLTCaloConstants.h"
 
-class AliHLTCaloConstants;
 
 class AliHLTPHOSConstants : public AliHLTCaloConstants
 {
-
 public:
-  
   AliHLTPHOSConstants();
-  ~AliHLTPHOSConstants();
-
-  Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}                              
-  Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }             
-  Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}                            
-  Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}                      
-  Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}                            
-  Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}                      
-  Int_t GetNDATATYPES() const { return fkNDATATYPES;}                          
-
-  Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}                          
-
-  Int_t GetRCU0() const { return fkRCU0;}                                      
-  Int_t GetRCU1() const { return fkRCU1;}                                      
-  Int_t GetRCU2() const { return fkRCU2;}                                      
-  Int_t GetRCU3() const { return fkRCU3;}                                      
-  Int_t GetZ0() const { return fkZ0;}                                          
-  Int_t GetZ1() const { return fkZ1;}                                          
-  Int_t GetX0() const { return fkX0;}                                          
-  Int_t GetX1() const { return fkX1;}                                          
-  Int_t GetNMODULES() const { return fkNMODULES;}                              
-  Int_t GetNRCUS() const { return fkNRCUS;}                                    
-  Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}                  
-  Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}                    
-  Int_t GetNFEECS() const { return fkNFEECS;}                                  
-  Int_t GetNALTROS() const { return fkNALTROS;}                                
-  Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}                  
-  Int_t GetNBRANCHES() const { return fkNBRANCHES;}                            
-  Float_t GetCELLSTEP() const { return fkCELLSTEP; }                           //   Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }                         Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
-  TString GetDETNAME() const { return fkDETNAME; }
-
-private:
-  /** Constant members */
-  const Int_t fkMAXHOSTS;                  //Constant
-  const Int_t fkDEFAULTEVENTPORT;          //Constant
-  const Int_t fkNZROWSRCU; /**<Number of rows per module*/ 
-  const Int_t fkNXCOLUMNSRCU;          //Constant
-  const Int_t fkNZROWSMOD;  /**<Number of rows per module*/ 
-  const Int_t fkNXCOLUMNSMOD;  /**<Number of columns per module*/ 
-  const Int_t fkNDATATYPES;          //Constant
-
-  //  const Int_t fkPFMAXPATHLENGTH;          //Constant
-
-  // const Int_t fkPFDEFAULTNSAMPLES;          //Constant
-  //  const Int_t fkPFDEFAULTSTARTINDEX;          //Constant
-
-  //  const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp
-
-  // pulses is 2 us (nominal value of the electronics)*/
-
-  //  const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
+  virtual ~AliHLTPHOSConstants();
+  virtual void InitConstants(); 
+  virtual Int_t GetNZROWSMOD() const      { return PHOS::NZROWSMOD;} 
+  virtual Int_t GetNXCOLUMNSMOD() const   { return PHOS::NXCOLUMNSMOD;}; 
+  virtual Int_t GetNMODULES() const       { return PHOS::NMODULES; }; 
+  virtual Int_t GetNRCUSPERMODULE() const { return PHOS::NRCUSPERMODULE;};
+  virtual Int_t GetNFEECS() const         { return PHOS::NFEECS; } ;
   
-  const Int_t fkCSPSPERFEE; //Constant
-  const Int_t fkRCU0; //Constant
-  const Int_t fkRCU1; //Constant
-  const Int_t fkRCU2; //Constant
-  const Int_t fkRCU3; //Constant
-
-  const Int_t fkZ0; //Constant
-  const Int_t fkZ1; //Constant
-  const Int_t fkX0; //Constant
-  const Int_t fkX1; //Constant
-
-  const Int_t fkNMODULES;   /**<Number of modules of the PHOS detector*/
-  const Int_t fkNRCUS;   /**<Number of RCUs per Module*/
-  const Int_t fkNRCUSPERMODULE;   /**<Number of RCUs per Module*/
-  const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for PHOS*/
-  const Int_t fkNFEECS;  /**<Number of Frontend cards per branch*/
-  const Int_t fkNALTROS;  /**<Number of ALTROs per frontend card*/
-  const Int_t fkNALTROCHANNELS;  //Constant
-  const Int_t fkNBRANCHES; //Constant
-
-  const Float_t fkCELLSTEP;  //Constant
-  //  const Int_t fkNRCUSPERSECTOR;  //Constant
-  const Int_t fkDDLOFFSET;  //Constant
-  const TString fkDETNAME;  //Constant
-   
-  ClassDef(AliHLTPHOSConstants, 1);
-
+  ClassDef(AliHLTPHOSConstants, 1)
 };
 
 #endif
+