Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JAANET::K40 Struct Reference

Livetime of noise data. More...

#include <JHead.hh>

Public Member Functions

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

Public Attributes

double livetime_s
 Live time [s].
 

Detailed Description

Livetime of noise data.

Definition at line 1062 of file JHead.hh.

Constructor & Destructor Documentation

◆ K40()

JAANET::K40::K40 ( )
inline

Default constructor.

Definition at line 1067 of file JHead.hh.

1067 :
1068 livetime_s(0.0)
1069 {}
double livetime_s
Live time [s].
Definition JHead.hh:1107

Member Function Documentation

◆ less()

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

Comparison.

Parameters
objectK40
Returns
true if this K40 is less than given K40; else false

Definition at line 1077 of file JHead.hh.

1078 {
1079 return livetime_s < object.livetime_s;
1080 }

◆ match()

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

Test match.

Parameters
objectK40
Returns
true if matches; else false

Definition at line 1088 of file JHead.hh.

1089 {
1090 return ((livetime_s == 0.0 && object.livetime_s == 0.0) ||
1091 (livetime_s > 0.0 && object.livetime_s > 0.0));
1092 }

◆ add()

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

Addition.

Parameters
objectK40
Returns
this K40

Definition at line 1100 of file JHead.hh.

1101 {
1102 livetime_s += object.livetime_s;
1103
1104 return *this;
1105 }

◆ ClassDefNV()

JAANET::K40::ClassDefNV ( K40 ,
1  )

Member Data Documentation

◆ livetime_s

double JAANET::K40::livetime_s

Live time [s].

Definition at line 1107 of file JHead.hh.


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