@@ -181,7 +181,7 @@ void sbnd::trigger::pmtSoftwareTriggerProducer::reconfigure(fhicl::ParameterSet
181181 fStreamType = p.get <uint8_t >(" StreamType" , 1 );
182182 // SPEC TDC ETT (or PTB gate HLT) [0] -> NTB (RawEventHeader) [1]
183183 fTimingType = p.get <uint8_t >(" TimingType" , 0 );
184- fAllowNTB = p.get <bool >(" AllowNTB" , true );
184+ fAllowNTB = p.get <bool >(" AllowNTB" , false );
185185 fNTBDelay = p.get <uint32_t >(" NTBDelay" , 365000 ); // units of ns
186186
187187 fSPECTDCModuleLabel = p.get <std::string>(" SPECTDCModuleLabel" , " daq" );
@@ -203,7 +203,7 @@ void sbnd::trigger::pmtSoftwareTriggerProducer::reconfigure(fhicl::ParameterSet
203203
204204 // most likely these will all be off...
205205 fIncludeExtensions = p.get <bool >(" IncludeExtensions" ,false );
206- fCalculateBaseline = p.get <bool >(" CalculateBaseline" ,false );
206+ fCalculateBaseline = p.get <bool >(" CalculateBaseline" ,true );
207207 fCountPMTs = p.get <bool >(" CountPMTs" ,false );
208208 fCalculatePEMetrics = p.get <bool >(" CalculatePEMetrics" ,false );
209209 fInputBaseline = p.get <std::vector<float >>(" InputBaseline" ,{14250 ,2.0 });
@@ -245,6 +245,8 @@ void sbnd::trigger::pmtSoftwareTriggerProducer::produce(art::Event& e)
245245 for (const std::string &PTBInstanceLabel : fPTBInstanceLabels ){
246246 art::Handle<std::vector<artdaq::Fragment>> ptbHandle;
247247 e.getByLabel (fPTBModuleLabel , PTBInstanceLabel, ptbHandle);
248+ if (!ptbHandle.isValid () || ptbHandle->size () == 0 )
249+ continue ;
248250 foundgate = getGateTime (ptbHandle, gateTime);
249251 }
250252 }
0 commit comments