Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JAANET::K40 Struct Reference

Livetime of noise data. More...

#include <JHead.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

Livetime of noise data.

Definition at line 1049 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::K40::K40 ( )
inline

Default constructor.

Definition at line 1054 of file JHead.hh.

1054  :
1055  livetime_s(0.0)
1056  {}
double livetime_s
Live time [s].
Definition: JHead.hh:1094

Member Function Documentation

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 1064 of file JHead.hh.

1065  {
1066  return livetime_s < object.livetime_s;
1067  }
double livetime_s
Live time [s].
Definition: JHead.hh:1094
bool JAANET::K40::match ( const K40 object) const
inline

Test match.

Parameters
objectK40
Returns
true if matches; else false

Definition at line 1075 of file JHead.hh.

1076  {
1077  return ((livetime_s == 0.0 && object.livetime_s == 0.0) ||
1078  (livetime_s > 0.0 && object.livetime_s > 0.0));
1079  }
double livetime_s
Live time [s].
Definition: JHead.hh:1094
K40& JAANET::K40::add ( const K40 object)
inline

Addition.

Parameters
objectK40
Returns
this K40

Definition at line 1087 of file JHead.hh.

1088  {
1089  livetime_s += object.livetime_s;
1090 
1091  return *this;
1092  }
double livetime_s
Live time [s].
Definition: JHead.hh:1094
JAANET::K40::ClassDefNV ( K40  ,
 
)

Member Data Documentation

double JAANET::K40::livetime_s

Live time [s].

Definition at line 1094 of file JHead.hh.


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