14 namespace fs = boost::filesystem;
20 using namespace RdAirplane;
22 const char* PulseInfoWriter::pulseInfoFileName =
"pulseInfo.dat";
24 PulseInfoWriter::PulseInfoWriter(
26 const fs::path& pOutputDirectory,
28 _dataWriter_(pDataWriter),
29 _outputFile_(fs::path(pOutputDirectory)),
33 ofstream pulseInfoFileHandle;
36 if(!pulseInfoFileHandle.is_open()) {
37 throw runtime_error(
"Could not write data for event.");
39 pulseInfoFileHandle << setprecision(numeric_limits<long double>::digits10 + 1)
43 <<
"Signal To Noise Ratio| "
45 <<
"Measured Pulse Peak Time EW (ns)| "
46 <<
"Measured Pulse Peak Time NS (ns)| "
47 <<
"Measured E-Vector Peak Time (ns)| "
50 pulseInfoFileHandle.close();
53 pulseInfoFileHandle.close();
59 string stationIdAsString = boost::lexical_cast<
string>(pRadioStation.
GetId());
62 ofstream pulseInfoFileHandle;
63 pulseInfoFileHandle.open(
_outputFile_.c_str(), ios_base::app);
65 if(!pulseInfoFileHandle.is_open()) {
66 throw runtime_error(
"Could not write data for event.");
68 pulseInfoFileHandle << setprecision(numeric_limits<long double>::digits10 + 1)
70 << stationIdAsString <<
" "
80 pulseInfoFileHandle.close();
83 pulseInfoFileHandle.close();
utl::CoordinateSystemPtr GetLocalCoordinateSystem() const
Get the Auger reference system centered on the station.
Class to access station level reconstructed data.
Detector description interface for Station-related data.
StationRecData & GetRecData()
Get station level reconstructed data.
static const char * pulseInfoFileName
boost::filesystem::path _outputFile_
bool writePulseInfo(const revt::Station &pStation, const rdet::Station &pRadioStation)
virtual ~PulseInfoWriter()
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
class to hold data at the radio Station level.
int GetId() const
Station ID.
double GetParameter(const Parameter i) const