From 30507d97b317b0e07fe49dd194c67a2c4d8d0d7f Mon Sep 17 00:00:00 2001 From: Nadya Chernyavskaya Date: Fri, 18 Jun 2021 09:35:40 +0200 Subject: [PATCH] fixing coloring by Idx for output mode --- runDash.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runDash.py b/runDash.py index a13e591..cee272c 100644 --- a/runDash.py +++ b/runDash.py @@ -15,7 +15,7 @@ def parseArgs(): parsers = parser.add_subparsers(dest='mode') interactive = parsers.add_parser("interactive", help="Launch and interactive dash session") output = parsers.add_parser("output", help="Produce plots as output (not interactive)") - output.add_argument("-d", "--dataset", default="Gun50Part_CHEPDef_fineCalo_nano_default.root", type=str, help="Input file") + output.add_argument("-d", "--dataset", default="Gun10Part_CHEPDef_fineCalo_nano_default.root", type=str, help="Input file") output.add_argument("-e", "--event", default=1, type=int, help="Event number to show") output.add_argument("-o", "--outputFile", default="event_display", type=str, help="Output file") output.add_argument("--outDir", default="plots/", type=str, help="Output plots directory") @@ -165,12 +165,12 @@ def draw_figure(hitTypes, detectors, colormode, pcolormode, particles, simcluste elif args.mode == 'output': static_plot_opts = {'hitTypes':['RecHitHGC'], 'detectors':[], - 'colormode':'CaloPartIdx', + 'colormode':'MergedSimClusterIdx', 'pcolormode':'index', 'particles':'CaloPart', 'simclusters':'MergedSimCluster', 'event':args.event, - 'nHitFilter':20, + 'nHitFilter':60, 'dataset':args.dataset} fig = go.Figure(draw_plots(static_plot_opts['hitTypes'], static_plot_opts['detectors'], static_plot_opts['colormode'], static_plot_opts['pcolormode'], static_plot_opts['particles'], static_plot_opts['simclusters'], static_plot_opts['event'], static_plot_opts['nHitFilter'], static_plot_opts['dataset'])) if not os.path.exists(args.outDir):