Jpp 20.0.0-195-g190c9e876
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 616 of file JFitK40.hh.

Constructor & Destructor Documentation

◆ JK40Parameters_t()

JCALIBRATE::JK40Parameters_t::JK40Parameters_t ( )
inline

Default constructor.

Definition at line 620 of file JFitK40.hh.

621 {
622 reset();
623 }

Member Function Documentation

◆ getK40Parameters()

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

Get K40 parameters.

Returns
K40 parameters

Definition at line 631 of file JFitK40.hh.

632 {
633 return static_cast<const JK40Parameters_t&>(*this);
634 }
JK40Parameters_t()
Default constructor.
Definition JFitK40.hh:620

◆ setK40Parameters()

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

Set K40 parameters.

Parameters
parametersK40 parameters

Definition at line 642 of file JFitK40.hh.

643 {
644 static_cast<JK40Parameters_t&>(*this) = parameters;
645 }

◆ reset()

void JCALIBRATE::JK40Parameters_t::reset ( )
inline

Reset.

Definition at line 651 of file JFitK40.hh.

652 {
653 R .set(0.0);
654 p1.set(0.0);
655 p2.set(0.0);
656 p3.set(0.0);
657 p4.set(0.0);
658 cc.set(0.0);
659 bc.set(0.0);
660 }
void set()
Set current value.
Definition JFitK40.hh:271
JParameter_t bc
constant background
Definition JFitK40.hh:720
JParameter_t R
maximal coincidence rate [Hz]
Definition JFitK40.hh:714
JParameter_t p1
1st order angle dependence coincidence rate
Definition JFitK40.hh:715
JParameter_t p2
2nd order angle dependence coincidence rate
Definition JFitK40.hh:716
JParameter_t p3
3rd order angle dependence coincidence rate
Definition JFitK40.hh:717
JParameter_t p4
4th order angle dependence coincidence rate
Definition JFitK40.hh:718
JParameter_t cc
fraction of signal correlated background
Definition JFitK40.hh:719

◆ 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 668 of file JFitK40.hh.

669 {
670 using namespace std;
671
672 out << "JFitK40.hh" << endl;
673 out << "parameters.R .set(" << FIXED(9,6) << this->R () << ");" << endl;
674 out << "parameters.p1.set(" << FIXED(9,6) << this->p1() << ");" << endl;
675 out << "parameters.p2.set(" << FIXED(9,6) << this->p2() << ");" << endl;
676 out << "parameters.p3.set(" << FIXED(9,6) << this->p3() << ");" << endl;
677 out << "parameters.p4.set(" << FIXED(9,6) << this->p4() << ");" << endl;
678 out << "cc " << FIXED(9,6) << this->cc() << endl;
679 out << "bc " << FIXED(9,6) << this->bc() << endl;
680 out << endl;
681
682 out << "JK40DefaultSimulator.hh" << endl;
683 out << "static constexpr double p1 = " << FIXED(9,6) << this->p1() << ";" << endl;
684 out << "static constexpr double p2 = " << FIXED(9,6) << this->p2() << ";" << endl;
685 out << "static constexpr double p3 = " << FIXED(9,6) << this->p3() << ";" << endl;
686 out << "static constexpr double p4 = " << FIXED(9,6) << this->p4() << ";" << endl;
687 out << endl;
688 }
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 698 of file JFitK40.hh.

699 {
700 using namespace std;
701
702 out << "Rate [Hz] " << FIXED(12,6) << object.R << endl;
703 out << "p1 " << FIXED(12,6) << object.p1 << endl;
704 out << "p2 " << FIXED(12,6) << object.p2 << endl;
705 out << "p3 " << FIXED(12,6) << object.p3 << endl;
706 out << "p4 " << FIXED(12,6) << object.p4 << endl;
707 out << "cc " << FIXED(12,6) << object.cc << endl;
708 out << "bc " << FIXED(12,6) << object.bc << endl;
709 out << endl;
710
711 return out;
712 }

Member Data Documentation

◆ R

JParameter_t JCALIBRATE::JK40Parameters_t::R

maximal coincidence rate [Hz]

Definition at line 714 of file JFitK40.hh.

◆ p1

JParameter_t JCALIBRATE::JK40Parameters_t::p1

1st order angle dependence coincidence rate

Definition at line 715 of file JFitK40.hh.

◆ p2

JParameter_t JCALIBRATE::JK40Parameters_t::p2

2nd order angle dependence coincidence rate

Definition at line 716 of file JFitK40.hh.

◆ p3

JParameter_t JCALIBRATE::JK40Parameters_t::p3

3rd order angle dependence coincidence rate

Definition at line 717 of file JFitK40.hh.

◆ p4

JParameter_t JCALIBRATE::JK40Parameters_t::p4

4th order angle dependence coincidence rate

Definition at line 718 of file JFitK40.hh.

◆ cc

JParameter_t JCALIBRATE::JK40Parameters_t::cc

fraction of signal correlated background

Definition at line 719 of file JFitK40.hh.

◆ bc

JParameter_t JCALIBRATE::JK40Parameters_t::bc

constant background

Definition at line 720 of file JFitK40.hh.


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