import glob, sys, os, string, io, ROOT, math, argparse from ROOT import std ROOT.gROOT.ProcessLine(".x rootlogon.C") nEvents=50000 factor=3.0 os.environ['nEvents']=str(nEvents) os.environ['factor']=str(factor) os.system('. macro/tpc/FOPI/vwalbre/OptSqrtFactor1.sh') while factor < 5.5: os.environ['nEvents']=str(nEvents) os.environ['factor']=str(factor) os.system('. macro/tpc/FOPI/vwalbre/OptSqrtFactor2.sh') factor += 0.5