Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
JFIT::JNPE Struct Reference

Auxiliary class for handling various light yields. More...

#include <JNPE.hh>

Inheritance diagram for JFIT::JNPE:
JFIT::JK40 JFIT::JNPEHit

Public Types

typedef std::vector< double > JL1_t
 Type definition of expectation values of number of multiple hits. More...
 

Public Member Functions

 JNPE ()
 Default constructor. More...
 
 JNPE (const JK40 &k40, const double yA, const double yB, const double z)
 Constructor. More...
 
double getYA () const
 Get light yield due to muon itself. More...
 
double getYB () const
 Get light yield due to bremsstrahlung. More...
 
double getZ () const
 Get position along muon path. More...
 
double getH0 () const
 Expected number of photo-electrons for random background hypothesis. More...
 
double getH0 (const size_t M) const
 Expected number of photo-electrons for random background hypothesis. More...
 
double getH1 (const double E_GeV) const
 Expected number of photo-electrons for muon hypothesis as a function of muon energy. More...
 
double getP (const double E_GeV, const bool hit) const
 Get probability for observing a hit or not as a function of muon energy. More...
 
double getChi2 (const double E_GeV, const bool hit) const
 Get chi2 for observing a hit or not as a function of muon energy. More...
 
double getY0 () const
 Get expectation value for number of single hits. More...
 
double getY1 (const size_t M) const
 Get expectation value for number of multiple hits. More...
 
double getP (size_t M) const
 Get probability to observe a hit with given multiplicity. More...
 

Protected Attributes

double __yA
 light yield due to minimum ionizing particle [npe] More...
 
double __yB
 light yield due to bremsstrahlung [npe/GeV] More...
 
double __z
 position along muon path [m] More...
 
double __y0
 expectation value of number of single hits More...
 
JL1_t __y1
 expectation values of number of multiple hits More...
 

Detailed Description

Auxiliary class for handling various light yields.

Note that the effective light yield due to bremsstrahlung is proportional to the muon energy. The position along the muon path is used to correct for the energy loss of the muon between the reference position (z = 0) and the point of emission of the light.

Definition at line 27 of file JNPE.hh.

Member Typedef Documentation

typedef std::vector<double> JFIT::JK40::JL1_t
inherited

Type definition of expectation values of number of multiple hits.

Definition at line 34 of file JK40.hh.

Constructor & Destructor Documentation

JFIT::JNPE::JNPE ( )
inline

Default constructor.

Definition at line 37 of file JNPE.hh.

37  :
38  JK40(),
39  __yA(0.0),
40  __yB(0.0),
41  __z (0.0)
42  {}
double __z
position along muon path [m]
Definition: JNPE.hh:167
double __yB
light yield due to bremsstrahlung [npe/GeV]
Definition: JNPE.hh:166
double __yA
light yield due to minimum ionizing particle [npe]
Definition: JNPE.hh:165
JK40()
Default constructor.
Definition: JK40.hh:40
JFIT::JNPE::JNPE ( const JK40 k40,
const double  yA,
const double  yB,
const double  z 
)
inline

Constructor.

Parameters
k40K40 light yields [npe]
yAlight yield due to minimum ionizing particle [npe]
yBlight yield due to bremsstrahlung [npe/GeV]
zposition along muon path [m]

Definition at line 53 of file JNPE.hh.

56  :
57  JK40(k40),
58  __yA(yA),
59  __yB(yB),
60  __z (z)
61  {}
double __z
position along muon path [m]
Definition: JNPE.hh:167
double __yB
light yield due to bremsstrahlung [npe/GeV]
Definition: JNPE.hh:166
double __yA
light yield due to minimum ionizing particle [npe]
Definition: JNPE.hh:165
JK40()
Default constructor.
Definition: JK40.hh:40

Member Function Documentation

double JFIT::JNPE::getYA ( ) const
inline

Get light yield due to muon itself.

Returns
light yield [npe]

Definition at line 69 of file JNPE.hh.

70  {
71  return __yA;
72  }
double __yA
light yield due to minimum ionizing particle [npe]
Definition: JNPE.hh:165
double JFIT::JNPE::getYB ( ) const
inline

Get light yield due to bremsstrahlung.

Returns
light yield [npe/GeV]

Definition at line 80 of file JNPE.hh.

81  {
82  return __yB;
83  }
double __yB
light yield due to bremsstrahlung [npe/GeV]
Definition: JNPE.hh:166
double JFIT::JNPE::getZ ( ) const
inline

Get position along muon path.

Returns
position along muon path [m]

Definition at line 91 of file JNPE.hh.

92  {
93  return __z;
94  }
double __z
position along muon path [m]
Definition: JNPE.hh:167
double JFIT::JNPE::getH0 ( ) const
inline

Expected number of photo-electrons for random background hypothesis.

Returns
light yield [npe]

Definition at line 102 of file JNPE.hh.

103  {
104  return this->getY0();
105  }
double getY0() const
Get expectation value for number of single hits.
Definition: JK40.hh:101
double JFIT::JNPE::getH0 ( const size_t  M) const
inline

Expected number of photo-electrons for random background hypothesis.

Parameters
Mmultiplicity
Returns
light yield [npe]

Definition at line 114 of file JNPE.hh.

115  {
116  return this->getY1(M);
117  }
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
double getY1(const size_t M) const
Get expectation value for number of multiple hits.
Definition: JK40.hh:113
double JFIT::JNPE::getH1 ( const double  E_GeV) const
inline

Expected number of photo-electrons for muon hypothesis as a function of muon energy.

Parameters
E_GeVenergy [GeV]
Returns
light yield [npe]

Definition at line 126 of file JNPE.hh.

127  {
128  using namespace JPP;
129 
130  const double E = gWater.getE(E_GeV, this->getZ());
131 
133  return this->getYA() + E * this->getYB();
134  else
135  return 0.0;
136  }
static const double MASS_MUON
muon mass [GeV]
Definition: JConstants.hh:59
double getYB() const
Get light yield due to bremsstrahlung.
Definition: JNPE.hh:80
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
Definition: JGeane.hh:328
virtual double getE(const double E, const double dx) const
Get energy of muon after specified distance.
Definition: JGeane.hh:260
double getYA() const
Get light yield due to muon itself.
Definition: JNPE.hh:69
static const double INDEX_OF_REFRACTION_WATER
average index of refraction of water
Definition: JConstants.hh:37
double getZ() const
Get position along muon path.
Definition: JNPE.hh:91
then usage $script[input file[working directory[option]]] nWhere option can be E
Definition: JMuonPostfit.sh:37
double JFIT::JNPE::getP ( const double  E_GeV,
const bool  hit 
) const
inline

Get probability for observing a hit or not as a function of muon energy.

Parameters
E_GeVenergy [GeV]
hithit
Returns
probability

Definition at line 146 of file JNPE.hh.

147  {
148  return JFIT::getP(this->getH1(E_GeV) + this->getH0(), hit);
149  }
double getH1(const double E_GeV) const
Expected number of photo-electrons for muon hypothesis as a function of muon energy.
Definition: JNPE.hh:126
double getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition: JNPE.hh:102
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:36
double JFIT::JNPE::getChi2 ( const double  E_GeV,
const bool  hit 
) const
inline

Get chi2 for observing a hit or not as a function of muon energy.

Parameters
E_GeVenergy [GeV]
hithit
Returns
probability

Definition at line 159 of file JNPE.hh.

160  {
161  return JFIT::getChi2(this->getH1(E_GeV) + this->getH0(), hit);
162  }
double getH1(const double E_GeV) const
Expected number of photo-electrons for muon hypothesis as a function of muon energy.
Definition: JNPE.hh:126
double getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition: JNPE.hh:102
double getChi2(const double P)
Get chi2 corresponding to given probability.
Definition: JFitToolkit.hh:79
double JFIT::JK40::getY0 ( ) const
inlineinherited

Get expectation value for number of single hits.

Returns
expectation value

Definition at line 101 of file JK40.hh.

102  {
103  return __y0;
104  }
double __y0
expectation value of number of single hits
Definition: JK40.hh:142
double JFIT::JK40::getY1 ( const size_t  M) const
inlineinherited

Get expectation value for number of multiple hits.

Parameters
Mmultiplicity (M >= 2)
Returns
expectation value

Definition at line 113 of file JK40.hh.

114  {
115  if (M >= 2 && M - 2 < __y1.size())
116  return __y1[M-2];
117  else
118  return 0.0;
119  }
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
JL1_t __y1
expectation values of number of multiple hits
Definition: JK40.hh:143
double JFIT::JK40::getP ( size_t  M) const
inlineinherited

Get probability to observe a hit with given multiplicity.

Note that if M = 0, the probability corresponds to observing no hits.

Parameters
Mmultiplicity (M >= 0)
Returns
probability

Definition at line 129 of file JK40.hh.

130  {
131  double expval = 0.0;
132 
133  if (M < 2)
134  expval = getY0();
135  else
136  expval = getY1(M);
137 
138  return JFIT::getP(expval, M != 0);
139  }
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
double getY0() const
Get expectation value for number of single hits.
Definition: JK40.hh:101
double getY1(const size_t M) const
Get expectation value for number of multiple hits.
Definition: JK40.hh:113
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:36

Member Data Documentation

double JFIT::JNPE::__yA
protected

light yield due to minimum ionizing particle [npe]

Definition at line 165 of file JNPE.hh.

double JFIT::JNPE::__yB
protected

light yield due to bremsstrahlung [npe/GeV]

Definition at line 166 of file JNPE.hh.

double JFIT::JNPE::__z
protected

position along muon path [m]

Definition at line 167 of file JNPE.hh.

double JFIT::JK40::__y0
protectedinherited

expectation value of number of single hits

Definition at line 142 of file JK40.hh.

JL1_t JFIT::JK40::__y1
protectedinherited

expectation values of number of multiple hits

Definition at line 143 of file JK40.hh.


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