LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
TriggerData.cxx
Go to the documentation of this file.
1 #include "TriggerData.h"
2 
3 #include <stdexcept>
4 
5 namespace raw {
6 
7  //****************************************************
8  bool Trigger::Triggered(const unsigned char bit) const
9  //****************************************************
10  {
11 
12  if (bit > 32) { throw std::invalid_argument("\n\nCannot access bit higher than 32!\n"); }
13 
14  return ((fTriggerBits >> bit) & 0x1);
15  }
16 
17 }
Float_t x1[n_points_granero]
Definition: compare.C:5
bool Triggered(const unsigned char bit) const
Accessor to specific bit.
Definition: TriggerData.cxx:8
Raw data description.
Definition: RawTypes.h:6