Ejemplo n.º 1
0
channels = options.channels.split()
for idx in range(len(channels)):
    channels[idx] = channels[idx].rstrip(',')

for channel in channels:
    for period in periods:
        for cat in ['0']:
            for mass in parseArgs(args):
                for process in ['ggH', 'bbH']:
                    exe = "{CMSSW_BASE}/src/HiggsAnalysis/HiggsToTauTau/macros/rescaleSignal.C+".format(
                        CMSSW_BASE=os.environ.get("CMSSW_BASE"))
                    os.system(
                        r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}.root\",\"{PROCESS}\",0\)"
                        .format(EXE=exe,
                                PATH=source_path,
                                SCALE=acceptance_correction(
                                    process, mass, period),
                                CHN=channel,
                                PER=period,
                                MASSCAT=mass_category(mass, cat,
                                                      'htt_' + channel),
                                PROCESS=process + str(mass)))
                    if channel == "mm":
                        os.system(
                            r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}-msv.root\",\"{PROCESS}\",0\)"
                            .format(EXE=exe,
                                    PATH=source_path,
                                    SCALE=acceptance_correction(
                                        process, mass, period),
                                    CHN=channel,
                                    PER=period,
                                    MASSCAT=mass_category(
Ejemplo n.º 2
0
        exit(1)
else:
    source_path = options.input

## periods
periods = options.periods.split()
for idx in range(len(periods)):
    periods[idx] = periods[idx].rstrip(',')
## channels
channels = options.channels.split()
for idx in range(len(channels)):
    channels[idx] = channels[idx].rstrip(',')

for channel in channels:
    for period in periods:
        for cat in ['0']:
            for mass in parseArgs(args):
                for process in ['ggH', 'bbH']:
                    exe = "{CMSSW_BASE}/src/HiggsAnalysis/HiggsToTauTau/macros/rescaleSignal.C+".format(
                        CMSSW_BASE=os.environ.get("CMSSW_BASE"))
                    os.system(
                        r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}.root\",\"{PROCESS}\",0\)"
                        .format(EXE=exe,
                                PATH=source_path,
                                SCALE=acceptance_correction(process, mass),
                                CHN=channel,
                                PER=period,
                                MASSCAT=mass_category(mass, cat,
                                                      'htt_' + channel),
                                PROCESS=process + str(mass)))
for idx in range(len(periods)) : periods[idx] = periods[idx].rstrip(',')
## channels
channels = options.channels.split()
for idx in range(len(channels)) : channels[idx] = channels[idx].rstrip(',')

for channel in channels :
    for period in periods :
        print period
        for cat in ['0'] :
            for mass in parseArgs(args) :
                for process in ['ggH', 'bbH'] :
                    exe = "{CMSSW_BASE}/src/HiggsAnalysis/HiggsToTauTau/macros/rescaleSignal.C+".format(CMSSW_BASE=os.environ.get("CMSSW_BASE"))
                    os.system(r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}.root\",\"{PROCESS}\",0\)".format(
                        EXE=exe,
                        PATH=source_path,
                        SCALE=acceptance_correction(process, mass, period),
                        CHN=channel,
                        PER=period,
                        MASSCAT=mass_category(mass,cat,'htt_'+channel),
                        PROCESS=process+str(mass)
                        ))
                    if channel=="mm" :
                        os.system(r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}-msv.root\",\"{PROCESS}\",0\)".format(
                            EXE=exe,
                            PATH=source_path,
                            SCALE=acceptance_correction(process, mass, period),
                            CHN=channel,
                            PER=period,
                            MASSCAT=mass_category(mass,cat,'htt_'+channel),
                            PROCESS=process+str(mass)
                            ))
Ejemplo n.º 4
0
        source_path = "%s/src/%s" % (os.environ['CMSSW_BASE'], options.input)
    else :
        print "ERROR: path", options.input, "does not exist."
        exit(1)
else:
    source_path = options.input

## periods
periods = options.periods.split()
for idx in range(len(periods)) : periods[idx] = periods[idx].rstrip(',')
## channels
channels = options.channels.split()
for idx in range(len(channels)) : channels[idx] = channels[idx].rstrip(',')

for channel in channels :
    for period in periods :
        for cat in ['0'] :
            for mass in parseArgs(args) :
                for process in ['ggH', 'bbH'] :
                    exe = "{CMSSW_BASE}/src/HiggsAnalysis/HiggsToTauTau/macros/rescaleSignal.C+".format(CMSSW_BASE=os.environ.get("CMSSW_BASE"))
                    os.system(r"root -l -b -q {EXE}\(true,{SCALE},\"{PATH}/{CHN}/htt_{CHN}.inputs-mssm-{PER}-{MASSCAT}.root\",\"{PROCESS}\",0\)".format(
                        EXE=exe,
                        PATH=source_path,
                        SCALE=acceptance_correction(process, mass),
                        CHN=channel,
                        PER=period,
                        MASSCAT=mass_category(mass,cat,'htt_'+channel),
                        PROCESS=process+str(mass)
                        ))