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

Normalisation of MUPAGE events. More...

#include <JHead.hh>

Public Member Functions

 livetime ()
 Default constructor.
 
bool less (const livetime &object) const
 Comparison.
 
bool match (const livetime &object) const
 Test match.
 
livetimeadd (const livetime &object)
 Addition.
 
livetimemul (const double factor)
 Scale.
 
 ClassDefNV (livetime, 1)
 

Public Attributes

double numberOfSeconds
 Live time [s].
 
double errorOfSeconds
 Uncertainty on live time [s].
 

Detailed Description

Normalisation of MUPAGE events.

Definition at line 835 of file JHead.hh.

Constructor & Destructor Documentation

◆ livetime()

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 839 of file JHead.hh.

839 :
842 {}
double numberOfSeconds
Live time [s].
Definition JHead.hh:896
double errorOfSeconds
Uncertainty on live time [s].
Definition JHead.hh:897

Member Function Documentation

◆ less()

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

Comparison.

Parameters
objectlivetime
Returns
true if this livetime is less than given livetime; else false

Definition at line 850 of file JHead.hh.

851 {
852 return numberOfSeconds < object.numberOfSeconds;
853 }

◆ match()

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

Test match.

Parameters
objectlive time
Returns
true if matches; else false

Definition at line 861 of file JHead.hh.

862 {
863 return ((numberOfSeconds == 0.0 && object.numberOfSeconds == 0.0) ||
864 (numberOfSeconds > 0.0 && object.numberOfSeconds > 0.0));
865 }

◆ add()

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

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 873 of file JHead.hh.

874 {
875 numberOfSeconds += object.numberOfSeconds;
877 object.errorOfSeconds * object.errorOfSeconds);
878
879 return *this;
880 }

◆ mul()

livetime & JAANET::livetime::mul ( const double factor)
inline

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 888 of file JHead.hh.

889 {
890 numberOfSeconds /= (factor * factor);
891 errorOfSeconds /= (factor * factor);
892
893 return *this;
894 }

◆ ClassDefNV()

JAANET::livetime::ClassDefNV ( livetime ,
1  )

Member Data Documentation

◆ numberOfSeconds

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 896 of file JHead.hh.

◆ errorOfSeconds

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 897 of file JHead.hh.


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