Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
JFIT::JK40Hit Struct Reference

Auxiliary class for simultaneously handling light yields and response of module. More...

#include <JK40Hit.hh>

Inheritance diagram for JFIT::JK40Hit:
JFIT::JK40

Public Member Functions

 JK40Hit ()
 Default constructor.
 
 JK40Hit (const JDAQModuleIdentifier &id, const JK40 &k40, const size_t n)
 Constructor.
 
size_t getN () const
 Get number of hits.
 
double getP () const
 Get probability.
 
double getP (const bool hit) const
 Get probability for observing a hit or not.
 
double getY0 () const
 Get light yield due to random background.
 
double getH0 () const
 Expected number of photo-electrons for random background hypothesis.
 
double getChi2 (const bool hit) const
 Get chi2 for observing a hit or not.
 

Protected Attributes

size_t __n
 
double y0
 light yield due to random background [npe]
 

Detailed Description

Auxiliary class for simultaneously handling light yields and response of module.

Definition at line 23 of file JK40Hit.hh.

Constructor & Destructor Documentation

◆ JK40Hit() [1/2]

JFIT::JK40Hit::JK40Hit ( )
inline

Default constructor.

Definition at line 32 of file JK40Hit.hh.

32 :
33 JDAQModuleIdentifier(),
34 JK40(),
35 __n (0)
36 {}
size_t __n
Definition JK40Hit.hh:77
JK40()
Default constructor.
Definition JK40.hh:29

◆ JK40Hit() [2/2]

JFIT::JK40Hit::JK40Hit ( const JDAQModuleIdentifier & id,
const JK40 & k40,
const size_t n )
inline

Constructor.

Parameters
idmodule identifier
k40k40
nnumber of hits

Definition at line 46 of file JK40Hit.hh.

48 :
49 JDAQModuleIdentifier(id),
50 JK40(k40),
51 __n (n)
52 {}

Member Function Documentation

◆ getN()

size_t JFIT::JK40Hit::getN ( ) const
inline

Get number of hits.

Returns
number of hits

Definition at line 60 of file JK40Hit.hh.

61 {
62 return __n;
63 }

◆ getP() [1/2]

double JFIT::JK40Hit::getP ( ) const
inline

Get probability.

Returns
probability

Definition at line 71 of file JK40Hit.hh.

72 {
73 return this->getP(this->getN());
74 }
size_t getN() const
Get number of hits.
Definition JK40Hit.hh:60
double getP() const
Get probability.
Definition JK40Hit.hh:71

◆ getP() [2/2]

double JFIT::JK40::getP ( const bool hit) const
inline

Get probability for observing a hit or not.

Parameters
hithit
Returns
probability

Definition at line 72 of file JK40.hh.

73 {
74 return JFIT::getP(this->getH0(), hit);
75 }
double getP(const double expval, bool hit)
Get Poisson probability to observe a hit or not for given expectation value for the number of hits.
double getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition JK40.hh:60

◆ getY0()

double JFIT::JK40::getY0 ( ) const
inlineinherited

Get light yield due to random background.

Returns
light yield [npe]

Definition at line 49 of file JK40.hh.

50 {
51 return y0;
52 }
double y0
light yield due to random background [npe]
Definition JK40.hh:90

◆ getH0()

double JFIT::JK40::getH0 ( ) const
inlineinherited

Expected number of photo-electrons for random background hypothesis.

Returns
light yield [npe]

Definition at line 60 of file JK40.hh.

61 {
62 return this->getY0();
63 }
double getY0() const
Get light yield due to random background.
Definition JK40.hh:49

◆ getChi2()

double JFIT::JK40::getChi2 ( const bool hit) const
inlineinherited

Get chi2 for observing a hit or not.

Parameters
hithit
Returns
probability

Definition at line 84 of file JK40.hh.

85 {
86 return JFIT::getChi2(this->getH0(), hit);
87 }
double getChi2(const double P)
Get chi2 corresponding to given probability.

Member Data Documentation

◆ __n

size_t JFIT::JK40Hit::__n
protected

Definition at line 77 of file JK40Hit.hh.

◆ y0

double JFIT::JK40::y0
protectedinherited

light yield due to random background [npe]

Definition at line 90 of file JK40.hh.


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