1 #ifndef __JPHYSICS__JNPETABLE__
2 #define __JPHYSICS__JNPETABLE__
18 namespace JPP {
using namespace JPHYSICS; }
35 template<
class JArgument_t,
53 typedef typename multifunction_t::map_type
map_type;
87 template<
class JPDF_t,
class JPDFMaplist_t,
class JPDFDistance_t>
91 using namespace JTOOLS;
95 typedef typename JTransformableMultiFunction_t::transformer_type
transformer_type;
100 for (
typename JTransformableMultiFunction_t::super_const_iterator i = input.super_begin(); i != input.super_end(); ++i) {
102 const JMultiKey_t& key = (*i).getKey();
103 const JPDF_t& value = (*i).getValue();
126 using namespace JTOOLS;
128 for (
super_iterator i = this->super_begin(); i != this->super_end(); ++i) {
132 for (
typename map_type::iterator
j = f1.begin();
j != f1.end(); ++
j) {
155 template<
class ...Args>
190 using namespace JTOOLS;
192 for (
super_iterator i = this->super_begin(); i != this->super_end(); ++i) {
196 for (
typename map_type::iterator
j = f1.begin();
j != f1.end(); ++
j) {
204 this->transformer.reset(transformer.
clone());
multifunction_t::value_type value_type
multifunction_t::argument_type argument_type
multifunction_t::iterator iterator
multifunction_t::supervisor_type supervisor_type
multifunction_t::super_iterator super_iterator
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
void add(const JNPETable &input)
Add NPE table.
virtual clone_type clone() const override
Get clone of this object.
multifunction_t::map_type map_type
virtual result_type evaluate(const argument_type *pX) const override
Recursive function value evaluation.
The template JSharedPointer class can be used to share a pointer to an object.
JConstantFunction1D< JArgument_t, JResult_t > function_type
multifunction_t::result_type result_type
JMultiMapTransformer< NUMBER_OF_DIMENSIONS, argument_type > transformer_type
result_type operator()(const Args &...args) const
Get number of photo-electrons.
JMultiFunction< JConstantFunction1D< JArgument_t, JResult_t >, JMaplist_t, JDistance_t > multifunction_t
JTOOLS::JArray< NUMBER_OF_DIMENSIONS, argument_type > buffer
JNPETable()
Default constructor.
multifunction_t::super_const_iterator super_const_iterator
JLANG::JSharedPointer< transformer_type > transformer
multifunction_t::ordinate_type ordinate_type
multifunction_t::const_iterator const_iterator
JNPETable(const JTransformableMultiFunction< JPDF_t, JPDFMaplist_t, JPDFDistance_t > &input)
Constructor.
void transform(const transformer_type &transformer)
Application of weight function.
multifunction_t::const_reverse_iterator const_reverse_iterator
multifunction_t::abscissa_type abscissa_type
Custom class for integrated values of the PDF of the arrival time of Cherenkov light.
multifunction_t::reverse_iterator reverse_iterator