CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
SimpleTreeProducer.SimpleTreeProducer Class Reference
Inheritance diagram for SimpleTreeProducer.SimpleTreeProducer:

Public Member Functions

def beginLoop
 
def process
 
def write
 

Public Attributes

 rootfile
 
 tree
 

Detailed Description

Definition at line 5 of file SimpleTreeProducer.py.

Member Function Documentation

def SimpleTreeProducer.SimpleTreeProducer.beginLoop (   self,
  setup 
)

Definition at line 7 of file SimpleTreeProducer.py.

7 
8  def beginLoop(self, setup):
9  super(SimpleTreeProducer, self).beginLoop(setup)
10  self.rootfile = TFile('/'.join([self.dirName,
11  'simple_tree.root']),
12  'recreate')
13  self.tree = Tree( self.cfg_ana.tree_name,
14  self.cfg_ana.tree_title )
15  self.tree.var('test_variable')
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def SimpleTreeProducer.SimpleTreeProducer.process (   self,
  event 
)

Definition at line 16 of file SimpleTreeProducer.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

16 
17  def process(self, event):
18  self.tree.fill('test_variable', event.input.var1)
19  self.tree.tree.Fill()
def SimpleTreeProducer.SimpleTreeProducer.write (   self,
  setup 
)

Definition at line 20 of file SimpleTreeProducer.py.

20 
21  def write(self, setup):
22  self.rootfile.Write()
23  self.rootfile.Close()
24 

Member Data Documentation

SimpleTreeProducer.SimpleTreeProducer.rootfile

Definition at line 9 of file SimpleTreeProducer.py.

SimpleTreeProducer.SimpleTreeProducer.tree

Definition at line 12 of file SimpleTreeProducer.py.

Referenced by eventstfile.Events.__iter__(), svgfig.SVG.__str__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop(), MetTreeProducer.MetTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process(), MetTreeProducer.MetTreeProducer.process(), python.cmstools.EventTree.SetAlias(), and eventstfile.Events.to().