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 

◆ process()

def SimpleTreeProducer.SimpleTreeProducer.process (   self,
  event 
)

◆ write()

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 

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

Member Data Documentation

◆ rootfile

SimpleTreeProducer.SimpleTreeProducer.rootfile

Definition at line 9 of file SimpleTreeProducer.py.

Referenced by SimpleTreeProducer.SimpleTreeProducer.write().

◆ tree

SimpleTreeProducer.SimpleTreeProducer.tree
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
ntuplemaker.fill
fill
Definition: ntuplemaker.py:304
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48