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

◆ beginLoop()

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:21

◆ process()

def SimpleTreeProducer.SimpleTreeProducer.process (   self,
  event 
)

◆ write()

def SimpleTreeProducer.SimpleTreeProducer.write (   self,
  setup 
)

Definition at line 20 of file SimpleTreeProducer.py.

References SimpleTreeProducer.SimpleTreeProducer.rootfile, HcalGainsCheck.rootfile, and EcalTestPulseAnalyzer.rootfile.

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

Member Data Documentation

◆ rootfile

SimpleTreeProducer.SimpleTreeProducer.rootfile

Definition at line 9 of file SimpleTreeProducer.py.

Referenced by SimpleTreeProducer.SimpleTreeProducer.write().

◆ tree