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