Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
JPHYSICS::JNPETable1D< JFunction1D_t > Class Template Reference

Custom class for the integrated values of the PDF of the arrival time of Cherenkov light. More...

#include <JNPETable1D.hh>

Inheritance diagram for JPHYSICS::JNPETable1D< JFunction1D_t >:

Public Types

typedef
JFunction1D_t::argument_type 
argument_type
 
typedef JFunction1D_t::result_type result_type
 

Public Member Functions

 JNPETable1D ()
 Default constructor. More...
 
template<class JPDF_t , class JPDFMaplist_t , class JPDFDistance_t >
 JNPETable1D (const JTransformableMultiFunction< JPDF_t, JPDFMaplist_t, JPDFDistance_t > &input)
 Constructor. More...
 

Detailed Description

template<class JFunction1D_t>
class JPHYSICS::JNPETable1D< JFunction1D_t >

Custom class for the integrated values of the PDF of the arrival time of Cherenkov light.

This class provides for the average number of photo-electrons as a function of the leading parameter value (R). The average is taken over the orientations of the PMT in the full solid angle.

Definition at line 37 of file JNPETable1D.hh.

Member Typedef Documentation

template<class JFunction1D_t >
typedef JFunction1D_t::argument_type JPHYSICS::JNPETable1D< JFunction1D_t >::argument_type

Definition at line 42 of file JNPETable1D.hh.

template<class JFunction1D_t >
typedef JFunction1D_t::result_type JPHYSICS::JNPETable1D< JFunction1D_t >::result_type

Definition at line 43 of file JNPETable1D.hh.

Constructor & Destructor Documentation

template<class JFunction1D_t >
JPHYSICS::JNPETable1D< JFunction1D_t >::JNPETable1D ( )
inline

Default constructor.

Definition at line 49 of file JNPETable1D.hh.

50  {}
template<class JFunction1D_t >
template<class JPDF_t , class JPDFMaplist_t , class JPDFDistance_t >
JPHYSICS::JNPETable1D< JFunction1D_t >::JNPETable1D ( const JTransformableMultiFunction< JPDF_t, JPDFMaplist_t, JPDFDistance_t > &  input)
inline

Constructor.

Parameters
inputmulti-dimensional PDF

Definition at line 59 of file JNPETable1D.hh.

60  {
61  using namespace JTOOLS;
62  using namespace JGEOMETRY3D;
63 
64  typedef JTransformableMultiFunction<JPDF_t, JPDFMaplist_t, JPDFDistance_t> JTransformableMultiFunction_t;
65 
67 
68  const JOmega3D omega(0.03*PI);
69 
70  for (typename JTransformableMultiFunction_t::const_iterator i = input.begin(); i != input.end(); ++i) {
71 
72  const double R = i->getX();
73 
74  // average intensity
75 
76  double y = 0.0;
77 
78  for (JOmega3D::const_iterator dir = omega.begin(); dir != omega.end(); ++dir) {
79  y += intensity(R, dir->getTheta(), fabs(dir->getPhi()));
80  }
81 
82  this->put(R,y/omega.size());
83  }
84 
85  this->compile();
86  this->setExceptionHandler(new typename JFunction1D_t::JDefaultResult(JMATH::zero));
87  }
Transformable multidimensional function.
static const double PI
Constants.
Definition: JConstants.hh:20
static const JZero zero
Function object to assign zero value.
Definition: JZero.hh:94
Direction set covering (part of) solid angle.
Definition: JOmega3D.hh:62
Custom class for integrated values of the PDF of the arrival time of Cherenkov light.
Definition: JNPETable.hh:38

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