Jpp  17.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::livetime Struct Reference

Normalisation of MUPAGE events. More...

#include <JHead.hh>

Public Member Functions

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

Public Attributes

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

Detailed Description

Normalisation of MUPAGE events.

Definition at line 820 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 824 of file JHead.hh.

824  :
825  numberOfSeconds(0),
826  errorOfSeconds(0)
827  {}
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:882
double numberOfSeconds
Live time [s].
Definition: JHead.hh:881

Member Function Documentation

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

836  {
837  return numberOfSeconds < object.numberOfSeconds;
838  }
double numberOfSeconds
Live time [s].
Definition: JHead.hh:881
bool JAANET::livetime::match ( const livetime object) const
inline

Test match.

Parameters
objectlive time
Returns
true if matches; else false

Definition at line 846 of file JHead.hh.

847  {
848  return ((numberOfSeconds == 0.0 && object.numberOfSeconds == 0.0) ||
849  (numberOfSeconds > 0.0 && object.numberOfSeconds > 0.0));
850  }
double numberOfSeconds
Live time [s].
Definition: JHead.hh:881
livetime& JAANET::livetime::add ( const livetime object)
inline

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 858 of file JHead.hh.

859  {
860  numberOfSeconds += object.numberOfSeconds;
862  object.errorOfSeconds * object.errorOfSeconds);
863 
864  return *this;
865  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:882
double numberOfSeconds
Live time [s].
Definition: JHead.hh:881
livetime& JAANET::livetime::mul ( const double  factor)
inline

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 873 of file JHead.hh.

874  {
875  numberOfSeconds /= (factor * factor);
876  errorOfSeconds /= (factor * factor);
877 
878  return *this;
879  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:882
double numberOfSeconds
Live time [s].
Definition: JHead.hh:881
JAANET::livetime::ClassDefNV ( livetime  ,
 
)

Member Data Documentation

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 881 of file JHead.hh.

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 882 of file JHead.hh.


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