@@ -1715,6 +1715,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
17151715 std::vector<caf::SRSBNDCRTTrack> srsbndcrttracks;
17161716 caf::SRSBNDFrameShiftInfo srsbndframeshiftinfo;
17171717 caf::SRSBNDTimingInfo srsbndtiminginfo;
1718+ caf::SRSoftwareTrigger srsbndsofttrig;
17181719
17191720 // Mapping of (feb, channel) to truth information (AuxDetSimChannel) -- filled for ICARUS
17201721 std::map<std::pair<int , int >, sim::AuxDetSimChannel> crtsimchanmap;
@@ -1799,6 +1800,15 @@ void CAFMaker::produce(art::Event& evt) noexcept {
17991800 sbnd::timing::TimingInfo const & sbndtiminginfo (*sbndtiminginfo_handle);
18001801 FillSBNDTimingInfo (sbndtiminginfo, srsbndtiminginfo);
18011802 }
1803+
1804+ art::Handle<std::vector<sbnd::trigger::pmtSoftwareTrigger>> sbndsofttrig_handle;
1805+ GetByLabelStrict (evt, fParams .SBNDSoftwareTriggerLabel (), sbndsofttrig_handle);
1806+ if (sbndsofttrig_handle.isValid ()){
1807+ const std::vector<sbnd::trigger::pmtSoftwareTrigger> &sbndsofttrig = *sbndsofttrig_handle;
1808+ if (sbndsofttrig.size ()==1 ){
1809+ FillSoftwareTrigger (sbndsofttrig.at (0 ), srsbndsofttrig);
1810+ }
1811+ }
18021812 }
18031813
18041814 // Get all of the CRTPMT Matches
@@ -2545,6 +2555,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
25452555 rec.nopflashes = srflashes.size ();
25462556 rec.sbnd_frames = srsbndframeshiftinfo;
25472557 rec.sbnd_timings = srsbndtiminginfo;
2558+ rec.soft_trig = srsbndsofttrig;
25482559
25492560 if (fParams .FillTrueParticles ()) {
25502561 rec.true_particles = true_particles;
0 commit comments