Add Textwriter module for ASCII data output
Add module TextWriter
. With this module it is possible to save objects in ASCII format, as long as for this object type a printout is defined. A lot of the implementation was adapted from the allpix-squared TextWriter module. I tried it so far with Pixel
, Cluster
and Track
.
As in the allpix-squared alike, object types can included or excluded via the configuration and a filename can be specified.
An example output can be found below.
=== 0 ===
=== 1 ===
--- MIMOSA26_1 ---
+++ Cluster +++
Cluster 2.6496, -3.6616, -2.6496, -3.6616, -2.6496, 1, 0, 1, 1, 1, 2.80479e+10
Cluster 3.6892, -0.7176, -3.6892, -0.7176, -3.6892, 2, 0, 2, 2, 1, 2.80479e+10
Cluster -6.0536, 4.5448, 6.0536, 4.5448, 6.0536, 1, 0, 1, 1, 1, 2.80479e+10
Cluster 2.7416, 1.2972, -2.7416, 1.2972, -2.7416, 2, 0, 2, 1, 2, 2.80479e+10
Cluster 6.1456, 3.2384, -6.1456, 3.2384, -6.1456, 1, 0, 1, 1, 1, 2.80479e+10
--- MIMOSA26_1 ---
+++ Pixel +++
Pixel 720, 89, 1, 1, 2.80479e+10
Pixel 776, 249, 1, 1, 2.80479e+10
Pixel 777, 249, 1, 1, 2.80479e+10
Pixel 247, 535, 1, 1, 2.80479e+10
Pixel 725, 358, 1, 1, 2.80479e+10
Pixel 725, 359, 1, 1, 2.80479e+10
Pixel 910, 464, 1, 1, 2.80479e+10
--- MIMOSA26_2 ---
+++ Cluster +++
Cluster -8.5836, 0.1288, 8.5836, 0.1288, 8.5836, 48, 0, 48, 24, 1, 2.80479e+10
Cluster 9.4576, -0.92, -9.4576, -0.92, -9.4576, 1, 0, 1, 1, 1, 2.80479e+10
Cluster -8.1052, 0.1288, 8.1052, 0.1288, 8.1052, 24, 0, 24, 12, 1, 2.80479e+10
Cluster -2.852, 2.8704, 2.852, 2.8704, 2.852, 1, 0, 1, 1, 1, 2.80479e+10
Cluster 8.2984, 1.564, -8.2984, 1.564, -8.2984, 1, 0, 1, 1, 1, 2.80479e+10
Cluster 5.0968, -0.5704, -5.0968, -0.5704, -5.0968, 1, 0, 1, 1, 1, 2.80479e+10
--- MIMOSA26_2 ---
+++ Pixel +++
Pixel 105, 295, 1, 1, 2.80479e+10
Pixel 114, 295, 1, 1, 2.80479e+10
Pixel 113, 295, 1, 1, 2.80479e+10
Pixel 112, 295, 1, 1, 2.80479e+10
Pixel 111, 295, 1, 1, 2.80479e+10
Pixel 110, 295, 1, 1, 2.80479e+10
Pixel 109, 295, 1, 1, 2.80479e+10
Pixel 108, 295, 1, 1, 2.80479e+10
Pixel 107, 295, 1, 1, 2.80479e+10
Pixel 106, 295, 1, 1, 2.80479e+10
Pixel 115, 295, 1, 1, 2.80479e+10
Pixel 104, 295, 1, 1, 2.80479e+10
Pixel 103, 295, 1, 1, 2.80479e+10
Pixel 102, 295, 1, 1, 2.80479e+10
Pixel 101, 295, 1, 1, 2.80479e+10
......
....
..