CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Variables
cropTnPTrees.py File Reference

Go to the source code of this file.

Namespaces

 cropTnPTrees
 

Variables

tuple cropTnPTrees.cloned = src.CloneTree(newEntries)
 
tuple cropTnPTrees.din = input.Get(k.GetName())
 
tuple cropTnPTrees.dout = output.mkdir(k.GetName())
 
tuple cropTnPTrees.frac = float(args[1])
 
tuple cropTnPTrees.input = ROOT.TFile(args[0])
 
tuple cropTnPTrees.newEntries = int(src.GetEntries()*frac)
 
tuple cropTnPTrees.output = ROOT.TFile(args[2], "RECREATE")
 
tuple cropTnPTrees.parser
 
tuple cropTnPTrees.src = din.Get(i.GetName())