All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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) {
13  throw std::invalid_argument("\n\nCannot access bit higher than 32!\n");
14  }
15 
16  return ( (fTriggerBits >> bit) & 0x1);
17 
18  }
19 
20 }
bool Triggered(const unsigned char bit) const
Accessor to specific bit.
Definition: TriggerData.cxx:8