CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SimpleTreeProducer.SimpleTreeProducer Class Reference
Inheritance diagram for SimpleTreeProducer.SimpleTreeProducer:

Public Member Functions

def beginLoop (self, setup)
 
def process (self, event)
 
def write (self, setup)
 

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

Definition at line 16 of file SimpleTreeProducer.py.

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

Definition at line 20 of file SimpleTreeProducer.py.

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

Member Data Documentation

SimpleTreeProducer.SimpleTreeProducer.rootfile

Definition at line 9 of file SimpleTreeProducer.py.