CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RootVarsAdapter.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_RootVarsAdapter_h
2 #define PhysicsTools_Utilities_RootVarsAdapter_h
3 
4 namespace root {
5  namespace helper {
6 
7  template <typename F, unsigned int args>
8  struct RootVarsAdapter {};
9 
10  template <typename F>
11  struct RootVarsAdapter<F, 1> {
12  static double value(F& f, const double* var) { return f(var[0]); }
13  };
14 
15  template <typename F>
16  struct RootVarsAdapter<F, 2> {
17  static double value(F& f, const double* var) { return f(var[0], var[1]); }
18  };
19  } // namespace helper
20 } // namespace root
21 
22 #endif
static double value(F &f, const double *var)
list var
if using global norm cols_to_minmax = [&#39;t_delta&#39;, &#39;t_hmaxNearP&#39;,&#39;t_emaxNearP&#39;, &#39;t_hAnnular&#39;, &#39;t_eAnnular&#39;,&#39;t_pt&#39;,&#39;t_nVtx&#39;,&#39;t_ieta&#39;,&#39;t_eHcal10&#39;, &#39;t_eHcal30&#39;,&#39;t_rhoh&#39;,&#39;t_eHcal&#39;] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() &gt; 0) else 1.0/200.0)
static double value(F &f, const double *var)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163