Definitions of the trigger bits for SBN. More...
#include <stdexcept>
#include <string>
#include <vector>
#include <initializer_list>
#include <type_traits>
Go to the source code of this file.
Classes | |
struct | sbn::bits::mask_t< EnumType > |
Namespaces | |
sbn | |
This module creates Common Analysis Files. | |
sbn::bits | |
Simple utilities to deal with bit enumerators. | |
icarus::trigger | |
Typedefs | |
using | icarus::trigger::triggerLocation = sbn::triggerLocation |
using | icarus::trigger::triggerSource = sbn::triggerSource |
Functions | |
Generic bit functions | |
template<typename EnumType > | |
mask_t< EnumType > | sbn::bits::makeMask (typename mask_t< EnumType >::maskbits_t bits) noexcept |
Converts a integral type into a mask. More... | |
template<typename EnumType > | |
constexpr auto | sbn::bits::value (EnumType bit) |
Returns the value of specified bit (conversion like enum to int ). More... | |
template<typename EnumType , typename... OtherBits> | |
constexpr mask_t< EnumType > | sbn::bits::mask (EnumType bit, OtherBits...otherBits) |
Returns a mask with all specified bits set. More... | |
template<typename EnumType > | |
constexpr bool | sbn::bits::hasBitSet (mask_t< EnumType > bitMask, EnumType bit) |
Returns whether the specified bit is set in bitMask . More... | |
template<typename EnumType > | |
std::string | sbn::bits::name (EnumType bit) |
Returns the name of the specified bit . Delegates to bitName() . More... | |
template<typename EnumType > | |
std::vector< std::string > | sbn::bits::names (mask_t< EnumType > mask) |
Variables | |
static constexpr std::size_t | icarus::trigger::kEast = sbn::bits::value<triggerLocation>(triggerLocation::CryoEast) |
static constexpr std::size_t | icarus::trigger::kWest = sbn::bits::value<triggerLocation>(triggerLocation::CryoWest) |
static constexpr std::size_t | icarus::trigger::kNTriggerLocation = sbn::bits::value<triggerLocation>(triggerLocation::NBits) |
static constexpr std::size_t | icarus::trigger::kBNB = sbn::bits::value<triggerSource>(triggerSource::BNB) |
static constexpr std::size_t | icarus::trigger::kNuMI = sbn::bits::value<triggerSource>(triggerSource::NuMI) |
static constexpr std::size_t | icarus::trigger::kOffBeamBNB = sbn::bits::value<triggerSource>(triggerSource::OffbeamBNB) |
static constexpr std::size_t | icarus::trigger::kOffBeamNuMI = sbn::bits::value<triggerSource>(triggerSource::OffbeamNuMI) |
static constexpr std::size_t | icarus::trigger::kCalibration = sbn::bits::value<triggerSource>(triggerSource::Calib) |
static constexpr std::size_t | icarus::trigger::kNTriggerSource = sbn::bits::value<triggerSource>(triggerSource::NBits) |
Definitions of the trigger bits for SBN.
This is a header-only library.
sbnobj/Common/Trigger
in sbnobj
) Definition in file BeamBits.h.