Jpp  16.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
KM3NETDAQ::JDAQModuleIdentifier JFIT::JK40

Public Member Functions

 JK40Hit ()
 Default constructor. More...
 
 JK40Hit (const JDAQModuleIdentifier &id, const JK40 &k40, const size_t n)
 Constructor. More...
 
size_t getN () const
 Get number of hits. More...
 
double getP () const
 Get probability. More...
 
const JDAQModuleIdentifiergetModuleIdentifier () const
 Get Module identifier. More...
 
void setModuleIdentifier (const JDAQModuleIdentifier &module)
 Set Module identifier. More...
 
int getModuleID () const
 Get module identifier. More...
 
 ClassDefNV (JDAQModuleIdentifier, 1)
 
double getY0 () const
 Get light yield due to random background. More...
 
double getH0 () const
 Expected number of photo-electrons for random background hypothesis. More...
 
double getP (const bool hit) const
 Get probability for observing a hit or not. More...
 
double getChi2 (const bool hit) const
 Get chi2 for observing a hit or not. More...
 

Protected Attributes

size_t __n
 
int id
 
double y0
 light yield due to random background [npe] More...
 

Detailed Description

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

Definition at line 23 of file JK40Hit.hh.

Constructor & Destructor Documentation

JFIT::JK40Hit::JK40Hit ( )
inline

Default constructor.

Definition at line 32 of file JK40Hit.hh.

32  :
34  JK40(),
35  __n (0)
36  {}
JDAQModuleIdentifier()
Default constructor.
JK40()
Default constructor.
Definition: JK40.hh:29
size_t __n
Definition: JK40Hit.hh:77
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  {}
JDAQModuleIdentifier()
Default constructor.
const int n
Definition: JPolint.hh:676
JK40()
Default constructor.
Definition: JK40.hh:29
size_t __n
Definition: JK40Hit.hh:77

Member Function Documentation

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  }
size_t __n
Definition: JK40Hit.hh:77
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
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  }
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  }
int KM3NETDAQ::JDAQModuleIdentifier::getModuleID ( ) const
inlineinherited

Get module identifier.

Returns
module identifier

Definition at line 72 of file JDAQModuleIdentifier.hh.

73  {
74  return id;
75  }
KM3NETDAQ::JDAQModuleIdentifier::ClassDefNV ( JDAQModuleIdentifier  ,
 
)
inherited
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
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
double JFIT::JK40::getP ( const bool  hit) const
inlineinherited

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 getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition: JK40.hh:60
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...
Definition: JFitToolkit.hh:41
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 getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition: JK40.hh:60
double getChi2(const double P)
Get chi2 corresponding to given probability.
Definition: JFitToolkit.hh:56

Member Data Documentation

size_t JFIT::JK40Hit::__n
protected

Definition at line 77 of file JK40Hit.hh.

int KM3NETDAQ::JDAQModuleIdentifier::id
protectedinherited

Definition at line 112 of file JDAQModuleIdentifier.hh.

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: