Jpp
Public Member Functions | Public Attributes | List of all members
JAANET::DAQ Struct Reference

Livetime of DAQ data. More...

#include <JHead.hh>

Public Member Functions

 DAQ ()
 Default constructor. More...
 
bool match (const DAQ &object) const
 Test match. More...
 
DAQadd (const DAQ &object)
 Addition. More...
 
 ClassDefNV (DAQ, 1)
 

Public Attributes

double livetime_s
 Live time [s]. More...
 

Detailed Description

Livetime of DAQ data.

Definition at line 706 of file JHead.hh.

Constructor & Destructor Documentation

◆ DAQ()

JAANET::DAQ::DAQ ( )
inline

Default constructor.

Definition at line 711 of file JHead.hh.

711  :
712  livetime_s(0.0)
713  {}

Member Function Documentation

◆ match()

bool JAANET::DAQ::match ( const DAQ object) const
inline

Test match.

Parameters
objectDAQ
Returns
true if matches; else false

Definition at line 721 of file JHead.hh.

722  {
723  return ((livetime_s == 0.0 && object.livetime_s == 0.0) ||
724  (livetime_s > 0.0 && object.livetime_s > 0.0));
725  }

◆ add()

DAQ& JAANET::DAQ::add ( const DAQ object)
inline

Addition.

Parameters
objectDAQ
Returns
this DAQ

Definition at line 733 of file JHead.hh.

734  {
735  livetime_s += object.livetime_s;
736 
737  return *this;
738  }

◆ ClassDefNV()

JAANET::DAQ::ClassDefNV ( DAQ  ,
 
)

Member Data Documentation

◆ livetime_s

double JAANET::DAQ::livetime_s

Live time [s].

Definition at line 740 of file JHead.hh.


The documentation for this struct was generated from the following file:
JAANET::DAQ::livetime_s
double livetime_s
Live time [s].
Definition: JHead.hh:740