test = True

if test:

    x = Sample( FileName = 'rootFiles/mtestReadoutAnalysis_siliconDigitPlots.root', Type = 'h', Sumw2 = False, Label = 'ReadoutAna_siliconTruthSanityPlots')

    print x

    x.Type2D = 'COLZ'
    x.LineColour = 4

    samples = [x]
    
    plots = Plotter(samples)
    plots.PlotLegend = False

    # PER EVENT HISTOS

    fname = "plots/mtestReadoutAnalysis/siliconDigitPlots"

# h_firstSiliconHitLayer
    plots.Print("rawTime",  xtitle='time', ytitle='events', outname = fname + '/rawTime')

# h_firstSiliconHitView
    plots.Print("f_scintTime",  xtitle='hitTime', ytitle='events', outname = fname + '/f_scintTime')
    
# h_firstSiliconHitView
    plots.Print("b_scintTime",  xtitle='hitTime', ytitle='events', outname = fname + '/b_scintTime')

# h_firstSiliconHitView