fitType  = 'nominalFit'
    if args.altSig : 
        fileName = sampleToFit.altSigFit
        fitType  = 'altSigFit'
    if args.altBkg : 
        fileName = sampleToFit.altBkgFit
        fitType  = 'altBkgFit'
        
    plottingDir = '%s/plots/%s/%s' % (outputDirectory,sampleToFit.name,fitType)
    if not os.path.exists( plottingDir ):
        os.makedirs( plottingDir )
    shutil.copy('etc/inputs/index.php.listPlots','%s/index.php' % plottingDir)

    for ib in range(len(tnpBins['bins'])):
        if (args.binNumber >= 0 and ib == args.binNumber) or args.binNumber < 0:
            tnpRoot.histPlotter( fileName, tnpBins['bins'][ib], plottingDir )

    print ' ===> Plots saved in <======='
#    print 'localhost/%s/' % plottingDir


####################################################################
##### dumping egamma txt file 
####################################################################
if args.sumUp:
    sampleToFit.dump()
    info = {
        'data'        : sampleToFit.histFile,
        'dataNominal' : sampleToFit.nominalFit,
        'dataAltSig'  : sampleToFit.altSigFit ,
        'dataAltBkg'  : sampleToFit.altBkgFit ,
Beispiel #2
0
        fileName = sampleToFit.altSigFit
        fitType = 'altSigFit'
    if args.altBkg:
        fileName = sampleToFit.altBkgFit
        fitType = 'altBkgFit'

    plottingDir = '%s/plots/%s/%s' % (outputDirectory, sampleToFit.name,
                                      fitType)
    if not os.path.exists(plottingDir):
        os.makedirs(plottingDir)
    shutil.copy('etc/inputs/index.php.listPlots', '%s/index.php' % plottingDir)

    for ib in range(len(tnpBins['bins'])):
        if (args.binNumber >= 0
                and ib == args.binNumber) or args.binNumber < 0:
            tnpRoot.histPlotter(fileName, tnpBins['bins'][ib], plottingDir)

    print ' ===> Plots saved in <======='
#    print 'localhost/%s/' % plottingDir

####################################################################
##### dumping egamma txt file
####################################################################
if args.sumUp:
    sampleToFit.dump()
    info = {
        'data': sampleToFit.histFile,
        'dataNominal': sampleToFit.nominalFit,
        'dataAltSig': sampleToFit.altSigFit,
        'dataAltBkg': sampleToFit.altBkgFit,
        'mcNominal': sampleToFit.mcRef.histFile,