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

Auxiliary data structure for fraction of water to total. More...

#include <JFitK40.hh>

Inheritance diagram for JCALIBRATE::JWater:
JCALIBRATE::JK40Parameters_t

Public Member Functions

 JWater ()
 Default constructor.
 
double operator() (const double ct) const
 Get fraction of water as a function of cosine angle between PMT axes.
 
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
 

Detailed Description

Auxiliary data structure for fraction of water to total.

Definition at line 844 of file JFitK40.hh.

Constructor & Destructor Documentation

◆ JWater()

JCALIBRATE::JWater::JWater ( )
inline

Default constructor.

Definition at line 850 of file JFitK40.hh.

851 {
852 //simple for Water
853 this->R .set( 0.595927);
854 this->p1.set(-0.032784);
855 this->p2.set( 0.075297);
856 this->p3.set(-0.076032);
857 this->p4.set(-0.453102);
858
859 /*
860 //simple DOM low stat for Water
861 this->R .set( 0.589235);
862 this->p1.set(-0.018508);
863 this->p2.set( 0.105162);
864 this->p3.set(-0.107452);
865 this->p4.set(-0.475067);
866 */
867
868 /*
869 //full DOM for Water
870 this->R .set( 0.649367);
871 this->p1.set(-0.011764);
872 this->p2.set(-0.282949);
873 this->p3.set(-0.119943);
874 this->p4.set(-0.019789);
875 */
876 }
void set()
Set current value.
Definition JFitK40.hh:278
JParameter_t R
maximal coincidence rate [Hz]
Definition JFitK40.hh:711
JParameter_t p1
1st order angle dependence coincidence rate
Definition JFitK40.hh:712
JParameter_t p2
2nd order angle dependence coincidence rate
Definition JFitK40.hh:713
JParameter_t p3
3rd order angle dependence coincidence rate
Definition JFitK40.hh:714
JParameter_t p4
4th order angle dependence coincidence rate
Definition JFitK40.hh:715

Member Function Documentation

◆ operator()()

double JCALIBRATE::JWater::operator() ( const double ct) const
inline

Get fraction of water as a function of cosine angle between PMT axes.

Parameters
ctcosine angle between PMT axes
Returns
fraction

Definition at line 885 of file JFitK40.hh.

886 {
887 return R * exp(ct*(p1+ct*(p2+ct*(p3+ct*p4))) - (p1+p2+p3+p4));
888 }

◆ getK40Parameters()

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

Get K40 parameters.

Returns
K40 parameters

Definition at line 628 of file JFitK40.hh.

629 {
630 return static_cast<const JK40Parameters_t&>(*this);
631 }
JK40Parameters_t()
Default constructor.
Definition JFitK40.hh:617

◆ setK40Parameters()

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

Set K40 parameters.

Parameters
parametersK40 parameters

Definition at line 639 of file JFitK40.hh.

640 {
641 static_cast<JK40Parameters_t&>(*this) = parameters;
642 }

◆ reset()

void JCALIBRATE::JK40Parameters_t::reset ( )
inlineinherited

Reset.

Definition at line 648 of file JFitK40.hh.

649 {
650 R .set(0.0);
651 p1.set(0.0);
652 p2.set(0.0);
653 p3.set(0.0);
654 p4.set(0.0);
655 cc.set(0.0);
656 bc.set(0.0);
657 }
JParameter_t bc
constant background
Definition JFitK40.hh:717
JParameter_t cc
fraction of signal correlated background
Definition JFitK40.hh:716

◆ print()

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

Print model parameters to output stream conform include files.

Parameters
outoutput stream

Definition at line 665 of file JFitK40.hh.

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

Member Data Documentation

◆ R

JParameter_t JCALIBRATE::JK40Parameters_t::R
inherited

maximal coincidence rate [Hz]

Definition at line 711 of file JFitK40.hh.

◆ p1

JParameter_t JCALIBRATE::JK40Parameters_t::p1
inherited

1st order angle dependence coincidence rate

Definition at line 712 of file JFitK40.hh.

◆ p2

JParameter_t JCALIBRATE::JK40Parameters_t::p2
inherited

2nd order angle dependence coincidence rate

Definition at line 713 of file JFitK40.hh.

◆ p3

JParameter_t JCALIBRATE::JK40Parameters_t::p3
inherited

3rd order angle dependence coincidence rate

Definition at line 714 of file JFitK40.hh.

◆ p4

JParameter_t JCALIBRATE::JK40Parameters_t::p4
inherited

4th order angle dependence coincidence rate

Definition at line 715 of file JFitK40.hh.

◆ cc

JParameter_t JCALIBRATE::JK40Parameters_t::cc
inherited

fraction of signal correlated background

Definition at line 716 of file JFitK40.hh.

◆ bc

JParameter_t JCALIBRATE::JK40Parameters_t::bc
inherited

constant background

Definition at line 717 of file JFitK40.hh.


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