Changeset 31 for drsdaq/DAQReadout.cc


Ignore:
Timestamp:
04/03/09 13:06:17 (15 years ago)
Author:
ogrimm
Message:
Data transmission over socket contains now frequency and scale factor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/DAQReadout.cc

    r27 r31  
    617617  }
    618618  PrintMessage("Waveform from board %d, chip %d, channel %d\n",board,chip,channel);
    619   PrintMessage("Note: The first number is the number of numbers that follows.\n");
    620 
    621619  ReadCalibratedDRSData();
    622620 
    623621  // Note that all numbers must be separated by exactly one whitespace
    624   // to allow reading from client socket 
    625   PrintMessage("==START== %d ",kNumberOfBins);
     622  // to allow reading from client socket
     623  // The first number is the number of numbers that follow, the second number
     624  // is the sampling frequency in GHz and the third is the conversion factor.
     625  PrintMessage("==START== %d %.2f %.2f ",kNumberOfBins+2,DRSFreq[board],drs->GetBoard(board)->GetPrecision());
    626626  for (int k=0; k<kNumberOfBins; k++) PrintMessage("%.1f ", (float) WaveForm[board][chip][channel][k]);
    627627  PrintMessage("==END==");
Note: See TracChangeset for help on using the changeset viewer.