1 #ifndef PhysicsTools_Utilities_rootFunction_h 2 #define PhysicsTools_Utilities_rootFunction_h 7 template<
unsigned int args,
typename Tag,
typename F>
13 template<
unsigned int args,
typename F>
16 return function_t<args, helper::null_t>(
f);
19 template<
unsigned int args,
typename Tag,
typename F>
29 template<
unsigned int args,
typename F>
33 return function_t<args, helper::null_t>(
f, p0);
36 template<
unsigned int args,
typename Tag,
typename F>
48 template<
unsigned int args,
typename F>
56 template<
unsigned int args,
typename Tag,
typename F>
70 template<
unsigned int args,
typename F>
79 template<
unsigned int args,
typename Tag,
typename F>
95 template<
unsigned int args,
typename F>
105 template<
unsigned int args,
typename Tag,
typename F>
123 template<
unsigned int args,
typename F>
134 template<
unsigned int args,
typename Tag,
typename F>
154 template<
unsigned int args,
typename F>
166 template<
unsigned int args,
typename Tag,
typename F>
188 template<
unsigned int args,
typename F>
201 template<
unsigned int args,
typename Tag,
typename F>
225 template<
unsigned int args,
typename F>
239 template<
unsigned int args,
typename Tag,
typename F>
265 template<
unsigned int args,
typename F>
277 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8);
280 template<
unsigned int args,
typename Tag,
typename F>
308 template<
unsigned int args,
typename F>
321 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9);
324 template<
unsigned int args,
typename Tag,
typename F>
354 template<
unsigned int args,
typename F>
368 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10);
371 template<
unsigned int args,
typename Tag,
typename F>
403 template<
unsigned int args,
typename F>
418 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11);
421 template<
unsigned int args,
typename Tag,
typename F>
455 template<
unsigned int args,
typename F>
471 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12);
474 template<
unsigned int args,
typename Tag,
typename F>
510 template<
unsigned int args,
typename F>
527 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
530 template<
unsigned int args,
typename Tag,
typename F>
568 template<
unsigned int args,
typename F>
586 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
589 template<
unsigned int args,
typename Tag,
typename F>
629 template<
unsigned int args,
typename F>
648 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
651 template<
unsigned int args,
typename Tag,
typename F>
693 template<
unsigned int args,
typename F>
713 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
716 template<
unsigned int args,
typename Tag,
typename F>
760 template<
unsigned int args,
typename F>
781 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
784 template<
unsigned int args,
typename Tag,
typename F>
830 template<
unsigned int args,
typename F>
852 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
855 template<
unsigned int args,
typename Tag,
typename F>
903 template<
unsigned int args,
typename F>
926 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
929 template<
unsigned int args,
typename Tag,
typename F>
934 std::vector<funct::Parameter>::const_iterator
i,
935 b = pars.begin(),
e = pars.end();
936 for(i = b; i !=
e; ++
i)
941 template<
unsigned int args,
typename F>
943 function(
F&
f,
const std::vector<funct::Parameter> & pars) {
944 return function_t<args, helper::null_t>(
f, pars);
947 template<
unsigned int args,
typename Tag,
typename F>
949 function_t(
F& f,
const std::vector<boost::shared_ptr<double> > & pars) {
952 std::vector<boost::shared_ptr<double> >::const_iterator
i,
953 b = pars.begin(),
e = pars.end();
954 for(i = b; i !=
e; ++
i)
959 template<
unsigned int args,
typename F>
961 function(
F&
f,
const std::vector<boost::shared_ptr<double> > & pars) {
962 return function_t<args, helper::null_t>(
f, pars);
double(* root_function)(const double *, const double *)
helper::RootFunctionHelper< F, args, Tag >::root_function function_t(F &f)
static void addParameter(const boost::shared_ptr< double > &par)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
static root_function fun(F &f)