CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
root::helper::RootFunctionHelper< F, args, Tag > Struct Template Reference

#include <RootFunctionHelper.h>

Public Types

typedef double(* root_function )(const double *, const double *)
 

Static Public Member Functions

static void addParameter (const boost::shared_ptr< double > &par)
 
static root_function fun (F &f)
 

Static Private Member Functions

static double fun_ (const double *x, const double *par)
 

Static Private Attributes

static RootFunctionAdapter< F,
args > 
adapter_
 

Detailed Description

template<typename F, unsigned int args, typename Tag = null_t>
struct root::helper::RootFunctionHelper< F, args, Tag >

Definition at line 15 of file RootFunctionHelper.h.

Member Typedef Documentation

template<typename F, unsigned int args, typename Tag = null_t>
typedef double(* root::helper::RootFunctionHelper< F, args, Tag >::root_function)(const double *, const double *)

Definition at line 16 of file RootFunctionHelper.h.

Member Function Documentation

template<typename F, unsigned int args, typename Tag = null_t>
static void root::helper::RootFunctionHelper< F, args, Tag >::addParameter ( const boost::shared_ptr< double > &  par)
inlinestatic

Definition at line 21 of file RootFunctionHelper.h.

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_.

Referenced by editorTools.UserCodeTool::__init__(), electronTools.AddElectronUserIsolation::__init__(), photonTools.AddPhotonUserIsolation::__init__(), metTools.AddTcMET::__init__(), muonTools.AddMuonUserIsolation::__init__(), trackTools.MakeAODTrackCandidates::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), coreTools.RestrictInputToAOD::__init__(), metUncertaintyTools.RunMEtUncertainties::__init__(), cmsswVersionTools.Run52xOn51xTrigger::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), editorTools.ChangeSource::__init__(), HiCoreTools.RemoveMCMatching::__init__(), metTools.AddPfMET::__init__(), coreTools.RunOnData::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), jetTools.RunBTagging::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), coreTools.RemoveAllPATObjectsBut::__init__(), coreTools.RemoveSpecificPATObjects::__init__(), HiCoreTools.RemoveCleaning::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.AddCleaning::__init__(), tauTools.AddTauCollection::__init__(), coreTools.RemoveCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), coreTools.AddCleaning::__init__(), jetTools.AddJetCollection::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), trigTools.RemoveCleaningFromTriggerMatching::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), jetTools.SwitchJetCorrLevels::__init__(), and root::function_t().

21  {
22  adapter_.addParameter(par);
23  }
static RootFunctionAdapter< F, args > adapter_
template<typename F, unsigned int args, typename Tag = null_t>
static root_function root::helper::RootFunctionHelper< F, args, Tag >::fun ( F f)
inlinestatic

Definition at line 17 of file RootFunctionHelper.h.

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_, f, and root::helper::RootFunctionHelper< F, args, Tag >::fun_().

Referenced by root::function_t().

17  {
18  adapter_ = RootFunctionAdapter<F, args>(f);
19  return &fun_;
20  }
static RootFunctionAdapter< F, args > adapter_
double f[11][100]
static double fun_(const double *x, const double *par)
template<typename F, unsigned int args, typename Tag = null_t>
static double root::helper::RootFunctionHelper< F, args, Tag >::fun_ ( const double *  x,
const double *  par 
)
inlinestaticprivate

Definition at line 25 of file RootFunctionHelper.h.

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_.

Referenced by root::helper::RootFunctionHelper< F, args, Tag >::fun().

25  {
26  adapter_.setParameters(par);
27  return adapter_(x);
28  }
static RootFunctionAdapter< F, args > adapter_
x
Definition: VDTMath.h:216

Member Data Documentation

template<typename F, unsigned int args, typename Tag = null_t>
RootFunctionAdapter< F, args > root::helper::RootFunctionHelper< F, args, Tag >::adapter_
staticprivate