fdhwlib
2.0.25
|
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 00018 #ifndef _HW4_SUBRACKCONFIG_H_INCLUDED 00019 #define _HW4_SUBRACKCONFIG_H_INCLUDED 00020 00021 #include <string> 00022 00023 #include <hw4/subrack.h> 00024 00025 00026 namespace hw4 { 00027 00036 class SubrackConfig{ 00037 public: 00038 SubrackConfig(); 00039 00040 ~SubrackConfig(); 00041 00043 void readFromFile(const char *inifile); 00044 00046 void readFromCrate(Subrack *s); 00047 00049 int compareWith(SubrackConfig *config); 00050 00051 00052 // System start properties 00053 int reset; //< perform reset before initialisation 00054 int hwResetDelay; //< Time required to reset the hardware (default 1000 [ms]) 00055 int configure; //< perform configuration before initialisation 00056 int hwConfigureDelay; //< Time required to reload and configure the hardware (default 3000ms) 00057 int inhibit; //< Activate inhibit (default: 1) 00058 int timeSync; //< Syncronize time (default: 1) 00059 00060 // Slt parameter 00061 int secStrobeSource;//< Set second strobe 1 ext, 2 int (default: 1) 00062 int triggerSource; //< Set trigger source (default: 8) 00063 int inhibitSource; //< set inhibit source (default: 7) 00064 int nextPageDelay; //< Delay between trigger and stop of recording in the page (default: 1400 x50ns = 70us) 00065 int deadtime; //< Enable deadtime counters 00066 00067 // Flt parameter 00068 int abType; //< Type of analog boards (default: 0) 00069 int runMode; //< Run mode (default: 1) 00070 int gain; //< Gain value for all Pixel (default: 64) 00071 std::string gainFile; //< Name of the files where the gains are stored 00072 //< The name of these file contain usually templates for 00073 //< Telescope and eye 00074 //< e.g.: /home/auger/General<tel>/Unigain_<eye:LL|LM|LA|CO>_0<tel>.set 00075 int statMode; //< Statisic mode (default: 1) 00076 int statSamples; //< Number of statistic samples 00077 int statOffset; //< Mean offset of ADC values 00078 int tint; //< Integration factor 00079 int hrcMode; //< Mode of hitrate controller. 0 no, 1 measure only, 3 on (default: 3) 00080 int hrcTSample; //< Sampling time of the hitrate controller (default: 2 [sec]) 00081 int hrcMaxStep; //< Maximal step size of the controller (default: 4) 00082 int hrcMargins[6]; //< Margins of the hitrate controller 00083 }; 00084 00085 } // namespace hw4 00086 00087 #endif // _HW4_SUBRACKCONFIG_H_INCLUDED