Jpp
 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 equals (const livetime &object) const
 Equality. 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 537 of file JHead.hh.

Constructor & Destructor Documentation

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 542 of file JHead.hh.

542  :
543  numberOfSeconds(0),
544  errorOfSeconds(0)
545  {}
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:589
double numberOfSeconds
Live time [s].
Definition: JHead.hh:588

Member Function Documentation

bool JAANET::livetime::equals ( const livetime object) const
inline

Equality.

Parameters
objectlive time
Returns
true if equals; else false

Definition at line 553 of file JHead.hh.

554  {
555  return ((numberOfSeconds == 0.0 && object.numberOfSeconds == 0.0) ||
556  (numberOfSeconds > 0.0 && object.numberOfSeconds > 0.0));
557  }
double numberOfSeconds
Live time [s].
Definition: JHead.hh:588
livetime& JAANET::livetime::add ( const livetime object)
inline

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 565 of file JHead.hh.

566  {
567  numberOfSeconds += object.numberOfSeconds;
569  object.errorOfSeconds * object.errorOfSeconds);
570 
571  return *this;
572  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:589
double numberOfSeconds
Live time [s].
Definition: JHead.hh:588
livetime& JAANET::livetime::mul ( const double  factor)
inline

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 580 of file JHead.hh.

581  {
582  numberOfSeconds /= (factor * factor);
583  errorOfSeconds /= (factor * factor);
584 
585  return *this;
586  }
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:589
double numberOfSeconds
Live time [s].
Definition: JHead.hh:588
JAANET::livetime::ClassDefNV ( livetime  ,
 
)

Member Data Documentation

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 588 of file JHead.hh.

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 589 of file JHead.hh.


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