Auxiliary class for simultaneously handling light yields and response of PMT.  
 More...
#include <JShowerNPEHit.hh>
 | 
|   | JShowerNPEHit () | 
|   | Default constructor.  More...
  | 
|   | 
|   | JShowerNPEHit (const JShowerNPE &npe, const size_t n) | 
|   | Constructor.  More...
  | 
|   | 
| size_t  | getN () const | 
|   | Get number of hits.  More...
  | 
|   | 
| double  | getP () const | 
|   | Get probability.  More...
  | 
|   | 
| double  | getP (const double E_GeV) const | 
|   | Get shower energy dependent probability.  More...
  | 
|   | 
| double  | getChi2 (const double E_GeV) const | 
|   | Get chi2.  More...
  | 
|   | 
| double  | getP (const double E_GeV, const bool hit) const | 
|   | Get probability for observing a hit or not as a function of shower energy.  More...
  | 
|   | 
| double  | getChi2 (const double E_GeV, const bool hit) const | 
|   | Get chi2 for observing a hit or not as a function of shower energy.  More...
  | 
|   | 
| double  | getY1 () const | 
|   | Get light yield due to shower.  More...
  | 
|   | 
| double  | getH1 (const double E_GeV) const | 
|   | Expected number of photo-electrons for shower hypothesis as a function of shower energy.  More...
  | 
|   | 
| double  | getP (const double E_GeV, const bool hit) const | 
|   | Get probability for observing a hit or not as a function of shower energy.  More...
  | 
|   | 
| double  | getP (const bool hit) const | 
|   | Get probability for observing a hit or not.  More...
  | 
|   | 
| double  | getChi2 (const double E_GeV, const bool hit) const | 
|   | Get chi2 for observing a hit or not as a function of shower energy.  More...
  | 
|   | 
| double  | getChi2 (const bool hit) const | 
|   | Get chi2 for observing a hit or not.  More...
  | 
|   | 
| double  | getY0 () const | 
|   | Get light yield due to random background.  More...
  | 
|   | 
| double  | getH0 () const | 
|   | Expected number of photo-electrons for random background hypothesis.  More...
  | 
|   | 
 | 
| size_t  | __n | 
|   | 
| double  | y1 | 
|   | light yield due to shower [npe/GeV]  More...
  | 
|   | 
| double  | y0 | 
|   | light yield due to random background [npe]  More...
  | 
|   | 
Auxiliary class for simultaneously handling light yields and response of PMT. 
Definition at line 19 of file JShowerNPEHit.hh.
 
◆ JShowerNPEHit() [1/2]
  
  
      
        
          | JFIT::JShowerNPEHit::JShowerNPEHit  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 28 of file JShowerNPEHit.hh.
JShowerNPE()
Default constructor.
 
 
 
 
◆ JShowerNPEHit() [2/2]
  
  
      
        
          | JFIT::JShowerNPEHit::JShowerNPEHit  | 
          ( | 
          const JShowerNPE &  | 
          npe,  | 
         
        
           | 
           | 
          const size_t  | 
          n  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ getN()
  
  
      
        
          | size_t JFIT::JShowerNPEHit::getN  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getP() [1/5]
  
  
      
        
          | double JFIT::JShowerNPEHit::getP  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get probability. 
- Returns
 - probability 
 
Definition at line 63 of file JShowerNPEHit.hh.
size_t getN() const
Get number of hits.
 
double getP() const
Get probability.
 
 
 
 
◆ getP() [2/5]
  
  
      
        
          | double JFIT::JShowerNPEHit::getP  | 
          ( | 
          const double  | 
          E_GeV | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get shower energy dependent probability. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 75 of file JShowerNPEHit.hh.
   77       return this->
getP(E_GeV, this->
getN() > 0);
 
 
 
 
◆ getChi2() [1/4]
  
  
      
        
          | double JFIT::JShowerNPEHit::getChi2  | 
          ( | 
          const double  | 
          E_GeV | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get chi2. 
- Parameters
 - 
  
  
 
- Returns
 - chi2 
 
Definition at line 87 of file JShowerNPEHit.hh.
double getChi2(const double E_GeV, const bool hit) const
Get chi2 for observing a hit or not as a function of shower energy.
 
 
 
 
◆ getP() [3/5]
  
  
      
        
          | double JFIT::JShowerNPE::getP | 
         
       
   | 
  
inline   | 
  
 
Get probability for observing a hit or not as a function of shower energy. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 80 of file JShowerNPE.hh.
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.
 
double getH1(const double E_GeV) const
Expected number of photo-electrons for shower hypothesis as a function of shower energy.
 
 
 
 
◆ getChi2() [2/4]
  
  
      
        
          | double JFIT::JShowerNPE::getChi2 | 
         
       
   | 
  
inline   | 
  
 
Get chi2 for observing a hit or not as a function of shower energy. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 93 of file JShowerNPE.hh.
double getChi2(const double P)
Get chi2 corresponding to given probability.
 
 
 
 
◆ getY1()
  
  
      
        
          | double JFIT::JShowerNPE::getY1  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get light yield due to shower. 
- Returns
 - light yield [npe/GeV] 
 
Definition at line 55 of file JShowerNPE.hh.
double y1
light yield due to shower [npe/GeV]
 
 
 
 
◆ getH1()
  
  
      
        
          | double JFIT::JShowerNPE::getH1  | 
          ( | 
          const double  | 
          E_GeV | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Expected number of photo-electrons for shower hypothesis as a function of shower energy. 
- Parameters
 - 
  
  
 
- Returns
 - light yield [npe] 
 
Definition at line 67 of file JShowerNPE.hh.
   69       return E_GeV * this->
getY1();
 
double getY1() const
Get light yield due to shower.
 
 
 
 
◆ getP() [4/5]
  
  
      
        
          | double JFIT::JShowerNPE::getP  | 
          ( | 
          const double  | 
          E_GeV,  | 
         
        
           | 
           | 
          const bool  | 
          hit  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get probability for observing a hit or not as a function of shower energy. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 80 of file JShowerNPE.hh.
 
 
◆ getP() [5/5]
  
  
      
        
          | double JFIT::JK40::getP  | 
          ( | 
          const bool  | 
          hit | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get probability for observing a hit or not. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 72 of file JK40.hh.
 
 
◆ getChi2() [3/4]
  
  
      
        
          | double JFIT::JShowerNPE::getChi2  | 
          ( | 
          const double  | 
          E_GeV,  | 
         
        
           | 
           | 
          const bool  | 
          hit  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get chi2 for observing a hit or not as a function of shower energy. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 93 of file JShowerNPE.hh.
 
 
◆ getChi2() [4/4]
  
  
      
        
          | double JFIT::JK40::getChi2  | 
          ( | 
          const bool  | 
          hit | ) | 
           const | 
         
       
   | 
  
inlineinherited   | 
  
 
Get chi2 for observing a hit or not. 
- Parameters
 - 
  
  
 
- Returns
 - probability 
 
Definition at line 84 of file JK40.hh.
 
 
◆ 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.
double y0
light yield due to random background [npe]
 
 
 
 
◆ 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.
double getY0() const
Get light yield due to random background.
 
 
 
 
◆ __n
  
  
      
        
          | size_t JFIT::JShowerNPEHit::__n | 
         
       
   | 
  
protected   | 
  
 
 
◆ y1
  
  
      
        
          | double JFIT::JShowerNPE::y1 | 
         
       
   | 
  
protectedinherited   | 
  
 
light yield due to shower [npe/GeV] 
Definition at line 99 of file JShowerNPE.hh.
 
 
◆ y0
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: