LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
phot::PhotonLibraryHybrid::FitFunc Struct Reference

#include "PhotonLibraryHybrid.h"

Public Member Functions

 FitFunc ()
 
 FitFunc (float n, float d)
 
double Eval (double x) const
 

Public Attributes

float norm
 
float decay
 

Detailed Description

Definition at line 45 of file PhotonLibraryHybrid.h.

Constructor & Destructor Documentation

phot::PhotonLibraryHybrid::FitFunc::FitFunc ( )
inline

Definition at line 46 of file PhotonLibraryHybrid.h.

46 {}
phot::PhotonLibraryHybrid::FitFunc::FitFunc ( float  n,
float  d 
)
inline

Definition at line 47 of file PhotonLibraryHybrid.h.

Member Function Documentation

double phot::PhotonLibraryHybrid::FitFunc::Eval ( double  x) const
inline

Definition at line 48 of file PhotonLibraryHybrid.h.

References norm, and x.

Referenced by phot::PhotonLibraryHybrid::GetCount().

48 { return exp(norm + decay * x) / (x * x); }
Float_t x
Definition: compare.C:6

Member Data Documentation

float phot::PhotonLibraryHybrid::FitFunc::decay

Definition at line 50 of file PhotonLibraryHybrid.h.

float phot::PhotonLibraryHybrid::FitFunc::norm

Definition at line 50 of file PhotonLibraryHybrid.h.


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