10 #ifndef SBNOBJ_COMMON_TRIGGER_EXTRATRIGGERINFO_H
11 #define SBNOBJ_COMMON_TRIGGER_EXTRATRIGGERINFO_H
25 namespace sbn {
struct ExtraTriggerInfo; }
48 static constexpr
unsigned int NoID = std::numeric_limits<unsigned int>::max();
52 = std::numeric_limits<std::uint64_t>::max();
56 = std::numeric_limits<std::int64_t>::max();
122 { sbn::triggerSource::Unknown };
224 constexpr
bool hasLVDS()
const;
258 {
return sourceType != sbn::triggerSource::NBits; }
262 static constexpr
bool isValidID(
unsigned int ID) noexcept
263 {
return ID !=
NoID; }
271 {
return count != 0U; }
278 std::ostream&
operator<< (std::ostream& out, ExtraTriggerInfo
const&
info);
286 for (std::uint64_t bits:
LVDSstatus)
if (bits)
return true;
293 #endif // SBNOBJ_COMMON_TRIGGER_EXTRATRIGGERINFO_H
Definitions of the trigger bits for SBN.
std::ostream & operator<<(std::ostream &out, sbn::PMTconfiguration const &config)
Prints the configuration into a stream with default verbosity.
triggerType
Type representing the type(s) of this trigger.
triggerSource
Type of beam or beam gate or other trigger source.
std::size_t count(Cont const &cont)