@@ -1741,6 +1741,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
17411741 caf::SRSBNDCRTVeto srsbndcrtveto;
17421742 caf::SRSBNDFrameShiftInfo srsbndframeshiftinfo;
17431743 caf::SRSBNDTimingInfo srsbndtiminginfo;
1744+ caf::SRSoftwareTrigger srsbndsofttrig;
17441745
17451746 // Mapping of (feb, channel) to truth information (AuxDetSimChannel) -- filled for ICARUS
17461747 std::map<std::pair<int , int >, sim::AuxDetSimChannel> crtsimchanmap;
@@ -1843,6 +1844,15 @@ void CAFMaker::produce(art::Event& evt) noexcept {
18431844 sbnd::timing::TimingInfo const & sbndtiminginfo (*sbndtiminginfo_handle);
18441845 FillSBNDTimingInfo (sbndtiminginfo, srsbndtiminginfo);
18451846 }
1847+
1848+ art::Handle<std::vector<sbnd::trigger::pmtSoftwareTrigger>> sbndsofttrig_handle;
1849+ GetByLabelStrict (evt, fParams .SBNDSoftwareTriggerLabel (), sbndsofttrig_handle);
1850+ if (sbndsofttrig_handle.isValid ()){
1851+ const std::vector<sbnd::trigger::pmtSoftwareTrigger> &sbndsofttrig = *sbndsofttrig_handle;
1852+ if (sbndsofttrig.size ()==1 ){
1853+ FillSoftwareTriggerSBND (sbndsofttrig.at (0 ), srsbndsofttrig);
1854+ }
1855+ }
18461856 }
18471857
18481858 // Get all of the CRTPMT Matches
@@ -2590,6 +2600,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
25902600 rec.nopflashes = srflashes.size ();
25912601 rec.sbnd_frames = srsbndframeshiftinfo;
25922602 rec.sbnd_timings = srsbndtiminginfo;
2603+ rec.soft_trig = srsbndsofttrig;
25932604
25942605 if (fParams .FillTrueParticles ()) {
25952606 rec.true_particles = true_particles;
0 commit comments