Skip to content
Snippets Groups Projects
Commit ec4a680e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ry laeuft

parent 73cf0053
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,7 @@ void RssmRawFile::RdRawYam( FILE *F_in ) ...@@ -141,6 +141,7 @@ void RssmRawFile::RdRawYam( FILE *F_in )
val = y.getscalar( "x-value" ); val = y.getscalar( "x-value" );
if( mystd::any2dbl( val, &num ) ) if( mystd::any2dbl( val, &num ) )
throw string( "E-Hist: invalid x-value " ) + val; throw string( "E-Hist: invalid x-value " ) + val;
printf( "E: %f\n", num );
for( int i=0; i<4; ++i ) for( int i=0; i<4; ++i )
rawdata[i].push_back( num ); rawdata[i].push_back( num );
for( int i=0; i<4; ++i ){ for( int i=0; i<4; ++i ){
...@@ -159,6 +160,42 @@ void RssmRawFile::RdRawYam( FILE *F_in ) ...@@ -159,6 +160,42 @@ void RssmRawFile::RdRawYam( FILE *F_in )
for( int ii=0; ii<numvec.size(); ++ii ) for( int ii=0; ii<numvec.size(); ++ii )
rawdata[i].push_back( numvec[ii] ); rawdata[i].push_back( numvec[ii] );
} }
y.checktype( YAML_SEQUENCE_END_EVENT, "E-Hist entry" );
}
y.done();
y.checkvalue( "ChopperHistograms" );
y.checktype( YAML_SEQUENCE_START_EVENT, "C-Hist: no seq\n" );
while( true ){
y.next();
if( y.event.type == YAML_SEQUENCE_END_EVENT )
break;
if( y.event.type != YAML_SEQUENCE_START_EVENT )
throw string ( "C-Hist: seq: no seq" );
y.done();
val = y.getscalar( "x-value" );
if( mystd::any2dbl( val, &num ) )
throw string( "C-Hist: invalid x-value " ) + val;
printf( "p: %f\n", num );
for( int i=4; i<6; ++i )
rawdata[i].push_back( num );
for( int i=4; i<6; ++i ){
val = y.getscalar( "cnts line" );
if( mystd::str2vec( val, &numvec ) )
throw string( "cnts line extraction failed" );
if( numvec.size()!=ndet )
throw string( "hist: ndet incompatibility" );
for( int ii=0; ii<numvec.size(); ++ii )
rawdata[i].push_back( numvec[ii] );
}
for( int i=4; i<6; ++i ){
val = y.getscalar( "time line" );
if( mystd::str2vec( val, &numvec ) )
throw string( "time line extraction failed" );
for( int ii=0; ii<numvec.size(); ++ii )
rawdata[i].push_back( numvec[ii] );
}
y.checktype( YAML_SEQUENCE_END_EVENT, "C-Hist entry" );
} }
y.done(); y.done();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment