All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
raw::Trigger Class Reference

#include <TriggerData.h>

Public Member Functions

 Trigger ()
 Default ctor. More...
 
 Trigger (unsigned int counter, double trigger_time, double beamgate_time, uint32_t bits)
 Alternative constructor. More...
 
unsigned int TriggerNumber () const
 Trigger number. More...
 
double TriggerTime () const
 Trigger time w.r.t. electronics clock T0 in us. More...
 
double BeamGateTime () const
 BeamGate time w.r.t. electronics clock T0 in us. More...
 
unsigned int TriggerBits () const
 Trigger Bits. More...
 
bool Triggered (const unsigned char bit) const
 Accessor to specific bit. More...
 

Private Attributes

unsigned int fTriggerNumber
 Trigger counter. More...
 
double fTriggerTime
 Trigger time w.r.t. electronics clock T0. More...
 
double fBeamGateTime
 BeamGate time w.r.t. electronics clock T0. More...
 
unsigned int fTriggerBits
 Trigger bits ... dedicated bit-by-bit function available. More...
 

Detailed Description

Definition at line 11 of file TriggerData.h.

Constructor & Destructor Documentation

raw::Trigger::Trigger ( )
inline

Default ctor.

Definition at line 16 of file TriggerData.h.

17  {
18  fTriggerNumber = std::numeric_limits<unsigned int>::max();
19 
20  fTriggerTime = std::numeric_limits<double>::max();
21  fBeamGateTime = std::numeric_limits<double>::max();
22 
23  fTriggerBits = 0x0;
24  }
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:31
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:29
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:28
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:30
raw::Trigger::Trigger ( unsigned int  counter,
double  trigger_time,
double  beamgate_time,
uint32_t  bits 
)
inline

Alternative constructor.

Definition at line 37 of file TriggerData.h.

41  : fTriggerNumber ( counter ),
43  fBeamGateTime ( beamgate_time ),
44  fTriggerBits ( bits )
45  {}
timescale_traits< TriggerTimeCategory >::time_point_t trigger_time
A point in time on the trigger time scale.
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:31
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
Definition: counter.h:285
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:29
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:28
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:30

Member Function Documentation

double raw::Trigger::BeamGateTime ( ) const
inline

BeamGate time w.r.t. electronics clock T0 in us.

Definition at line 52 of file TriggerData.h.

52 { return fBeamGateTime; }
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:30
unsigned int raw::Trigger::TriggerBits ( ) const
inline

Trigger Bits.

Definition at line 54 of file TriggerData.h.

54 { return fTriggerBits; }
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:31
bool raw::Trigger::Triggered ( const unsigned char  bit) const

Accessor to specific bit.

Definition at line 8 of file TriggerData.cxx.

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  }
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:31
unsigned int raw::Trigger::TriggerNumber ( ) const
inline

Trigger number.

Definition at line 48 of file TriggerData.h.

48 { return fTriggerNumber; }
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:28
double raw::Trigger::TriggerTime ( ) const
inline

Trigger time w.r.t. electronics clock T0 in us.

Definition at line 50 of file TriggerData.h.

50 { return fTriggerTime; }
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:29

Member Data Documentation

double raw::Trigger::fBeamGateTime
private

BeamGate time w.r.t. electronics clock T0.

Definition at line 30 of file TriggerData.h.

unsigned int raw::Trigger::fTriggerBits
private

Trigger bits ... dedicated bit-by-bit function available.

Definition at line 31 of file TriggerData.h.

unsigned int raw::Trigger::fTriggerNumber
private

Trigger counter.

Definition at line 28 of file TriggerData.h.

double raw::Trigger::fTriggerTime
private

Trigger time w.r.t. electronics clock T0.

Definition at line 29 of file TriggerData.h.


The documentation for this class was generated from the following files: