1 #ifndef PhysicsTools_Utilities_rootFunction_h
2 #define PhysicsTools_Utilities_rootFunction_h
6 template<
unsigned int args,
typename Tag,
typename F>
7 typename helper::RootFunctionHelper<F, args, Tag>::root_function
12 template<
unsigned int args,
typename F>
13 typename helper::RootFunctionHelper<F, args>::root_function
15 return function_t<args, helper::null_t>(
f);
18 template<
unsigned int args,
typename Tag,
typename F>
19 typename helper::RootFunctionHelper<F, args, Tag>::root_function
28 template<
unsigned int args,
typename F>
29 typename helper::RootFunctionHelper<F, args>::root_function
32 return function_t<args, helper::null_t>(
f, p0);
35 template<
unsigned int args,
typename Tag,
typename F>
36 typename helper::RootFunctionHelper<F, args, Tag>::root_function
47 template<
unsigned int args,
typename F>
48 typename helper::RootFunctionHelper<F, args>::root_function
55 template<
unsigned int args,
typename Tag,
typename F>
56 typename helper::RootFunctionHelper<F, args, Tag>::root_function
69 template<
unsigned int args,
typename F>
70 typename helper::RootFunctionHelper<F, args>::root_function
78 template<
unsigned int args,
typename Tag,
typename F>
79 typename helper::RootFunctionHelper<F, args, Tag>::root_function
94 template<
unsigned int args,
typename F>
95 typename helper::RootFunctionHelper<F, args>::root_function
104 template<
unsigned int args,
typename Tag,
typename F>
105 typename helper::RootFunctionHelper<F, args, Tag>::root_function
122 template<
unsigned int args,
typename F>
123 typename helper::RootFunctionHelper<F, args>::root_function
133 template<
unsigned int args,
typename Tag,
typename F>
134 typename helper::RootFunctionHelper<F, args, Tag>::root_function
153 template<
unsigned int args,
typename F>
154 typename helper::RootFunctionHelper<F, args>::root_function
165 template<
unsigned int args,
typename Tag,
typename F>
166 typename helper::RootFunctionHelper<F, args, Tag>::root_function
187 template<
unsigned int args,
typename F>
188 typename helper::RootFunctionHelper<F, args>::root_function
200 template<
unsigned int args,
typename Tag,
typename F>
201 typename helper::RootFunctionHelper<F, args, Tag>::root_function
224 template<
unsigned int args,
typename F>
225 typename helper::RootFunctionHelper<F, args>::root_function
238 template<
unsigned int args,
typename Tag,
typename F>
239 typename helper::RootFunctionHelper<F, args, Tag>::root_function
264 template<
unsigned int args,
typename F>
265 typename helper::RootFunctionHelper<F, args>::root_function
276 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8);
279 template<
unsigned int args,
typename Tag,
typename F>
280 typename helper::RootFunctionHelper<F, args, Tag>::root_function
307 template<
unsigned int args,
typename F>
308 typename helper::RootFunctionHelper<F, args>::root_function
320 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9);
323 template<
unsigned int args,
typename Tag,
typename F>
324 typename helper::RootFunctionHelper<F, args, Tag>::root_function
353 template<
unsigned int args,
typename F>
354 typename helper::RootFunctionHelper<F, args>::root_function
367 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10);
370 template<
unsigned int args,
typename Tag,
typename F>
371 typename helper::RootFunctionHelper<F, args, Tag>::root_function
402 template<
unsigned int args,
typename F>
403 typename helper::RootFunctionHelper<F, args>::root_function
417 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11);
420 template<
unsigned int args,
typename Tag,
typename F>
421 typename helper::RootFunctionHelper<F, args, Tag>::root_function
454 template<
unsigned int args,
typename F>
455 typename helper::RootFunctionHelper<F, args>::root_function
470 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12);
473 template<
unsigned int args,
typename Tag,
typename F>
474 typename helper::RootFunctionHelper<F, args, Tag>::root_function
509 template<
unsigned int args,
typename F>
510 typename helper::RootFunctionHelper<F, args>::root_function
526 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
529 template<
unsigned int args,
typename Tag,
typename F>
530 typename helper::RootFunctionHelper<F, args, Tag>::root_function
567 template<
unsigned int args,
typename F>
568 typename helper::RootFunctionHelper<F, args>::root_function
585 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
588 template<
unsigned int args,
typename Tag,
typename F>
589 typename helper::RootFunctionHelper<F, args, Tag>::root_function
628 template<
unsigned int args,
typename F>
629 typename helper::RootFunctionHelper<F, args>::root_function
647 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
650 template<
unsigned int args,
typename Tag,
typename F>
651 typename helper::RootFunctionHelper<F, args, Tag>::root_function
692 template<
unsigned int args,
typename F>
693 typename helper::RootFunctionHelper<F, args>::root_function
712 return function<args, helper::null_t>(
f, p0,
p1,
p2,
p3,
p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
715 template<
unsigned int args,
typename Tag,
typename F>
716 typename helper::RootFunctionHelper<F, args, Tag>::root_function
759 template<
unsigned int args,
typename F>
760 typename helper::RootFunctionHelper<F, args>::root_function
780 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);
783 template<
unsigned int args,
typename Tag,
typename F>
784 typename helper::RootFunctionHelper<F, args, Tag>::root_function
829 template<
unsigned int args,
typename F>
830 typename helper::RootFunctionHelper<F, args>::root_function
851 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);
854 template<
unsigned int args,
typename Tag,
typename F>
855 typename helper::RootFunctionHelper<F, args, Tag>::root_function
902 template<
unsigned int args,
typename F>
903 typename helper::RootFunctionHelper<F, args>::root_function
925 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);
928 template<
unsigned int args,
typename Tag,
typename F>
929 typename helper::RootFunctionHelper<F, args, Tag>::root_function
933 std::vector<funct::Parameter>::const_iterator
i,
934 b = pars.begin(),
e = pars.end();
935 for(i = b; i !=
e; ++
i)
940 template<
unsigned int args,
typename F>
941 typename helper::RootFunctionHelper<F, args>::root_function
942 function(
F&
f,
const std::vector<funct::Parameter> & pars) {
943 return function_t<args, helper::null_t>(
f, pars);
946 template<
unsigned int args,
typename Tag,
typename F>
947 typename helper::RootFunctionHelper<F, args, Tag>::root_function
948 function_t(
F&
f,
const std::vector<boost::shared_ptr<double> > & pars) {
951 std::vector<boost::shared_ptr<double> >::const_iterator
i,
952 b = pars.begin(),
e = pars.end();
953 for(i = b; i !=
e; ++
i)
958 template<
unsigned int args,
typename F>
959 typename helper::RootFunctionHelper<F, args>::root_function
960 function(
F&
f,
const std::vector<boost::shared_ptr<double> > & pars) {
961 return function_t<args, helper::null_t>(
f, pars);
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)
string root
initialization