fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/subrackconfig.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           subrackconfig  -  description
00003                              -------------------
00004     begin                : Fri Mar 24 2006
00005     copyright            : (C) 2006 by 
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef SUBRACKCONFIG_H
00018 #define SUBRACKCONFIG_H
00019 
00020 
00021 #include <string>
00022 
00023 #include <Hw/Subrack.h>
00024 
00025 
00032 class SubrackConfig{
00033 public:
00034   SubrackConfig();
00035 
00036   ~SubrackConfig();
00037 
00039   void readFromFile(const char *inifile);
00040 
00042   void readFromCrate(Subrack *s);
00043 
00045   int compareWith(SubrackConfig *config);
00046 
00047 
00048   // System start properties
00049   int reset;          //< perform reset before initialisation
00050   int hwResetDelay;   //< Time required to  reset the hardware (default 1000 [ms])
00051   int configure;         //< perform configuration before initialisation
00052   int hwConfigureDelay;  //< Time required to reload and configure the hardware (default 3000ms)
00053   int inhibit;        //< Activate inhibit (default: 1) 
00054   int timeSync;       //< Syncronize time (default: 1)
00055 
00056   // Slt parameter
00057   int secStrobeSource;//< Set second strobe 1 ext, 2 int (default: 1)
00058   int triggerSource;  //< Set trigger source (default: 8)
00059   int inhibitSource;  //< set inhibit source (default: 7)
00060   int nextPageDelay;  //< Delay between trigger and stop of recording in the page (default: 1400 x50ns = 70us)
00061   int deadtime;       //< Enable deadtime counters
00062 
00063   // Flt parameter
00064   int abType;         //< Type of analog boards (default: 0)
00065   int runMode;        //< Run mode (default: 1)
00066   int gain;           //< Gain value for all Pixel (default: 64)
00067   std::string gainFile; //< Name of the files where the gains are stored
00068                       //< The name of these file contain usually templates for 
00069                       //< Telescope and eye
00070                       //< e.g.: /home/auger/General<tel>/Unigain_<eye:LL|LM|LA|CO>_0<tel>.set
00071   int statMode;       //< Statisic mode (default: 1)
00072   int statSamples;    //< Number of statistic samples
00073   int statOffset;     //< Mean offset of ADC values
00074   int tint;           //< Integration factor
00075   int hrcMode;        //< Mode of hitrate controller. 0 no, 1 measure only, 3 on (default: 3)
00076   int hrcTSample;     //< Sampling time of the hitrate controller (default: 2 [sec])
00077   int hrcMaxStep;     //< Maximal step size of the controller (default: 4)
00078   int hrcMargins[6];  //< Margins of the hitrate controller 
00079 
00080 
00081 };
00082 
00083 #endif