eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
tree Namespace Reference

Functions

def load ()
 
def build (inputname, outputdir='.', nevents=-1)
 
def write (outputname, nevents)
 
def read (inputname, treename)
 

Function Documentation

◆ build()

def tree.build (   inputname,
  outputdir = '.',
  nevents = -1 
)
Example of creating a tree.

Once the eic-smear library, you can just use the
BuildTree routine as usual.

Definition at line 24 of file tree.py.

◆ load()

def tree.load ( )
Import the PyROOT module and use ROOT.gSystem.Load
to import the eic-smear class library.

Definition at line 16 of file tree.py.

◆ read()

def tree.read (   inputname,
  treename 
)
Example of reading back a tree.

Definition at line 61 of file tree.py.

◆ write()

def tree.write (   outputname,
  nevents 
)
Example of creating a tree.

Creating and writing events manually without the use of BuildTree.

Definition at line 36 of file tree.py.