Commit d7d0026b authored by Alexander Ferk's avatar Alexander Ferk
Browse files

added test for JSONWriter

parent e2c39a42
......@@ -97,4 +97,6 @@ void JSONWriter::finalise() {
// finalize the JSON Array, add one empty Object to satisfy JSON Rules
*output_file_ << "{" << std::endl << "}" << std::endl << "]";
// Print statistics
LOG(STATUS) << "Wrote " << m_eventNumber - 1 << " events to file:" << output_file_name_ << std::endl;
}
......@@ -21,7 +21,7 @@ and individual object types by the type marker:
With `include` and `exclude` certain object types can be selected to be printed.
### Parameters
* `file_name` : Name of the data file to create, relative to the output directory of the framework. The file extension `.txt` will be appended if not present.
* `file_name` : Name of the data file to create, relative to the output directory of the framework. The file extension `.json` will be appended if not present.
* `include` : Array of object names to write to the ASCII text file, all other object names are ignored (cannot be used together simultaneously with the *exclude* parameter).
* `exclude`: Array of object names that are not written to the ASCII text file (cannot be used together simultaneously with the *include* parameter).
......
[Corryvreckan]
detectors_file = "geometries/geometry_timepix3_telescope_dut.conf"
histogram_file = "test_writing.root"
log_level = "WARNING"
number_of_events = 15000
[Metronome]
event_length = 200us
[EventLoaderTimepix3]
input_directory = "data/timepix3tel_ebeam120"
[Clustering4D]
time_cut_abs = 100ns
[Tracking4D]
min_hits_on_track = 5
time_cut_abs = 200ns
spatial_cut_abs = 200um, 200um
[JSONWriter]
file_name = "testFileName"
[DUTAssociation]
spatial_cut_abs = 200um,200um
time_cut_abs = 100ns
[AnalysisEfficiency]
chi2ndof_cut = 8
time_cut_frameedge = 10ns
#DATASET timepix3tel_ebeam120
#PASS [F:JSONWriter] Wrote 15000 events to file:/Users/alex/git/CERN/corryvreckan/testing/output/testFileName.json
Supports Markdown
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