From 1e38ff94abb6b623679f67157335f186bdff29fe Mon Sep 17 00:00:00 2001 From: Remy Prechelt <prechelt@hawaii.edu> Date: Tue, 30 Mar 2021 22:59:41 -1000 Subject: [PATCH] Add TrackWriter to vertical_EAS example. --- examples/vertical_EAS.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/vertical_EAS.cpp b/examples/vertical_EAS.cpp index 5816e43bb..02c4b275a 100644 --- a/examples/vertical_EAS.cpp +++ b/examples/vertical_EAS.cpp @@ -223,22 +223,24 @@ int main(int argc, char** argv) { decaySibyll.printDecayConfig(); + // create the output manager that we then register outputs with + OutputManager output("vertical_EAS_outputs"); + ParticleCut cut{60_GeV, 60_GeV, 60_GeV, 60_GeV, true}; corsika::proposal::Interaction proposal(env); corsika::proposal::ContinuousProcess em_continuous(env); InteractionCounter proposalCounted(proposal); OnShellCheck reset_particle_mass(1.e-3, 1.e-1, false); - TrackWriter trackWriter("tracks.dat"); + + TrackWriter trackWriter; + output.add("tracks", trackWriter); // register TrackWriter LongitudinalProfile longprof{showerAxis}; Plane const obsPlane(showerCore, DirectionVector(rootCS, {0., 0., 1.})); ObservationPlane observationLevel(obsPlane, DirectionVector(rootCS, {1., 0., 0.})); - // create the output manager that we then register outputs with - OutputManager output("vertical_EAS_outputs"); - // register the observation plane with the output output.add("obsplane", observationLevel); -- GitLab