Skip to content
Snippets Groups Projects
Commit c6bd8ba5 authored by Patrick Robbe's avatar Patrick Robbe
Browse files

Fix size of events written out to file

parent bf44c328
No related branches found
Tags v8.5
No related merge requests found
...@@ -221,7 +221,7 @@ int analyzeHeader( unsigned int * & data , unsigned int & size , double & dsize ...@@ -221,7 +221,7 @@ int analyzeHeader( unsigned int * & data , unsigned int & size , double & dsize
void writeToFile( std::ofstream & the_file , unsigned int * data , int size ) { void writeToFile( std::ofstream & the_file , unsigned int * data , int size ) {
the_file << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl ; // to separate events the_file << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl ; // to separate events
for ( int i = 0 ; i < 8 ; ++i ) { // Write the data in 32bit values for ( int i = 0 ; i < 8 * ( size - 2 ) ; ++i ) { // Write the data in 32bit values
the_file << std::hex << data[ i ] << std::endl ; the_file << std::hex << data[ i ] << std::endl ;
} }
} }
......
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