Jpp  18.1.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 822 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 826 of file JHead.hh.

826  :
827  numberOfSeconds(0),
828  errorOfSeconds(0)
829  {}
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:884
double numberOfSeconds
Live time [s].
Definition: JHead.hh:883

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

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

Test match.

Parameters
objectlive time
Returns
true if matches; else false

Definition at line 848 of file JHead.hh.

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

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 860 of file JHead.hh.

861  {
862  numberOfSeconds += object.numberOfSeconds;
864  object.errorOfSeconds * object.errorOfSeconds);
865 
866  return *this;
867  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:884
double numberOfSeconds
Live time [s].
Definition: JHead.hh:883
livetime& JAANET::livetime::mul ( const double  factor)
inline

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 875 of file JHead.hh.

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

Member Data Documentation

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 883 of file JHead.hh.

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 884 of file JHead.hh.


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