예제 #1
0
파일: mergeDef.py 프로젝트: uboone/larlite
def GetSecondMergerInstance(producer='fuzzycluster', saveOutput=True):
    merger_instance = fmwk.ClusterMerger()
    ConfigureSecondMergerInstance(merger_instance,
                                  producer=producer,
                                  saveOutput=saveOutput)
    return merger_instance
예제 #2
0
#last arg should be output file name
out_file = sys.argv[-1]
if os.path.isfile(out_file):
    print
    print 'ERROR: output file already exist...'
    print
    sys.exit(0)

mgr.set_output_file(out_file)

mgr.set_io_mode(ll.storage_manager.kBOTH)

mgr.set_ana_output_file("")

merger_instance = ll.ClusterMerger()
merger_instance.SaveOutputCluster(True)

polar = cmtool.CBAlgoPolar()
polar.SetBufferAngle(0.0)
polar.SetVerbose(False)
polar.SetMergeTillConverge(True)

vtxalign = cmtool.CBAlgoVtxAlign()
vtxalign.SetUsePairWise(False)
vtxalign.SetVerbose(False)
vtxalign.SetMergeTillConverge(True)
vtxalign.SetMaxAngleDiff(12)
vtxalign.SetMinGammaOAngle(15)
vtxalign.SetMaxMergeDist(3)
vtxalign.SetMinNHits(10)