summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-10-03 08:57:28 -0400
committerStan Seibert <stan@mtrr.org>2011-10-03 08:57:28 -0400
commitf546e2ee29db8c62112e9370c9a51947e6f87da1 (patch)
tree152ac2350c02622a7c2e65d80bb389b48663dd23
parentbbad0212924f725085c63d4a9133a9d73110f11a (diff)
downloadchroma-f546e2ee29db8c62112e9370c9a51947e6f87da1.tar.gz
chroma-f546e2ee29db8c62112e9370c9a51947e6f87da1.tar.bz2
chroma-f546e2ee29db8c62112e9370c9a51947e6f87da1.zip
Call ROOT.SetBatch() in chroma-sim to avoid unnecessary X11 traffic.
Speeds up loading when you are using SSH forwarding over a slow link.
-rwxr-xr-xbin/chroma-sim2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/chroma-sim b/bin/chroma-sim
index b6587f9..0d737c4 100755
--- a/bin/chroma-sim
+++ b/bin/chroma-sim
@@ -13,6 +13,8 @@ if __name__ == '__main__':
from chroma import itertoolset
from chroma import Simulation
from chroma import root
+ from chroma.rootimport import ROOT
+ ROOT.gROOT.SetBatch()
parser = optparse.OptionParser('%prog <detector>')
parser.add_option('-o', dest='output_filename',