161 auto const& triggerParams
162 = pset.get<fhicl::ParameterSet>(
"daq.fragment_receiver");
164 auto const& fpgaParams
165 = pset.get<fhicl::ParameterSet>(
"daq.fragment_receiver.fpga_init_params");
167 auto const& spexiParams
168 = pset.get<fhicl::ParameterSet>(
"daq.fragment_receiver.spexi_init_params");
174 = triggerParams.get<
bool>(
"use_wr_time");
176 = triggerParams.get<
unsigned int>(
"wr_time_offset_ns");
179 = fpgaParams.get<
unsigned int>(
"Veto.value");
182 = fpgaParams.get<
unsigned int>(
"MajLevelBeamCryo1.value");
184 = fpgaParams.get<
unsigned int>(
"MajLevelEnableCryo1.value");
186 =
parseWindowMode( fpgaParams.get<std::string>(
"SlidingWindowCryo1.value") );
188 = fpgaParams.get<
unsigned int>(
"MajLevelBeamCryo2.value");
190 = fpgaParams.get<
unsigned int>(
"MajLevelEnableCryo2.value");
192 =
parseWindowMode( fpgaParams.get<std::string>(
"SlidingWindowCryo2.value") );
193 rc.majorityTriggerType
194 = fpgaParams.get<std::string>(
"MajorityTriggerType.value");
196 = fpgaParams.get<std::string>(
"RunType.value");
199 = spexiParams.get<
unsigned int>(
"TPCTriggerDelay.value");
202 (std::stoul( spexiParams.get<std::string>(
"GateSelection.value"),
nullptr, 16));
205 auto prescaleMinBiasBeam =
206 spexiParams.get<std::string>(
"PreScaleBNBNuMI.value");
207 auto prescaleMinBiasOffBeam =
208 spexiParams.get<std::string>(
"PreScaleOffBeam.value");
209 auto offBeamGateRate =
210 spexiParams.get<std::string>(
"OffBeamGateRate.value");
211 auto prescaleMinBiasCalibration =
212 spexiParams.get<std::string>(
"PrescaleZeroBias.value");
224 = spexiParams.get<
unsigned int>(
"BNBBeamWidth.value");
226 = spexiParams.get<
unsigned int>(
"BNBEnableWidth.value");
230 = spexiParams.get<
unsigned int>(
"BNBBESOffset.value");
232 = spexiParams.get<
unsigned int>(
"BNB1DOffset.value");
244 = spexiParams.get<
unsigned int>(
"OffBeamBNBBeamWidth.value");
246 = spexiParams.get<
unsigned int>(
"OffBeamBNBEnableWidth.value");
262 = spexiParams.get<
unsigned int>(
"NuMIBeamWidth.value");
264 = spexiParams.get<
unsigned int>(
"NuMIEnableWidth.value");
268 = spexiParams.get<
unsigned int>(
"NuMIMIBSOffset.value");
270 = spexiParams.get<
unsigned int>(
"NuMIADOffset.value");
282 = spexiParams.get<
unsigned int>(
"OffBeamNuMIBeamWidth.value");
284 = spexiParams.get<
unsigned int>(
"OffBeamNuMIEnableWidth.value");
300 = spexiParams.get<
unsigned int>(
"ZeroBiasWidth.value");
302 = spexiParams.get<
unsigned int>(
"ZeroBiasEnableWidth.value");
306 = spexiParams.get<
unsigned int>(
"ZeroBiasFreq.value");
static constexpr std::size_t kOffBeamNuMI
static constexpr std::size_t kWest
Enabke MinBias triggers for the Offbeam BNB stream.
Enable MinBias triggers for the Calibration stream.
constexpr bool hasBitSet(mask_t< EnumType > bitMask, EnumType bit)
Returns whether the specified bit is set in bitMask.
Enable Offbeam drift gate NuMI (for light out-of-time in offbeam gates)
gateSelection
Enabled gates in the trigger configuration. See register 0X00050008 in docdb SBN-doc-23778-v1.
static constexpr std::size_t kBNB
Enable NuMI early warning signal (MIBS$74) to open NuMI gates.
Enable light out-of-time for MinBias triggers in NuMI stream.
Enable light out-of-time for MinBias triggers in BNB stream.
Enable light out-of-time for MinBias triggers in Offbeam NuMI stream.
static constexpr std::size_t kCalibration
Enable MinBias triggers for the Offbeam NuMI stream.
Enable Offbeam gate for BNB.
static constexpr std::size_t kNuMI
Enable Offbeam drift gate BNB (for light out-of-time in offbeam gates)
Enable MinBias triggers for the BNB stream.
Enable Calibration drift gate (for light out-of-time in calibration gates)
static constexpr std::size_t kOffBeamBNB
Enable Offbeam gate for NuMI.
Enable BNB early-early warning signal ($1D) for light out-of-time in BNB gates.
Enable receiving NuMI early-early warning signal ($AD) for light out-of-time in NuMI gates...
Enable MinBias triggers for the NuMI stream.
static constexpr std::size_t kEast
Enable receiving BNB early warning signal (gatedBES) to open BNB gates.
Enable light out-of-time for MinBias triggers in Calibration stream.
Enable light out-of-time for MinBias triggers in Offbeam BNB stream.