CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
MetTreeProducer Namespace Reference

Classes

class  MetTreeProducer
 

Functions

def fill
 
def var
 

Function Documentation

def MetTreeProducer.fill (   tree,
  varName,
  value 
)

Definition at line 6 of file MetTreeProducer.py.

Referenced by MetTreeProducer.MetTreeProducer.process().

6 
7 def fill( tree, varName, value ):
8  tree.fill( varName, value )
9 
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
def MetTreeProducer.var (   tree,
  varName,
  type = float 
)

Definition at line 3 of file MetTreeProducer.py.

Referenced by MetTreeProducer.MetTreeProducer.declareVariables().

3 
4 def var( tree, varName, type=float ):
5  tree.var(varName, type)
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)