Skip to content

Commit c09be65

Browse files
committed
update to recent daq config
1 parent 7c39515 commit c09be65

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

sbndcode/Trigger/PMT/PMTMetricProducer_module.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

sbndcode/Trigger/PMT/metric_fcls/pmtmetricproducer.fcl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ BEGIN_PROLOG
22

33
pmtmetricproducer: {
44
module_type: "PMTMetricProducer"
5-
CAENInstanceLabels: ["ContainerCAENV1730" ]
6-
7-
FragIDs: [40960,40961,40962,40963,40964,40965,40966,40967]
8-
FlashThreshold: 1
9-
CalculateBaseline: true
10-
MetricInstanceLabel: "offline"
11-
IncludeExtensions: true
12-
AllowNTB: false
5+
is_persistable: true
6+
IncludeExtensions: true
7+
Verbose: 1
8+
StreamType: 1
139
}
1410
END_PROLOG

0 commit comments

Comments
 (0)