Skip to content

Commit

Permalink
Merge pull request #84 from DUNE/feature/meta_triggertime
Browse files Browse the repository at this point in the history
Feature/meta triggertime
  • Loading branch information
noeroy authored Sep 9, 2024
2 parents da557d4 + 601eb2f commit 610e41b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/reco/MINERvARecoBranchFiller.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ namespace cafmaker
sr.meta.minerva.run = ev_run;
sr.meta.minerva.subrun = ev_sub_run;
sr.meta.minerva.event = ev_gate;

sr.meta.minerva.readoutstart_s = trigger.triggerTime_s;
sr.meta.minerva.readoutstart_ns = trigger.triggerTime_ns;

FillInteractions(truthMatch, sr);

Expand Down
11 changes: 7 additions & 4 deletions src/reco/MLNDLArRecoBranchFiller.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,16 @@ namespace cafmaker

//Fill ND-LAr specific info in the meta branch
H5DataView<cafmaker::types::dlp::RunInfo> run_info = fDSReader.GetProducts<cafmaker::types::dlp::RunInfo>(idx);
sr.meta.nd_lar.enabled = true;
sr.meta.lar2x2.enabled = true;
for (const auto & runinf : run_info)
{
sr.meta.nd_lar.run = runinf.run;
sr.meta.nd_lar.subrun = runinf.subrun;
sr.meta.nd_lar.event = runinf.event;
sr.meta.lar2x2.run = runinf.run;
sr.meta.lar2x2.subrun = runinf.subrun;
sr.meta.lar2x2.event = runinf.event;
}

sr.meta.lar2x2.readoutstart_s = trigger.triggerTime_s;
sr.meta.lar2x2.readoutstart_ns = trigger.triggerTime_ns;

H5DataView<cafmaker::types::dlp::Interaction> interactions = fDSReader.GetProducts<cafmaker::types::dlp::Interaction>(idx);
H5DataView<cafmaker::types::dlp::TrueInteraction> trueInteractions = fDSReader.GetProducts<cafmaker::types::dlp::TrueInteraction>(idx);
Expand Down

0 comments on commit 610e41b

Please sign in to comment.