Skip to content

Commit

Permalink
fix scintillator velocity fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Jul 29, 2024
1 parent ee79869 commit 521d6a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RMGScintillatorOutputScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ void RMGScintillatorOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man)
ana_man->CreateNtupleDColumn(id, "xloc_post_in_m");
ana_man->CreateNtupleDColumn(id, "yloc_post_in_m");
ana_man->CreateNtupleDColumn(id, "zloc_post_in_m");
ana_man->CreateNtupleDColumn(id, "beta_pre");
ana_man->CreateNtupleDColumn(id, "beta_post");
ana_man->CreateNtupleDColumn(id, "v_pre_in_m\\ns");
ana_man->CreateNtupleDColumn(id, "v_post_in_m\\ns");

ana_man->FinishNtuple(id);
}
Expand Down Expand Up @@ -157,8 +157,8 @@ void RMGScintillatorOutputScheme::StoreEvent(const G4Event* event) {
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->global_position_post.getX() / u::m);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->global_position_post.getY() / u::m);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->global_position_post.getZ() / u::m);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->velocity_pre);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->velocity_post);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->velocity_pre / u::m * u::ns);
ana_man->FillNtupleDColumn(ntupleid, col_id++, hit->velocity_post / u::m * u::ns);

// NOTE: must be called here for hit-oriented output
ana_man->AddNtupleRow(ntupleid);
Expand Down

0 comments on commit 521d6a8

Please sign in to comment.