예제 #1
0
def make_plot():
    workpath = sys.argv[1]
    dirname = sys.argv[2]
    os.system("mkdir -p %s/%s/{make_plots,rootfiles,plots}" % (workpath, dirname) )
    write_objects.write_plots( workpath+"/"+dirname+"/make_plots/", "", "Basic" )
    write_objects.write_makefile2( workpath, dirname )

    joypath0 = sys.argv[0].split("/")
    joypath0.remove("makeSimple.py")
    joypath0.remove("scripts")
    joypath = "/".join(joypath0)
    write_objects.write_setup(joypath, workpath, dirname )
예제 #2
0
def make_skeleton():
    workpath = sys.argv[1]
    dirname = sys.argv[2]
    classname = sys.argv[3]
    os.system("mkdir -p %s/%s/{src,include,make_histos,make_plots,rootfiles,plots}" % (workpath, dirname) )
    write_objects.write_rootclass( workpath+"/"+dirname+"/src/", classname )
    write_objects.write_rootheader( workpath+"/"+dirname+"/include/", classname )
    write_objects.write_histos( workpath+"/"+dirname+"/make_histos/", classname, "Basic" )
    write_objects.write_plots( workpath+"/"+dirname+"/make_plots/", classname, "Basic" )
    write_objects.write_makefile(workpath, dirname, classname )

    joypath0 = sys.argv[0].split("/")
    joypath0.remove("makeAnaSkeleton.py")
    joypath0.remove("scripts")
    joypath = "/".join(joypath0)
    write_objects.write_setup(joypath, workpath, dirname, classname )
예제 #3
0
def make_skeleton():
	workpath = sys.argv[1]	
	dirname = sys.argv[2]
	classname = sys.argv[3]
	os.system('mkdir -p {0}/{1}/{{src,include,make_histos,make_plots,rootfiles,plots}}'.format(workpath, dirname) )
	write_objects.write_rootclass( workpath+"/"+dirname+"/src/", classname )
	write_objects.write_rootheader( workpath+"/"+dirname+"/include/", classname )
	write_objects.write_histos( workpath+"/"+dirname+"/make_histos/", classname, "Basic" )
	write_objects.write_plots( workpath+"/"+dirname+"/make_plots/", classname, "Basic" )
	write_objects.write_makefile(workpath, dirname, classname )

	joypath0 = sys.argv[0].split("/")
	joypath0.remove("makeAnaSkeleton.py")
	joypath0.remove("scripts_python3")	
	joypath = "/".join(joypath0)	
	print ("Joy dir: %s " % joypath)
	write_objects.write_setup(joypath, workpath, dirname )