From f4835d20e7fcc79af659b9bebcc413d9206d489c Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Fri, 29 Mar 2024 08:04:46 +0100 Subject: [PATCH] extent constructors --- source/include/Ostap/MoreRooFit.h | 72 +++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/source/include/Ostap/MoreRooFit.h b/source/include/Ostap/MoreRooFit.h index 9b736afd..35b756d2 100644 --- a/source/include/Ostap/MoreRooFit.h +++ b/source/include/Ostap/MoreRooFit.h @@ -2288,7 +2288,7 @@ namespace Ostap const std::string& title = "" ) : BesselJ ( name , title , x , nu ) {} - /// constructor with two variables + /// constructor with one variables BesselJ ( RooAbsReal& x , const double nu , @@ -2296,6 +2296,14 @@ namespace Ostap const std::string& title = "" ) : BesselJ ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variables + BesselJ + ( const double x , + RooAbsReal& nu , + const std::string& name = "" , + const std::string& title = "" ) + : BesselJ ( name , title , RooFit::RooConst( x ) , nu ) + {} /// constructor with one variable BesselJ ( const std::string& name , @@ -2304,6 +2312,14 @@ namespace Ostap const double nu ) : BesselJ ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variable + BesselJ + ( const std::string& name , + const std::string& title , + const double x , + RooAbsReal& nu ) + : BesselJ ( name , title , RooFit::RooConst ( x ) , nu ) + {} // ====================================================================== /// fake defautl constructor (needed for serisalization) BesselJ () = default ; @@ -2350,7 +2366,7 @@ namespace Ostap const std::string& title = "" ) : BesselY ( name , title , x , nu ) {} - /// constructor with two variables + /// constructor with one variables BesselY ( RooAbsReal& x , const double nu , @@ -2358,6 +2374,14 @@ namespace Ostap const std::string& title = "" ) : BesselY ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variables + BesselY + ( const double x , + RooAbsReal& nu , + const std::string& name = "" , + const std::string& title = "" ) + : BesselY ( name , title , RooFit::RooConst ( x ) , nu ) + {} /// constructor with one variable BesselY ( const std::string& name , @@ -2366,6 +2390,14 @@ namespace Ostap const double nu ) : BesselY ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variable + BesselY + ( const std::string& name , + const std::string& title , + const double x , + RooAbsReal& nu ) + : BesselY ( name , title , RooFit::RooConst ( x ) , nu ) + {} // ====================================================================== /// fake defautl constructor (needed for serisalization) BesselY () = default ; @@ -2412,7 +2444,7 @@ namespace Ostap const std::string& title = "" ) : BesselI ( name , title , x , nu ) {} - /// constructor with two variables + /// constructor with one variables BesselI ( RooAbsReal& x , const double nu , @@ -2420,6 +2452,14 @@ namespace Ostap const std::string& title = "" ) : BesselI ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variables + BesselI + ( const double x , + RooAbsReal& nu , + const std::string& name = "" , + const std::string& title = "" ) + : BesselI ( name , title , RooFit::RooConst ( x ) , nu ) + {} /// constructor with one variable BesselI ( const std::string& name , @@ -2428,6 +2468,14 @@ namespace Ostap const double nu ) : BesselI ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variable + BesselI + ( const std::string& name , + const std::string& title , + const double x , + RooAbsReal& nu ) + : BesselI ( name , title , RooFit::RooConst ( x ) , nu ) + {} // ====================================================================== /// fake defautl constructor (needed for serisalization) BesselI () = default ; @@ -2474,7 +2522,7 @@ namespace Ostap const std::string& title = "" ) : BesselK ( name , title , x , nu ) {} - /// constructor with two variables + /// constructor with one variables BesselK ( RooAbsReal& x , const double nu , @@ -2482,6 +2530,14 @@ namespace Ostap const std::string& title = "" ) : BesselK ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variables + BesselK + ( const double x , + RooAbsReal& nu , + const std::string& name = "" , + const std::string& title = "" ) + : BesselK ( name , title , RooFit::RooConst ( x ) , nu ) + {} /// constructor with one variable BesselK ( const std::string& name , @@ -2490,6 +2546,14 @@ namespace Ostap const double nu ) : BesselK ( name , title , x , RooFit::RooConst ( nu ) ) {} + /// constructor with one variable + BesselK + ( const std::string& name , + const std::string& title , + const double x , + RooAbsReal& nu ) + : BesselK ( name , title , RooFit::RooConst ( x ) , nu ) + {} // ====================================================================== /// fake defautl constructor (needed for serisalization) BesselK () = default ;