]> 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 8fbda161c6f70dfe2cf1a799cb8b9a4c293d9625..4eb20f50af3794a8e9824e5b872e188e8d2c65db 100644 (file)
@@ -1,89 +1,40 @@
 //-*- Mode: C++ -*-
 // $Id$
 
-/**************************************************************************
- * This file is property of and copyright by the Experimental Nuclear     *
- * Physics Group, Dep. of Physics                                         *
- * University of Oslo, Norway, 2006                                       *
- *                                                                        * 
- * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project.  *
- * Contributors are mentioned in the code where appropriate.              *
- * Please report bugs to perthi@fys.uio.no                                * 
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
+//* This file is property of and copyright by the ALICE HLT Project        * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//* See cxx source for full Copyright notice                               */
+
+/// @file   AliHLTPHOSConstants.h
+/// @author Svein Lindal
+/// @date   
+/// @brief  Class containing constants for PHOS libraries.
 
 #ifndef ALIHLTPHOSCONSTANTS_H
 #define ALIHLTPHOSCONSTANTS_H
 
-namespace PhosHLTConst
-{
-  const int MAXHOSTS = 20;
-  const int DEFAULTEVENTPORT = 42001;
-  const int MAXBINVALUE = 1023;
-  const int HIGHGAIN    =   1;
-  const int LOWGAIN     =   0;
-
-  const int ALTROMAXSAMPLES = 1008;                           /**<The maximum number of samples of the ALTRO*/
-  const int ALTROMAXPRESAMPLES = 15;        
- //  const int ALTROMAXTRALERSIZE = 7;  
-  //  const int  DDLBLOCKSIZE = 5;
 
-  const int NZROWSRCU     =   56;                    /**<Number of rows per module*/       
-  const int NXCOLUMNSRCU  =   16; 
-  const int NZROWSMOD      =  56;                    /**<Number of rows per module*/       
-  const int NXCOLUMNSMOD   =  64;                 /**<Number of columns per module*/ 
-  const int NGAINS         =   2;                             /**<Number of gains per ALTRO channel*/
-  const int NDATATYPES     =   10;    
-
-  const int  PFMAXPATHLENGTH = 256;
-
-#ifndef __CINT__
-  const unsigned char PFVECTORDIR[] = "/HLT/PHOS/PFVectors";
-#endif
+#include <TString.h>
+#include "Rtypes.h"
 
-  const int PFDEFAULTNSAMPLES = 70;
-  const int PFDEFAULTSTARTINDEX = 0;
 
-  const int DEFAULTTAU = 2;    /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
-  const int  DEFAULTFS = 10;   /**<Assume that the signal is samples with 10 MHZ samle rate*/
+#include "AliHLTCaloConstants.h"
 
-  const int MODULE0     = 0;
-  const int MODULE1     = 1;
-  const int MODULE2     = 2;
-  const int MODULE3     = 3;
-  const int MODULE4     = 4;
-
-  const int CSPSPERFEE    = 32;
-  const int RCU0       = 0;
-  const int RCU1       = 1;
-  const int RCU2       = 2;
-  const int RCU3       = 3;
-
-  const int Z0         = 0;
-  const int Z1         = 1;
-  const int X0         = 0;
-  const int X1         = 1;
-
-  const int NMODULES    =      5;                             /**<Number of modules of the PHOS detector*/
-  const int NRCUS       =      4;                             /**<Number of RCUs per Module*/
-  //              NRCUSPERMODULE
-  const int NRCUSPERMODULE =  4 ;                            /**<Number of RCUs per Module*/
-  const int NRCUSPERTOTAL =  NMODULES*NRCUSPERMODULE;   /**<Total number of RCUs for PHOS*/
-  const int NFEECS         =  14;                             /**<Number of Frontend cards per branch*/
-  const int NALTROS        =   4;                             /**<Number of ALTROs per frontend card*/
-  const int NALTROCHANNELS =  16;
-  const int NBRANCHES      =   2;      
-}
 
+class AliHLTPHOSConstants : public AliHLTCaloConstants
+{
+public:
+  AliHLTPHOSConstants();
+  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; } ;
+  
+  ClassDef(AliHLTPHOSConstants, 1)
+};
 
 #endif
 
-