Trigger.cxx
Go to the documentation of this file.
1 #ifndef TRIGGERDATA_CXX
2 #define TRIGGERDATA_CXX
3 
5 
6 namespace gar {
7 namespace raw {
8 
9  //****************************************************
10  bool Trigger::Triggered(const unsigned char bit) const
11  {
12 
13  if(bit>32) {
14  throw std::invalid_argument("\n\nCannot access bit higher than 32!\n");
15  }
16 
17  return ( (fTriggerBits >> bit) & 0x1);
18 
19  }
20 
21 }
22 } // gar
23 #endif
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: Trigger.h:33
Raw data description.
bool Triggered(const unsigned char bit) const
Accessor to specific bit.
Definition: Trigger.cxx:10
General GArSoft Utilities.