Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::DAQ Struct Reference

Livetime of DAQ data. More...

#include <JHead.hh>

Public Member Functions

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

Public Attributes

double livetime_s
 Live time [s].
 

Detailed Description

Livetime of DAQ data.

Definition at line 1008 of file JHead.hh.

Constructor & Destructor Documentation

◆ DAQ()

JAANET::DAQ::DAQ ( )
inline

Default constructor.

Definition at line 1013 of file JHead.hh.

1013 :
1014 livetime_s(0.0)
1015 {}
double livetime_s
Live time [s].
Definition JHead.hh:1053

Member Function Documentation

◆ less()

bool JAANET::DAQ::less ( const DAQ & object) const
inline

Comparison.

Parameters
objectDAQ
Returns
true if this DAQ is less than given DAQ; else false

Definition at line 1023 of file JHead.hh.

1024 {
1025 return livetime_s < object.livetime_s;
1026 }

◆ match()

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

Test match.

Parameters
objectDAQ
Returns
true if matches; else false

Definition at line 1034 of file JHead.hh.

1035 {
1036 return ((livetime_s == 0.0 && object.livetime_s == 0.0) ||
1037 (livetime_s > 0.0 && object.livetime_s > 0.0));
1038 }

◆ add()

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

Addition.

Parameters
objectDAQ
Returns
this DAQ

Definition at line 1046 of file JHead.hh.

1047 {
1048 livetime_s += object.livetime_s;
1049
1050 return *this;
1051 }

◆ ClassDefNV()

JAANET::DAQ::ClassDefNV ( DAQ ,
1  )

Member Data Documentation

◆ livetime_s

double JAANET::DAQ::livetime_s

Live time [s].

Definition at line 1053 of file JHead.hh.


The documentation for this struct was generated from the following file: