Jpp  15.0.1-rc.2-highQE
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 768 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 772 of file JHead.hh.

772  :
773  numberOfSeconds(0),
774  errorOfSeconds(0)
775  {}
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:830
double numberOfSeconds
Live time [s].
Definition: JHead.hh:829

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

784  {
785  return numberOfSeconds < object.numberOfSeconds;
786  }
double numberOfSeconds
Live time [s].
Definition: JHead.hh:829
bool JAANET::livetime::match ( const livetime object) const
inline

Test match.

Parameters
objectlive time
Returns
true if matches; else false

Definition at line 794 of file JHead.hh.

795  {
796  return ((numberOfSeconds == 0.0 && object.numberOfSeconds == 0.0) ||
797  (numberOfSeconds > 0.0 && object.numberOfSeconds > 0.0));
798  }
double numberOfSeconds
Live time [s].
Definition: JHead.hh:829
livetime& JAANET::livetime::add ( const livetime object)
inline

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 806 of file JHead.hh.

807  {
808  numberOfSeconds += object.numberOfSeconds;
810  object.errorOfSeconds * object.errorOfSeconds);
811 
812  return *this;
813  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:830
double numberOfSeconds
Live time [s].
Definition: JHead.hh:829
livetime& JAANET::livetime::mul ( const double  factor)
inline

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 821 of file JHead.hh.

822  {
823  numberOfSeconds /= (factor * factor);
824  errorOfSeconds /= (factor * factor);
825 
826  return *this;
827  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:830
double numberOfSeconds
Live time [s].
Definition: JHead.hh:829
JAANET::livetime::ClassDefNV ( livetime  ,
 
)

Member Data Documentation

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 829 of file JHead.hh.

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 830 of file JHead.hh.


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