Jpp 20.0.0-72-g597b30bc9
the software that should make you happy
Loading...
Searching...
No Matches
JPHYSICS::JMixedK40Rates Struct Reference

Auxiliary class for mixed-L1/L0 K40 rates. More...

#include <JK40Rates.hh>

Inheritance diagram for JPHYSICS::JMixedK40Rates:
JDETECTOR::JK40DefaultSimulator JTRIGGER::JK40RunByRunSimulator

Public Member Functions

 JMixedK40Rates ()
 Default constructor.
 
 JMixedK40Rates (const double rateL01_Hz, const double rateL10_Hz)
 Constructor.
 
double getL01Rate () const
 Get mixed L0 (lower module) and L1 (upper module) rate [Hz].
 
double getL10Rate () const
 Get mixed L1 (lower module) and L0 (upper module) rate [Hz].
 

Protected Attributes

double rateL01
 mixed L0 (lower module) and L1 (upper module) rate [Hz]
 
double rateL10
 mixed L1 (lower module) and L0 (upper module) rate [Hz]
 

Friends

std::istream & operator>> (std::istream &in, JMixedK40Rates &object)
 Read mixed K40 rates from input.
 
std::ostream & operator<< (std::ostream &out, const JMixedK40Rates &object)
 Write K40 rates to output.
 

Detailed Description

Auxiliary class for mixed-L1/L0 K40 rates.

Definition at line 229 of file JK40Rates.hh.

Constructor & Destructor Documentation

◆ JMixedK40Rates() [1/2]

JPHYSICS::JMixedK40Rates::JMixedK40Rates ( )
inline

Default constructor.

Definition at line 233 of file JK40Rates.hh.

233 :
234 rateL01(0.0),
235 rateL10(0.0)
236 {}
double rateL01
mixed L0 (lower module) and L1 (upper module) rate [Hz]
Definition JK40Rates.hh:300
double rateL10
mixed L1 (lower module) and L0 (upper module) rate [Hz]
Definition JK40Rates.hh:301

◆ JMixedK40Rates() [2/2]

JPHYSICS::JMixedK40Rates::JMixedK40Rates ( const double rateL01_Hz,
const double rateL10_Hz )
inline

Constructor.

Parameters
rateL01_Hzmixed L0 (lower module) and L1 (upper module) rate [Hz]
rateL10_Hzmixed L1 (lower module) and L0 (upper module) rate [Hz]

Definition at line 245 of file JK40Rates.hh.

246 :
247 rateL01(rateL01_Hz),
248 rateL10(rateL10_Hz)
249 {}

Member Function Documentation

◆ getL01Rate()

double JPHYSICS::JMixedK40Rates::getL01Rate ( ) const
inline

Get mixed L0 (lower module) and L1 (upper module) rate [Hz].

Returns
rate [Hz]

Definition at line 257 of file JK40Rates.hh.

258 {
259 return rateL01;
260 }

◆ getL10Rate()

double JPHYSICS::JMixedK40Rates::getL10Rate ( ) const
inline

Get mixed L1 (lower module) and L0 (upper module) rate [Hz].

Returns
rate [Hz]

Definition at line 268 of file JK40Rates.hh.

269 {
270 return rateL10;
271 }

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JMixedK40Rates & object )
friend

Read mixed K40 rates from input.

Parameters
ininput stream
objectmixed K40 rates
Returns
input stream

Definition at line 281 of file JK40Rates.hh.

282 {
283 return in >> object.rateL01 >> object.rateL10;
284 }

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JMixedK40Rates & object )
friend

Write K40 rates to output.

Parameters
outoutput stream
objectK40 rates
Returns
output stream

Definition at line 294 of file JK40Rates.hh.

295 {
296 return out << object.rateL01 << ' ' << object.rateL10;
297 }

Member Data Documentation

◆ rateL01

double JPHYSICS::JMixedK40Rates::rateL01
protected

mixed L0 (lower module) and L1 (upper module) rate [Hz]

Definition at line 300 of file JK40Rates.hh.

◆ rateL10

double JPHYSICS::JMixedK40Rates::rateL10
protected

mixed L1 (lower module) and L0 (upper module) rate [Hz]

Definition at line 301 of file JK40Rates.hh.


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