Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JFIT::JK40Hit Struct Reference

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

#include <JK40Hit.hh>

Inheritance diagram for JFIT::JK40Hit:
KM3NETDAQ::JDAQModuleIdentifier 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.
 
const JDAQModuleIdentifiergetModuleIdentifier () const
 Get Module identifier.
 
void setModuleIdentifier (const JDAQModuleIdentifier &module)
 Set Module identifier.
 
int getModuleID () const
 Get module identifier.
 
 ClassDefNV (JDAQModuleIdentifier, 1)
 
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
 
int id
 
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 :
34 JK40(),
35 __n (0)
36 {}
JDAQModuleIdentifier()
Default constructor.
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 :
50 JK40(k40),
51 __n (n)
52 {}
const int n
Definition JPolint.hh:791

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

◆ getModuleIdentifier()

const JDAQModuleIdentifier & KM3NETDAQ::JDAQModuleIdentifier::getModuleIdentifier ( ) const
inlineinherited

Get Module identifier.

Returns
Module identifier

Definition at line 50 of file JDAQModuleIdentifier.hh.

51 {
52 return *this;
53 }

◆ setModuleIdentifier()

void KM3NETDAQ::JDAQModuleIdentifier::setModuleIdentifier ( const JDAQModuleIdentifier & module)
inlineinherited

Set Module identifier.

Parameters
moduleModule identifier

Definition at line 61 of file JDAQModuleIdentifier.hh.

62 {
63 *this = module;
64 }

◆ getModuleID()

int KM3NETDAQ::JDAQModuleIdentifier::getModuleID ( ) const
inlineinherited

Get module identifier.

Returns
module identifier

Definition at line 72 of file JDAQModuleIdentifier.hh.

◆ ClassDefNV()

KM3NETDAQ::JDAQModuleIdentifier::ClassDefNV ( JDAQModuleIdentifier ,
1  )
inherited

◆ 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.

◆ id

int KM3NETDAQ::JDAQModuleIdentifier::id
protectedinherited

Definition at line 112 of file JDAQModuleIdentifier.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: