Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JCALIBRATE::JK40Parameters_t Struct Reference

Fit parameters for two-fold coincidence rate due to K40. More...

#include <JFitK40.hh>

Inheritance diagram for JCALIBRATE::JK40Parameters_t:
JCALIBRATE::JK40Parameters JCALIBRATE::JModel_t JCALIBRATE::JModel

Public Member Functions

 JK40Parameters_t ()
 Default constructor.
 
const JK40Parameters_tgetK40Parameters () const
 Get K40 parameters.
 
void setK40Parameters (const JK40Parameters_t &parameters)
 Set K40 parameters.
 
void reset ()
 Reset.
 
void print (std::ostream &out) const
 Print model parameters to output stream conform include files.
 

Public Attributes

JParameter_t R
 maximal coincidence rate [Hz]
 
JParameter_t p1
 1st order angle dependence coincidence rate
 
JParameter_t p2
 2nd order angle dependence coincidence rate
 
JParameter_t p3
 3rd order angle dependence coincidence rate
 
JParameter_t p4
 4th order angle dependence coincidence rate
 
JParameter_t cc
 fraction of signal correlated background
 
JParameter_t bc
 constant background
 

Friends

std::ostream & operator<< (std::ostream &out, const JK40Parameters_t &object)
 Write model parameters to output stream.
 

Detailed Description

Fit parameters for two-fold coincidence rate due to K40.

Definition at line 610 of file JFitK40.hh.

Constructor & Destructor Documentation

◆ JK40Parameters_t()

JCALIBRATE::JK40Parameters_t::JK40Parameters_t ( )
inline

Default constructor.

Definition at line 614 of file JFitK40.hh.

615 {
616 reset();
617 }

Member Function Documentation

◆ getK40Parameters()

const JK40Parameters_t & JCALIBRATE::JK40Parameters_t::getK40Parameters ( ) const
inline

Get K40 parameters.

Returns
K40 parameters

Definition at line 625 of file JFitK40.hh.

626 {
627 return static_cast<const JK40Parameters_t&>(*this);
628 }
JK40Parameters_t()
Default constructor.
Definition JFitK40.hh:614

◆ setK40Parameters()

void JCALIBRATE::JK40Parameters_t::setK40Parameters ( const JK40Parameters_t & parameters)
inline

Set K40 parameters.

Parameters
parametersK40 parameters

Definition at line 636 of file JFitK40.hh.

637 {
638 static_cast<JK40Parameters_t&>(*this) = parameters;
639 }

◆ reset()

void JCALIBRATE::JK40Parameters_t::reset ( )
inline

Reset.

Definition at line 645 of file JFitK40.hh.

646 {
647 R .set(0.0);
648 p1.set(0.0);
649 p2.set(0.0);
650 p3.set(0.0);
651 p4.set(0.0);
652 cc.set(0.0);
653 bc.set(0.0);
654 }
void set()
Set current value.
Definition JFitK40.hh:275
JParameter_t bc
constant background
Definition JFitK40.hh:714
JParameter_t R
maximal coincidence rate [Hz]
Definition JFitK40.hh:708
JParameter_t p1
1st order angle dependence coincidence rate
Definition JFitK40.hh:709
JParameter_t p2
2nd order angle dependence coincidence rate
Definition JFitK40.hh:710
JParameter_t p3
3rd order angle dependence coincidence rate
Definition JFitK40.hh:711
JParameter_t p4
4th order angle dependence coincidence rate
Definition JFitK40.hh:712
JParameter_t cc
fraction of signal correlated background
Definition JFitK40.hh:713

◆ print()

void JCALIBRATE::JK40Parameters_t::print ( std::ostream & out) const
inline

Print model parameters to output stream conform include files.

Parameters
outoutput stream

Definition at line 662 of file JFitK40.hh.

663 {
664 using namespace std;
665
666 out << "JFitK40.hh" << endl;
667 out << "parameters.R .set(" << FIXED(9,6) << this->R () << ");" << endl;
668 out << "parameters.p1.set(" << FIXED(9,6) << this->p1() << ");" << endl;
669 out << "parameters.p2.set(" << FIXED(9,6) << this->p2() << ");" << endl;
670 out << "parameters.p3.set(" << FIXED(9,6) << this->p3() << ");" << endl;
671 out << "parameters.p4.set(" << FIXED(9,6) << this->p4() << ");" << endl;
672 out << "cc " << FIXED(9,6) << this->cc() << endl;
673 out << "bc " << FIXED(9,6) << this->bc() << endl;
674 out << endl;
675
676 out << "JK40DefaultSimulator.hh" << endl;
677 out << "static constexpr double p1 = " << FIXED(9,6) << this->p1() << ";" << endl;
678 out << "static constexpr double p2 = " << FIXED(9,6) << this->p2() << ";" << endl;
679 out << "static constexpr double p3 = " << FIXED(9,6) << this->p3() << ";" << endl;
680 out << "static constexpr double p4 = " << FIXED(9,6) << this->p4() << ";" << endl;
681 out << endl;
682 }
Auxiliary data structure for floating point format specification.
Definition JManip.hh:448

Friends And Related Symbol Documentation

◆ operator<<

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

Write model parameters to output stream.

Parameters
outoutput stream
objectmodel parameters
Returns
output stream

Definition at line 692 of file JFitK40.hh.

693 {
694 using namespace std;
695
696 out << "Rate [Hz] " << FIXED(12,6) << object.R << endl;
697 out << "p1 " << FIXED(12,6) << object.p1 << endl;
698 out << "p2 " << FIXED(12,6) << object.p2 << endl;
699 out << "p3 " << FIXED(12,6) << object.p3 << endl;
700 out << "p4 " << FIXED(12,6) << object.p4 << endl;
701 out << "cc " << FIXED(12,6) << object.cc << endl;
702 out << "bc " << FIXED(12,6) << object.bc << endl;
703 out << endl;
704
705 return out;
706 }

Member Data Documentation

◆ R

JParameter_t JCALIBRATE::JK40Parameters_t::R

maximal coincidence rate [Hz]

Definition at line 708 of file JFitK40.hh.

◆ p1

JParameter_t JCALIBRATE::JK40Parameters_t::p1

1st order angle dependence coincidence rate

Definition at line 709 of file JFitK40.hh.

◆ p2

JParameter_t JCALIBRATE::JK40Parameters_t::p2

2nd order angle dependence coincidence rate

Definition at line 710 of file JFitK40.hh.

◆ p3

JParameter_t JCALIBRATE::JK40Parameters_t::p3

3rd order angle dependence coincidence rate

Definition at line 711 of file JFitK40.hh.

◆ p4

JParameter_t JCALIBRATE::JK40Parameters_t::p4

4th order angle dependence coincidence rate

Definition at line 712 of file JFitK40.hh.

◆ cc

JParameter_t JCALIBRATE::JK40Parameters_t::cc

fraction of signal correlated background

Definition at line 713 of file JFitK40.hh.

◆ bc

JParameter_t JCALIBRATE::JK40Parameters_t::bc

constant background

Definition at line 714 of file JFitK40.hh.


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