Esempio n. 1
0
    crttrack_v = lardly.data.visualize_larlite_event_crttrack( evtracks, "crttrack", notimeshift=args.no_timeshift)
    traces_v += crttrack_v
else:
    print("No CRT Track Objects in event")

if args.larflow is not None:
    ev_larmatch = io_ll.get_data(larlite.data.kLArFlow3DHit, "larmatch")
    if ev_larmatch.size()>0:
        lfcluster = [ lardly.data.visualize_larlite_larflowhits( ev_larmatch, max_hits=30000 ) ]
        traces_v += lfcluster
    else:
        print("No LArMatch hits found")
        

detdata = lardly.DetectorOutline()
crtdet  = lardly.CRTOutline()

app = dash.Dash(
    __name__,
    meta_tags=[{"name": "viewport", "content": "width=device-width, initial-scale=1"}],
)

server = app.server

axis_template = {
    "showbackground": True,
    "backgroundcolor": "#141414",
    "gridcolor": "rgb(255, 255, 255)",
    "zerolinecolor": "rgb(255, 255, 255)",
}
Esempio n. 2
0
from larlite import larlite
from larcv import larcv
from larflow import larflow
larcv.SetPyUtil()

import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from dash.exceptions import PreventUpdate

import lardly

# get graphs that draw the detector outlines
detdata = lardly.DetectorOutline().getlines()
crtdata = lardly.CRTOutline().getlines()

# debug, use fixed file names, eventually use arguments
merged_inputfile = args.input_dlmerged
track_inputfile = args.input_cluster
crt_inputfile = args.input_crtmatch

io = larlite.storage_manager(larlite.storage_manager.kREAD)
io.add_in_filename(merged_inputfile)
io.add_in_filename(crt_inputfile)
io.open()

NENTRIES = io.get_entries()
print("NENTRIES: ", NENTRIES)