Commit ca2e2bd4 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

added channel comments

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2995
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a03c682a
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: channeltranslation.cc,v 1.4 2009-11-12 07:23:55 tforb Exp $
* $Id: channeltranslation.cc,v 1.5 2010-03-01 10:19:38 tforb Exp $
* \author Thomas Forbriger
* \date 11/11/2009
*
......@@ -35,7 +35,7 @@
#define DATREAD_CHANNELTRANSLATION_CC_VERSION \
"DATREAD_CHANNELTRANSLATION_CC V1.0 "
#define DATREAD_CHANNELTRANSLATION_CC_CVSID \
"$Id: channeltranslation.cc,v 1.4 2009-11-12 07:23:55 tforb Exp $"
"$Id: channeltranslation.cc,v 1.5 2010-03-01 10:19:38 tforb Exp $"
#include <iomanip>
#include <datreadxx/error.h>
......@@ -89,7 +89,7 @@ namespace datread {
{"BF:SG056:T2-Ext", "BFO:T2X:SG056:T2Ex"},
{"BF:SG056:T3-Ext", "BFO:T3X:SG056:T3Ex"},
{"BF:SG056:Temp_G1", "BFO:TG1:SG056:TeG1"},
{"BF:SG056:Temp_G2", "BFO:TG2:SG056:T2G2"},
{"BF:SG056:Temp_G2", "BFO:TG2:SG056:TeG2"},
{"BF:SG056:Temp_TX", "BFO:TTX:SG056:TeTX"},
{"BF:SG056:Temp_TY", "BFO:TTY:SG056:TeTY"},
{"BF:SG056:Temp_TE", "BFO:TTE:SG056:TeTE"},
......@@ -199,6 +199,51 @@ namespace datread {
/*----------------------------------------------------------------------*/
void reportdatacomments(std::ostream& os)
{
os << "Comments found in 1s data file (A2100101.056):" << std::endl;
os << "15 LHe-Lvl 3 0.0 100.0 Volt % GEPLHe23" << std::endl;
os << "16 AGnd 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "17 AD-1 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "18 TREEfan 1 -10.0 10.0 Volt Volts 4.0" << std::endl;
os << "19 G1-Sig 1 -10.0 10.0 Volt nm/sec2 none" << std::endl;
os << "20 G1-Mode 1 -10.0 10.0 Volt Volts none" << std::endl;
os << "21 G2-Sig 1 -10.0 10.0 Volt nm/sec2 none" << std::endl;
os << "22 G2-Mode 1 -10.0 10.0 Volt Volts none" << std::endl;
os << "23 Dewr-P 1 -2.0 2.0 Volt PSI PSI_1_1" << std::endl;
os << "24 GBal-1 1 -10.0 10.0 Volt nm/sec2 none" << std::endl;
os << "25 TX-Pwr 1 -10.0 10.0 Volt %Power POWERV" << std::endl;
os << "26 TX-Bal 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "27 NeckT-1 1 1.9 8.5 Volt Kelvin SiDiode-3" << std::endl;
os << "28 NeckT-2 1 1.9 8.5 Volt Kelvin SiDiode-3" << std::endl;
os << "29 BelyT-3 1 1.9 8.5 Volt Kelvin SiDiode-3" << std::endl;
os << "30 BodyT-4 1 1.9 8.5 Volt Kelvin SiDiode-4" << std::endl;
os << "31 LHeLvl 6 1.0 100.0 Volt % GEPLHe23" << std::endl;
os << "32 GBal-2 1 -10.0 10.0 Volt nm/sec2 none" << std::endl;
os << "33 TY-Pwr 1 -10.0 10.0 Volt %Power POWERV" << std::endl;
os << "34 TY-Bal 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "35 Tmp-Bal 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "36 HtrCrnt 1 -10.0 10.0 Volt %Power POWERV" << std::endl;
os << "37 Temp_6K 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "38 Temp_77 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "39 FB_Mod 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "40 P1GasCl 1 -10.0 10.0 Volt PSI PSI-3000" << std::endl;
os << "41 P2GasRg 1 -10.0 10.0 Volt PSI PSI-500" << std::endl;
os << "42 P3CmpHi 1 -10.0 10.0 Volt PSI PSI-500" << std::endl;
os << "43 P4CmpLo 1 -10.0 10.0 Volt PSI PSI-500" << std::endl;
os << "44 P5CmpBl 1 -10.0 10.0 Volt PSI PSI-500" << std::endl;
os << "55 Temp-Gt 1 0.0 1.0 Volt Kelvin PT100V_K" << std::endl;
os << "56 Dwr_Htr 1 -10.0 10.0 Volt mA 20.0" << std::endl;
os << "57 Comp_DC 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "58 CH_DC 1 -10.0 10.0 Volt Volts 1.0" << std::endl;
os << "59 Tmpr1 1 0.0 0.0 Celsius Celsius 1.0" << std::endl;
os << "60 Tmpr2 1 0.0 0.0 Celsius Celsius 1.0" << std::endl;
os << "61 RelHum1 1 0.4 1.7 Pcnt % 1.0" << std::endl;
os << "62 RelHum2 1 0.4 1.7 Pcnt % 1.0" << std::endl;
} // void reporttranslation(std::ostream& os)
/*----------------------------------------------------------------------*/
bool translationisunique(const bool& verbose)
{
bool retval=true;
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: channeltranslation.h,v 1.2 2009-11-11 17:41:22 tforb Exp $
* $Id: channeltranslation.h,v 1.3 2010-03-01 10:19:38 tforb Exp $
* \author Thomas Forbriger
* \date 11/11/2009
*
......@@ -42,7 +42,7 @@
#define DATREAD_CHANNELTRANSLATION_H_VERSION \
"DATREAD_CHANNELTRANSLATION_H V1.0 "
#define DATREAD_CHANNELTRANSLATION_H_CVSID \
"$Id: channeltranslation.h,v 1.2 2009-11-11 17:41:22 tforb Exp $"
"$Id: channeltranslation.h,v 1.3 2010-03-01 10:19:38 tforb Exp $"
namespace datread {
......@@ -109,6 +109,13 @@ namespace datread {
/*----------------------------------------------------------------------*/
/*! \brief report comments from 1s files
* \ingroup tsoft
*/
void reportdatacomments(std::ostream& os);
/*----------------------------------------------------------------------*/
/*! \brief check uniqueness of translation table
* \ingroup tsoft
*/
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tsoft.cc,v 1.4 2009-11-12 16:34:25 tforb Exp $
* $Id: tsoft.cc,v 1.5 2010-03-01 10:19:38 tforb Exp $
* \author Thomas Forbriger
* \date 11/11/2009
*
......@@ -35,7 +35,7 @@
#define DATREAD_TSOFT_CC_VERSION \
"DATREAD_TSOFT_CC V1.0 "
#define DATREAD_TSOFT_CC_CVSID \
"$Id: tsoft.cc,v 1.4 2009-11-12 16:34:25 tforb Exp $"
"$Id: tsoft.cc,v 1.5 2010-03-01 10:19:38 tforb Exp $"
#include <datreadxx/tsoft.h>
#include <datreadxx/util.h>
......@@ -105,6 +105,7 @@ namespace datread {
os << DATREAD_TSOFT_H_VERSION << std::endl
<< DATREAD_TSOFT_H_CVSID<< std::endl;
datread::tsoft::reporttranslation(os);
datread::tsoft::reportdatacomments(os);
DATREAD_assert(datread::tsoft::translationisunique(),
"TSOFT translation table is not unique");
} // void itsoftstream::help(std::ostream& os)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment