LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
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 12 of file TriggerData.h.

Constructor & Destructor Documentation

raw::Trigger::Trigger ( )
inline

Default ctor.

Definition at line 17 of file TriggerData.h.

References fBeamGateTime, fTriggerBits, fTriggerNumber, fTriggerTime, and max.

18  {
20 
23 
24  fTriggerBits = 0x0;
25  }
Int_t max
Definition: plot.C:27
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:32
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:30
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:29
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:31
raw::Trigger::Trigger ( unsigned int  counter,
double  trigger_time,
double  beamgate_time,
uint32_t  bits 
)
inline

Alternative constructor.

Definition at line 38 of file TriggerData.h.

42  : fTriggerNumber ( counter ),
43  fTriggerTime ( trigger_time ),
44  fBeamGateTime ( beamgate_time ),
45  fTriggerBits ( bits )
46  {}
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:32
double fTriggerTime
Trigger time w.r.t. electronics clock T0.
Definition: TriggerData.h:30
unsigned int fTriggerNumber
Trigger counter.
Definition: TriggerData.h:29
double fBeamGateTime
BeamGate time w.r.t. electronics clock T0.
Definition: TriggerData.h:31

Member Function Documentation

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

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

Definition at line 53 of file TriggerData.h.

References fBeamGateTime.

Referenced by detinfo::setDetectorClocksStandardTriggersFromRawTrigger().

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

Trigger Bits.

Definition at line 55 of file TriggerData.h.

References fTriggerBits, and Triggered().

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

Accessor to specific bit.

Definition at line 9 of file TriggerData.cxx.

References x1.

Referenced by TriggerBits().

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  }
Float_t x1[n_points_granero]
Definition: compare.C:5
unsigned int fTriggerBits
Trigger bits ... dedicated bit-by-bit function available.
Definition: TriggerData.h:32
unsigned int raw::Trigger::TriggerNumber ( ) const
inline

Trigger number.

Definition at line 49 of file TriggerData.h.

References fTriggerNumber.

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

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

Definition at line 51 of file TriggerData.h.

References fTriggerTime.

Referenced by detinfo::setDetectorClocksStandardTriggersFromRawTrigger().

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

Member Data Documentation

double raw::Trigger::fBeamGateTime
private

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

Definition at line 31 of file TriggerData.h.

Referenced by BeamGateTime(), and Trigger().

unsigned int raw::Trigger::fTriggerBits
private

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

Definition at line 32 of file TriggerData.h.

Referenced by Trigger(), and TriggerBits().

unsigned int raw::Trigger::fTriggerNumber
private

Trigger counter.

Definition at line 29 of file TriggerData.h.

Referenced by Trigger(), and TriggerNumber().

double raw::Trigger::fTriggerTime
private

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

Definition at line 30 of file TriggerData.h.

Referenced by Trigger(), and TriggerTime().


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