Skip to content

Commit

Permalink
output: add units to ntuple column names
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Jul 23, 2024
1 parent 00258f2 commit 47222f2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions src/RMGGermaniumOutputScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ void RMGGermaniumOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man) {
ana_man->CreateNtupleIColumn(id, "evtid");
if (!fNtuplePerDetector) { ana_man->CreateNtupleIColumn(id, "det_uid"); }
ana_man->CreateNtupleIColumn(id, "particle");
ana_man->CreateNtupleDColumn(id, "edep");
ana_man->CreateNtupleDColumn(id, "time");
ana_man->CreateNtupleDColumn(id, "xloc");
ana_man->CreateNtupleDColumn(id, "yloc");
ana_man->CreateNtupleDColumn(id, "zloc");
ana_man->CreateNtupleDColumn(id, "edep_in_keV");
ana_man->CreateNtupleDColumn(id, "time_in_ns");
ana_man->CreateNtupleDColumn(id, "xloc_in_m");
ana_man->CreateNtupleDColumn(id, "yloc_in_m");
ana_man->CreateNtupleDColumn(id, "zloc_in_m");

ana_man->FinishNtuple(id);
}
Expand Down
4 changes: 2 additions & 2 deletions src/RMGOpticalOutputScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ void RMGOpticalOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man) {

ana_man->CreateNtupleIColumn(id, "evtid");
if (!fNtuplePerDetector) { ana_man->CreateNtupleIColumn(id, "det_uid"); }
ana_man->CreateNtupleDColumn(id, "wavelength");
ana_man->CreateNtupleDColumn(id, "time");
ana_man->CreateNtupleDColumn(id, "wavelength_in_nm");
ana_man->CreateNtupleDColumn(id, "time_in_ns");

ana_man->FinishNtuple(id);
}
Expand Down
16 changes: 8 additions & 8 deletions src/RMGScintillatorOutputScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ void RMGScintillatorOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man)
ana_man->CreateNtupleIColumn(id, "evtid");
if (!fNtuplePerDetector) { ana_man->CreateNtupleIColumn(id, "det_uid"); }
ana_man->CreateNtupleIColumn(id, "particle");
ana_man->CreateNtupleDColumn(id, "edep");
ana_man->CreateNtupleDColumn(id, "time");
ana_man->CreateNtupleDColumn(id, "xloc_pre");
ana_man->CreateNtupleDColumn(id, "yloc_pre");
ana_man->CreateNtupleDColumn(id, "zloc_pre");
ana_man->CreateNtupleDColumn(id, "xloc_post");
ana_man->CreateNtupleDColumn(id, "yloc_post");
ana_man->CreateNtupleDColumn(id, "zloc_post");
ana_man->CreateNtupleDColumn(id, "edep_in_keV");
ana_man->CreateNtupleDColumn(id, "time_in_ns");
ana_man->CreateNtupleDColumn(id, "xloc_pre_in_m");
ana_man->CreateNtupleDColumn(id, "yloc_pre_in_m");
ana_man->CreateNtupleDColumn(id, "zloc_pre_in_m");
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, "v_pre");
ana_man->CreateNtupleDColumn(id, "v_post");

Expand Down
16 changes: 8 additions & 8 deletions src/RMGVertexOutputScheme.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ void RMGVertexOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man) {
ana_man->CreateNtuple("vertices", "Primary vertex data"));

ana_man->CreateNtupleIColumn(vid, "evtid");
ana_man->CreateNtupleDColumn(vid, "time");
ana_man->CreateNtupleDColumn(vid, "xloc");
ana_man->CreateNtupleDColumn(vid, "yloc");
ana_man->CreateNtupleDColumn(vid, "zloc");
ana_man->CreateNtupleDColumn(vid, "time_in_ns");
ana_man->CreateNtupleDColumn(vid, "xloc_in_m");
ana_man->CreateNtupleDColumn(vid, "yloc_in_m");
ana_man->CreateNtupleDColumn(vid, "zloc_in_m");
ana_man->CreateNtupleIColumn(vid, "n_part");

ana_man->FinishNtuple(vid);
Expand All @@ -48,10 +48,10 @@ void RMGVertexOutputScheme::AssignOutputNames(G4AnalysisManager* ana_man) {
ana_man->CreateNtupleIColumn(pid, "evtid");
ana_man->CreateNtupleIColumn(pid, "vertexid");
ana_man->CreateNtupleIColumn(pid, "particle");
ana_man->CreateNtupleDColumn(pid, "px");
ana_man->CreateNtupleDColumn(pid, "py");
ana_man->CreateNtupleDColumn(pid, "pz");
ana_man->CreateNtupleDColumn(pid, "ekin");
ana_man->CreateNtupleDColumn(pid, "px_in_MeV");
ana_man->CreateNtupleDColumn(pid, "py_in_MeV");
ana_man->CreateNtupleDColumn(pid, "pz_in_MeV");
ana_man->CreateNtupleDColumn(pid, "ekin_in_MeV");

ana_man->FinishNtuple(pid);
}
Expand Down

0 comments on commit 47222f2

Please sign in to comment.