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

Constructor & Destructor Documentation

◆ livetime()

JAANET::livetime::livetime ( )
inline

Default constructor.

Definition at line 598 of file JHead.hh.

598  :
599  numberOfSeconds(0),
600  errorOfSeconds(0)
601  {}

Member Function Documentation

◆ match()

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

Test match.

Parameters
objectlive time
Returns
true if matches; else false

Definition at line 609 of file JHead.hh.

610  {
611  return ((numberOfSeconds == 0.0 && object.numberOfSeconds == 0.0) ||
612  (numberOfSeconds > 0.0 && object.numberOfSeconds > 0.0));
613  }

◆ add()

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

Addition.

Parameters
objectlive time
Returns
this live time

Definition at line 621 of file JHead.hh.

622  {
623  numberOfSeconds += object.numberOfSeconds;
625  object.errorOfSeconds * object.errorOfSeconds);
626 
627  return *this;
628  }

◆ mul()

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

Scale.

Parameters
factor1D scale factor
Returns
this livetime

Definition at line 636 of file JHead.hh.

637  {
638  numberOfSeconds /= (factor * factor);
639  errorOfSeconds /= (factor * factor);
640 
641  return *this;
642  }

◆ ClassDefNV()

JAANET::livetime::ClassDefNV ( livetime  ,
 
)

Member Data Documentation

◆ numberOfSeconds

double JAANET::livetime::numberOfSeconds

Live time [s].

Definition at line 644 of file JHead.hh.

◆ errorOfSeconds

double JAANET::livetime::errorOfSeconds

Uncertainty on live time [s].

Definition at line 645 of file JHead.hh.


The documentation for this struct was generated from the following file:
JAANET::livetime::numberOfSeconds
double numberOfSeconds
Live time [s].
Definition: JHead.hh:644
JAANET::livetime::errorOfSeconds
double errorOfSeconds
Uncertainty on live time [s].
Definition: JHead.hh:645