45 ActsExamples::OutputFormat::Root | ActsExamples::OutputFormat::Json |
46 ActsExamples::OutputFormat::Cbor | ActsExamples::OutputFormat::Csv |
47 ActsExamples::OutputFormat::Obj);
64 auto contextDecorators =
geometry.second;
70 for (
size_t ievt = 0; ievt <
nEvents; ++ievt) {
80 for (
auto& cdr : contextDecorators) {
82 throw std::runtime_error(
"Failed to decorate event context");
87 if (!contextDecorators.empty()) {
99 if (vm[
"output-obj"].as<bool>()) {
101 auto tgObjWriterConfig =
105 std::make_shared<ActsExamples::ObjTrackingGeometryWriter>(
106 tgObjWriterConfig, volumeLogLevel);
112 if (vm[
"output-csv"].as<bool>()) {
119 std::make_shared<ActsExamples::CsvTrackingGeometryWriter>(
123 tgCsvWriter->write(context);
127 if (vm[
"output-json"].as<bool>()) {
128 auto sJsonWriterConfig =
130 sJsonWriterConfig.trackingGeometry =
tGeometry;
132 sJsonWriterConfig.writePerEvent =
true;
133 auto sJsonWriter = std::make_shared<ActsExamples::JsonSurfacesWriter>(
137 sJsonWriter->write(context);
143 if (!materialFileName.empty() and vm[
"output-root"].template as<bool>()) {
146 rmwConfig.
filePath = materialFileName +
".root";
151 if (!materialFileName.empty() and (vm[
"output-json"].
template as<bool>() or
152 vm[
"output-cbor"].
template as<bool>())) {
156 vm[
"mat-output-sensitives"].template as<bool>();
158 vm[
"mat-output-approaches"].template as<bool>();
160 vm[
"mat-output-representing"].template as<bool>();
162 vm[
"mat-output-boundaries"].template as<bool>();
164 vm[
"mat-output-volumes"].template as<bool>();
166 vm[
"mat-output-dense-volumes"].template as<bool>();
168 vm[
"mat-output-allmaterial"].template as<bool>();
173 jmWriterCfg.
fileName = materialFileName;
175 if (vm[
"output-json"].
template as<bool>()) {
176 format = format | ActsExamples::JsonFormat::Json;
178 if (vm[
"output-cbor"].
template as<bool>()) {
179 format = format | ActsExamples::JsonFormat::Cbor;