Ejemplo n.º 1
0
         0),  ## remaining EB is low R9
        ("EEHighR9", "min(leadingPhoton.r9,subLeadingPhoton.r9)>0.94",
         0),  ## then EE high R9
        ("EELowR9", "1", 0),  ## evereything elese is EE low R9
    ],
    ## variables to be dumped in trees/datasets. Same variables for all categories
    ## if different variables wanted for different categories, can add categorie one by one with cfgTools.addCategory
    variables=[
        "CMS_hgg_mass[320,100,180]:=mass",
        "leadPt                   :=leadingPhoton.pt",
        "subleadPt                :=subLeadingPhoton.pt",
        "minR9                    :=min(leadingPhoton.r9,subLeadingPhoton.r9)",
        "maxEta                   :=max(abs(leadingPhoton.superCluster.eta),abs(leadingPhoton.superCluster.eta))"
    ],
    ## histograms to be plotted.
    ## the variables need to be defined first
    histograms=[
        "CMS_hgg_mass>>mass(320,100,180)",
        "subleadPt:leadPt>>ptSubVsLead(180,20,200:180,20,200)",
        "minR9>>minR9(110,0,1.1)",
        "maxEta>>maxEta[0.,0.1,0.2,0.3,0.4,0.6,0.8,1.0,1.2,1.4442,1.566,1.7,1.8,2.,2.2,2.3,2.5]"
    ])

# customization for job splitting, lumi weighting, etc.
from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents", 500)
customize.setDefault("targetLumi", 1.e+4)
customize(process)

## print process.analyzer
                                  #"photonMVAOutput     :=MMG_Photon.PhoIdMvaDWrtVtx(Vertex)",
                                  "photonSCeta         :=MMG_Photon.superCluster.eta"
                                  #"evtrho              :=rho"
                                  ],
                         ## histograms to be plotted. 
                       ## the variables need to be defined first
                       histograms=["Mass_mmg>>mass(160,10,170)",
                                   "Mass_mumu>>mass_mumu(80,20,100)",
                                   "PT_mumu>>pt_mumu(100,0,100)",
                                   "Mass_mmg:Mass_mumu>>MmmgVsMmm(120,30,150:120,30,150)", 
                                   "subleadPt:leadPt>>ptSubVsLead(200,10,210:200,10,210)",
                                   #"evtrho>>eventRho(50, 0, 50)",
                                   "photonPT>>photonpt(100,10,110)",
                                   #"photonMVAOutput>>IDmva(80,0.2,1.0)",
                                   "photonSCeta>>scEta(50,-2.5,2.5)"
                                   #"maxEta>>maxEta[0.,0.1,0.2,0.3,0.4,0.6,0.8,1.0,1.2,1.4442,1.566,1.7,1.8,2.,2.2,2.3,2.5]"
                                   ]
                       )


process.p1 = cms.Path(
       process.mumugammaDumper
    )



from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents",-1)
customize(process)

			"leadptom   :=  leadptom  ",
			"subleadptom    :=  subleadptom ",
			"leadmva :=  leadmva ",
			"subleadmva    :=  subleadmva    ",
			"leadeta     :=  leadeta     ",
			"subleadeta  := subleadeta",
			"sigmarv  := sigmarv",
     			"sigmawv  := sigmawv",
			"CosPhi := CosPhi",
			"vtxprob := vtxprob",
			"result := result",
			],
			histograms=[
			"result>>diphoMVAValue(100,-1,1)",
			]
			)
# split tree, histogram and datasets by process
process.DiPhotonMVADumperNew.nameTemplate ="$PROCESS_$SQRTS_$LABEL_$SUBCAT"


# customization for job splitting, lumi weighting, etc.
from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents",-1)
customize.setDefault("targetLumi",1.e+4)
customize(process)
process.p = cms.Path( process.flashggTagSequence
			*process.DiPhotonMVADumperNew
			)

process.e = cms.EndPath(process.out)
Ejemplo n.º 4
0
else:
    print 'mc'
    customizeMultiLeptonMultiJetSystematicsForMC(
        process)  # only central value, no syst. shifts
    print 'customization done'

process.TFileService = cms.Service("TFileService",
                                   fileName=cms.string("mytree.root"))

process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))

if customize.processType == "data":
    print 'data'
    process.p = cms.Path(process.hltHighLevel *
                         # process.flashggTagSequence*
                         process.flashggMultiLeptonMultiJetSystematics *
                         process.analysisTree)

else:
    print 'mc'
    process.p = cms.Path(
        # process.flashggTagSequence*
        process.flashggMultiLeptonMultiJetSystematics * process.analysisTree)

## set default options if needed
customize.setDefault("maxEvents", 10000)
customize.setDefault("targetLumi", 1e+3)
## call the customization
customize(process)
from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
process.hltHighLevel = hltHighLevel.clone(HLTPaths=cms.vstring(
    "HLT_Diphoton30_18_R9Id_OR_IsoCaloId_AND_HE_R9Id_Mass95_v*"))

from flashgg.Taggers.flashggTagOutputCommands_cff import tagDefaultOutputCommand

process.TFileService = cms.Service("TFileService",
                                   fileName=cms.string("histo.root"),
                                   closeFileFast=cms.untracked.bool(True))

process.flashggUntagged.Boundaries = cms.vdouble(-2)

# customization for job splitting, lumi weighting, etc.
from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents", -1)
#customize.setDefault("processIndex",5)
customize.setDefault("targetLumi", 1.e+4)

customize.setDefault(
    "puTarget",
    '1.435e+05,6.576e+05,8.781e+05,1.304e+06,2.219e+06,5.052e+06,1.643e+07,6.709e+07,1.975e+08,3.527e+08,4.44e+08,4.491e+08,3.792e+08,2.623e+08,1.471e+08,6.79e+07,2.748e+07,1.141e+07,5.675e+06,3.027e+06,1.402e+06,5.119e+05,1.467e+05,3.53e+04,8270,2235,721.3,258.8,97.27,36.87,13.73,4.932,1.692,0.5519,0.1706,0.04994,0.01383,0.003627,0.0008996,0.0002111,4.689e-05,9.854e-06,1.959e-06,3.686e-07,6.562e-08,1.105e-08,1.762e-09,2.615e-10,4.768e-11,0,0,0'
)

customize.options.register(
    'diphoxml',
    'flashgg/Taggers/data/TMVAClassification_BDT_QCDflattened_pray.weights.xml',
    VarParsing.VarParsing.multiplicity.singleton,
    VarParsing.VarParsing.varType.string, 'diphoxml')

customize.options.register('runOnZ', '',
Ejemplo n.º 6
0
                           VarParsing.VarParsing.multiplicity.singleton,
                           VarParsing.VarParsing.varType.bool,
                           'verboseTagDump')
customize.options.register('verboseSystDump', False,
                           VarParsing.VarParsing.multiplicity.singleton,
                           VarParsing.VarParsing.varType.bool,
                           'verboseSystDump')

print "Printing defaults"
print 'doFiducial ' + str(customize.doFiducial)
print 'acceptance ' + str(customize.acceptance)
print 'tthTagsOnly ' + str(customize.tthTagsOnly)
# import flashgg customization to check if we have signal or background
from flashgg.MetaData.JobConfig import customize
# set default options if needed
customize.setDefault("maxEvents", -1)
customize.setDefault("targetLumi", 1.00e+3)
customize.parse()
customize.metaConditions = MetaConditionsReader(customize.metaConditions)

### Global Tag
from Configuration.AlCa.GlobalTag import GlobalTag
if customize.processId == "Data":
    process.GlobalTag.globaltag = str(
        customize.metaConditions['globalTags']['data'])
else:
    process.GlobalTag.globaltag = str(
        customize.metaConditions['globalTags']['MC'])

from flashgg.Systematics.SystematicsCustomize import *
jetSystematicsInputTags = createStandardSystematicsProducers(
Ejemplo n.º 7
0

from flashgg.Taggers.flashggTagOutputCommands_cff import tagDefaultOutputCommand


process.TFileService = cms.Service("TFileService",
			fileName = cms.string("histo.root"),
			closeFileFast = cms.untracked.bool(True)
			)


process.flashggUntagged.Boundaries=cms.vdouble(-2)

# customization for job splitting, lumi weighting, etc.
from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents",-1)
#customize.setDefault("processIndex",5)
customize.setDefault("targetLumi",1.e+4)

customize.setDefault("puTarget", '1.435e+05,6.576e+05,8.781e+05,1.304e+06,2.219e+06,5.052e+06,1.643e+07,6.709e+07,1.975e+08,3.527e+08,4.44e+08,4.491e+08,3.792e+08,2.623e+08,1.471e+08,6.79e+07,2.748e+07,1.141e+07,5.675e+06,3.027e+06,1.402e+06,5.119e+05,1.467e+05,3.53e+04,8270,2235,721.3,258.8,97.27,36.87,13.73,4.932,1.692,0.5519,0.1706,0.04994,0.01383,0.003627,0.0008996,0.0002111,4.689e-05,9.854e-06,1.959e-06,3.686e-07,6.562e-08,1.105e-08,1.762e-09,2.615e-10,4.768e-11,0,0,0')

customize.options.register('diphoxml',
                           'flashgg/Taggers/data/TMVAClassification_BDT_QCDflattened_pray.weights.xml',
                           VarParsing.VarParsing.multiplicity.singleton,
                           VarParsing.VarParsing.varType.string,
                           'diphoxml'
                           )

customize.options.register('runOnZ',
                           '',
                           VarParsing.VarParsing.multiplicity.singleton,
Ejemplo n.º 8
0
################################
## Dump merged tags to screen ##
################################

#process.load("flashgg/Taggers/flashggTagTester_cfi")
#process.flashggTagTester.TagSorter = cms.InputTag("flashggTagSystematics")
#process.flashggTagTester.TagSorter = cms.InputTag("flashggSystTagMerger")
#process.flashggTagTester.ExpectMultiples = cms.untracked.bool(True)
#process.p += process.flashggTagTester

##############
## Dump EDM ##
##############

#process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('CustomizeWillChangeThisAnyway.root'),
#                               outputCommands = cms.untracked.vstring('keep *') # dump everything! small tests only!
#                               )
#process.e = cms.EndPath(process.out)

############################
## Dump the output Python ##
############################
#processDumpFile = open('processDump.py', 'w')
#print >> processDumpFile, process.dumpPython()

# set default options if needed
customize.setDefault("maxEvents",100)
customize.setDefault("targetLumi",2.21e+3)
# call the customization
customize(process)
Ejemplo n.º 9
0
                       ## variables to be dumped in trees/datasets. Same variables for all categories
                       variables=dipho_variables+
                       ["dRphoLeadJ    := min(deltaR(leadingJet.eta, leadingJet.phi, diPhoton.leadingPhoton.eta, diPhoton.leadingPhoton.phi), deltaR(leadingJet.eta, leadingJet.phi, diPhoton.subLeadingPhoton.eta, diPhoton.subLeadingPhoton.phi))",
                        "dRphoSubleadJ := min(deltaR(subLeadingJet.eta, subLeadingJet.phi, diPhoton.leadingPhoton.eta, diPhoton.leadingPhoton.phi), deltaR(subLeadingJet.eta, subLeadingJet.phi, diPhoton.subLeadingPhoton.eta, diPhoton.subLeadingPhoton.phi))",
                        "leadJPt       := leadingJet.pt",
                        "leadJEta      := leadingJet.eta",
                        "subleadJPt    := subLeadingJet.pt",
                        "subleadJEta   := leadingJet.eta",
                        "Mjj           := sqrt((leadingJet.energy+subLeadingJet.energy)^2-(leadingJet.px+subLeadingJet.px)^2-(leadingJet.py+subLeadingJet.py)^2-(leadingJet.pz+subLeadingJet.pz)^2)",
                    ],
                       ## histograms
                       histograms=[]
)

from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents" ,-1)    # max-number of events
customize.setDefault("targetLumi",2.11e+3) # define integrated lumi
customize(process)

process.p1 = cms.Path(
    process.flashggTagSequence*
    #    process.flashggTagTester* # Uncommment if you what to test VBFtag
    process.untaggedDumper
    +process.vbfTagDumper
    +process.thqLeptonicTagDumper
    +process.tthLeptonicTagDumper
    +process.tthHadronicTagDumper
    +process.vhLooseTagDumper                      
    +process.vhTightTagDumper
    +process.vhHadronicTagDumper
)
Ejemplo n.º 10
0
cats = []
if doJetSystTrees:
    for syst in jetsystlabels:
        systcutstring = "hasSyst(\"%s\") " % syst
        cats += [("ZPlusJet_%s" % syst, systcutstring, 0)]

cats += [("ZPlusJet", "1", 0)]

cfgTools.addCategories(process.ZPlusJetTagDumper,
                       cats,
                       variables=all_variables,
                       histograms=[])

process.ZPlusJetTagDumper.nameTemplate = "$PROCESS_$SQRTS_$CLASSNAME_$SUBCAT_$LABEL"

customize.setDefault("maxEvents", 5000)  # max-number of events
customize.setDefault("targetLumi", 1.00e+3)  # define integrated lumi
customize(process)

from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
#process.hltHighLevel = hltHighLevel.clone(HLTPaths = cms.vstring("HLT_Diphoton30_18_R9Id_OR_IsoCaloId_AND_HE_R9Id_Mass95_v*") )
process.hltHighLevel = hltHighLevel.clone(
    HLTPaths=cms.vstring("HLT_Ele17_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*"))
process.options = cms.untracked.PSet(wantSummary=cms.untracked.bool(True))

# ee bad supercluster filter on data
process.load('RecoMET.METFilters.eeBadScFilter_cfi')
process.eeBadScFilter.EERecHitSource = cms.InputTag(
    "reducedEgamma",
    "reducedEERecHits")  # Saved MicroAOD Collection (data only)
process.dataRequirements = cms.Sequence()
        "Mass_mmg            :=mass",
        "Mass_mumu           :=DiMuPtr.mass",
        "PT_mumu             :=DiMuPtr.pt",
        "leadPt              :=DiMuPtr.leadingMuon.pt",
        "subleadPt           :=DiMuPtr.subleadingMuon.pt",
        "photonPT            :=MMG_Photon.pt",
        #"photonMVAOutput     :=MMG_Photon.PhoIdMvaDWrtVtx(Vertex)",
        "photonSCeta         :=MMG_Photon.superCluster.eta"
        #"evtrho              :=rho"
    ],
    ## histograms to be plotted.
    ## the variables need to be defined first
    histograms=[
        "Mass_mmg>>mass(160,10,170)",
        "Mass_mumu>>mass_mumu(80,20,100)",
        "PT_mumu>>pt_mumu(100,0,100)",
        "Mass_mmg:Mass_mumu>>MmmgVsMmm(120,30,150:120,30,150)",
        "subleadPt:leadPt>>ptSubVsLead(200,10,210:200,10,210)",
        #"evtrho>>eventRho(50, 0, 50)",
        "photonPT>>photonpt(100,10,110)",
        #"photonMVAOutput>>IDmva(80,0.2,1.0)",
        "photonSCeta>>scEta(50,-2.5,2.5)"
        #"maxEta>>maxEta[0.,0.1,0.2,0.3,0.4,0.6,0.8,1.0,1.2,1.4442,1.566,1.7,1.8,2.,2.2,2.3,2.5]"
    ])

process.p1 = cms.Path(process.mumugammaDumper)

from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents", -1)
customize(process)
Ejemplo n.º 12
0
        "caloMET_rawPt>>caloMET_rawPt(250,0,500)",
        "caloMET_rawSumEt>>caloMET_rawSumEt(400,200,2000)",
        "pfMET_rawPhi>>pfMET_rawPhi(100,-3.14,3.14)",
        "pfMET_corPhi>>pfMET_corPhi(100,-3.14,3.14)",
        "caloMET_rawPhi>>caloMET_rawPhi(100,-3.14,3.14)",
        #"genMET_pt>>genMET_pt(250,0,500)",
        #"genMET_phi>>genMET_phi(100,-3.14,3.14)",
        #"genMET_sumEt>>genMET_sumEt(400,200,2000)"
    ])

process.p = cms.Path(process.flashggTagSequence * process.flashggTagTester *
                     process.vhEtTagDumper)
#process.p = cms.Path(process.flashggTagSequence)

#process.e = cms.EndPath(process.out)

# import flashgg customization
from flashgg.MetaData.JobConfig import customize
# set default options if needed
customize.setDefault("maxEvents", -1)
customize.setDefault("targetLumi", 10e+3)
customize.setDefault(
    "puTarget",
    '1.34e+05,6.34e+05,8.42e+05,1.23e+06,2.01e+06,4.24e+06,1.26e+07,4.88e+07,1.56e+08,3.07e+08,4.17e+08,4.48e+08,4.04e+08,3.05e+08,1.89e+08,9.64e+07,4.19e+07,1.71e+07,7.85e+06,4.2e+06,2.18e+06,9.43e+05,3.22e+05,8.9e+04,2.16e+04,5.43e+03,1.6e+03,551,206,80.1,31.2,11.9,4.38,1.54,0.518,0.165,0.0501,0.0144,0.00394,0.00102,0.000251,5.87e-05,1.3e-05,2.74e-06,5.47e-07,1.04e-07,1.86e-08,3.18e-09,5.16e-10,9.35e-11,0,0'
)

# OLD customize.setDefault("puTarget", '1.435e+05,6.576e+05,8.781e+05,1.304e+06,2.219e+06,5.052e+06,1.643e+07,6.709e+07,1.975e+08,3.527e+08,4.44e+08,4.491e+08,3.792e+08,2.623e+08,1.471e+08,6.79e+07,2.748e+07,1.141e+07,5.675e+06,3.027e+06,1.402e+06,5.119e+05,1.467e+05,3.53e+04,8270,2235,721.3,258.8,97.27,36.87,13.73,4.932,1.692,0.5519,0.1706,0.04994,0.01383,0.003627,0.0008996,0.0002111,4.689e-05,9.854e-06,1.959e-06,3.686e-07,6.562e-08,1.105e-08,1.762e-09,2.615e-10,4.768e-11,0,0,0')

# call the customization
customize(process)
Ejemplo n.º 13
0
################################
## Dump merged tags to screen ##
################################

# process.load("flashgg/Taggers/flashggTagTester_cfi")
# process.flashggTagTester.TagSorter = cms.InputTag("flashggSystTagMerger")
# process.flashggTagTester.ExpectMultiples = cms.untracked.bool(True)
# process.p += process.flashggTagTester

##############
## Dump EDM ##
##############

# process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('CustomizeWillChangeThisAnyway.root'),
#                               outputCommands = cms.untracked.vstring('keep *') # dump everything! small tests only!
#                               )
# process.e = cms.EndPath(process.out)

############################
## Dump the output Python ##
############################
# print process.dumpPython()
# processDumpFile = open('processDump.py', 'w')
# print >> processDumpFile, process.dumpPython()

# set default options if needed
customize.setDefault("maxEvents", 300)
customize.setDefault("targetLumi", 2.61e3)
# call the customization
customize(process)
Ejemplo n.º 14
0
                                  "ph.r9:=photon.r9",
                                  "ph.sigietaieta:=photon.sigmaIetaIeta",
                                  "ph.scetawidth:=photon.superCluster.etaWidth",
                                  "ph.scphiwidth:=photon.superCluster.phiWidth",
                                  "ph.idmva_CoviEtaiPhi:=photon.sieip",
                                  "ph.idmva_s4ratio:=photon.s4",
                                  "ph.idmva_GammaIso:=photon.pfPhoIso03",
                                  "ph.idmva_ChargedIso_selvtx:=pfChIso03WrtChosenVtx",
                                  "ph.idmva_ChargedIso_worstvtx:=photon.pfChgIsoWrtWorstVtx03",
                                  "ph.sceta:=photon.superCluster.eta",
                                  "rho:=global.rho",
                                  "ph.idmva_PsEffWidthSigmaRR:=photon.esEffSigmaRR"
                                  ],
                                 "BDT",
                                 "flashgg/MicroAOD/data/2013FinalPaper_PhotonID_Endcap_BDT_TrainRangePT15_8TeV.weights.xml",
                                 )
                                ]
                       )


process.p1 = cms.Path(
    process.kinPreselDiPhotons*process.flashggSinglePhotonViews*process.photonViewDumper
    )



from flashgg.MetaData.JobConfig import customize
customize.setDefault("maxEvents",100)
customize(process)

Ejemplo n.º 15
0
process.bbggtree.dataPu=cms.vdouble()
process.bbggtree.mcPu=cms.vdouble()

process.source = cms.Source("PoolSource",
    # replace 'myfile.root' with the source file you want to use
    fileNames = cms.untracked.vstring("test.root")
)
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32( 2000 )

# import flashgg customization
from flashgg.MetaData.JobConfig import customize
import FWCore.ParameterSet.VarParsing as VarParsing
# set default options if needed
customize.setDefault("maxEvents",-1)
customize.setDefault("targetLumi",2.58e+3)

customize.register('doSelection',
					False,
					VarParsing.VarParsing.multiplicity.singleton,
					VarParsing.VarParsing.varType.bool,
					'False: Make tree before selection; True: Make tree after selection')
customize.register('doDoubleCountingMitigation',
					False,
					VarParsing.VarParsing.multiplicity.singleton,
					VarParsing.VarParsing.varType.bool,
					'False: Do not remove double counted photons from QCD/GJet/DiPhotonJets; True: Remove double counted photons from QCD/GJet/DiPhotonJets')
customize.register('nPromptPhotons',
					0,
					VarParsing.VarParsing.multiplicity.singleton,
Ejemplo n.º 16
0
#process.flashggTagTester.ExpectMultiples = cms.untracked.bool(True)
#process.p += process.flashggTagTester

############################################
## Additional details on tag sorter steps ##
############################################

#process.flashggTagSorter.Debug = True

##############
## Dump EDM ##
##############

#process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('CustomizeWillChangeThisAnyway.root'),
#                               outputCommands = cms.untracked.vstring('keep *') # dump everything! small tests only!
#                               )
#process.e = cms.EndPath(process.out)

############################
## Dump the output Python ##
############################
#print process.dumpPython()
#processDumpFile = open('processDump.py', 'w')
#print >> processDumpFile, process.dumpPython()

# set default options if needed
customize.setDefault("maxEvents",600)
customize.setDefault("targetLumi",1.00e+3)
# call the customization
customize(process)
Ejemplo n.º 17
0
################################
## Dump merged tags to screen ##
################################

#process.load("flashgg/Taggers/flashggTagTester_cfi")
#process.flashggTagTester.TagSorter = cms.InputTag("flashggSystTagMerger")
#process.flashggTagTester.ExpectMultiples = cms.untracked.bool(True)
#process.p += process.flashggTagTester

##############
## Dump EDM ##
##############

#process.out = cms.OutputModule("PoolOutputModule", fileName = cms.untracked.string('CustomizeWillChangeThisAnyway.root'),
#                               outputCommands = cms.untracked.vstring('keep *') # dump everything! small tests only!
#                               )
#process.e = cms.EndPath(process.out)

############################
## Dump the output Python ##
############################
#print process.dumpPython()
#processDumpFile = open('processDump.py', 'w')
#print >> processDumpFile, process.dumpPython()

# set default options if needed
customize.setDefault("maxEvents", 300)
customize.setDefault("targetLumi", 2.61e+3)
# call the customization
customize(process)
    #("excluded","1",0)
    ]

cfgTools.addCategories(process.vbfTagDumper,
                       cats,
                       variables  = all_variables,
                       histograms = []
)

print cats


#process.vbfTagDumper.nameTemplate ="$PROCESS_$SQRTS_$LABEL_$SUBCAT_$CLASSNAME"
process.vbfTagDumper.nameTemplate = "$PROCESS_$SQRTS_$CLASSNAME_$SUBCAT_$LABEL"

customize.setDefault("maxEvents" , -1     ) # max-number of events
customize.setDefault("targetLumi", 1.00e+3  ) # define integrated lumi
customize(process)

from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
process.hltHighLevel = hltHighLevel.clone(HLTPaths = cms.vstring("HLT_Diphoton30_18_R9Id_OR_IsoCaloId_AND_HE_R9Id_Mass95_v1") )
process.options      = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )

process.hltRequirement = cms.Sequence()
if customize.processId == "Data" and requireTriggerOnData:
        process.hltRequirement += process.hltHighLevel

if doSystematics:
    process.p1 = cms.Path(
        process.hltRequirement*
        process.flashggDiPhotonSystematics*
Ejemplo n.º 19
0
                                   "pfMET_rawPhi>>pfMET_rawPhi(100,-3.14,3.14)",
                                   "pfMET_corPhi>>pfMET_corPhi(100,-3.14,3.14)",
                                   "caloMET_rawPhi>>caloMET_rawPhi(100,-3.14,3.14)",
                                   #"genMET_pt>>genMET_pt(250,0,500)",
                                   #"genMET_phi>>genMET_phi(100,-3.14,3.14)",
                                   #"genMET_sumEt>>genMET_sumEt(400,200,2000)"
                                  ]
                       )




process.p = cms.Path(process.flashggTagSequence*process.flashggTagTester*process.vhEtTagDumper)
#process.p = cms.Path(process.flashggTagSequence)

#process.e = cms.EndPath(process.out)

# import flashgg customization
from flashgg.MetaData.JobConfig import customize
# set default options if needed
customize.setDefault("maxEvents",-1)
customize.setDefault("targetLumi",10e+3)
customize.setDefault("puTarget",'1.34e+05,6.34e+05,8.42e+05,1.23e+06,2.01e+06,4.24e+06,1.26e+07,4.88e+07,1.56e+08,3.07e+08,4.17e+08,4.48e+08,4.04e+08,3.05e+08,1.89e+08,9.64e+07,4.19e+07,1.71e+07,7.85e+06,4.2e+06,2.18e+06,9.43e+05,3.22e+05,8.9e+04,2.16e+04,5.43e+03,1.6e+03,551,206,80.1,31.2,11.9,4.38,1.54,0.518,0.165,0.0501,0.0144,0.00394,0.00102,0.000251,5.87e-05,1.3e-05,2.74e-06,5.47e-07,1.04e-07,1.86e-08,3.18e-09,5.16e-10,9.35e-11,0,0')


# OLD customize.setDefault("puTarget", '1.435e+05,6.576e+05,8.781e+05,1.304e+06,2.219e+06,5.052e+06,1.643e+07,6.709e+07,1.975e+08,3.527e+08,4.44e+08,4.491e+08,3.792e+08,2.623e+08,1.471e+08,6.79e+07,2.748e+07,1.141e+07,5.675e+06,3.027e+06,1.402e+06,5.119e+05,1.467e+05,3.53e+04,8270,2235,721.3,258.8,97.27,36.87,13.73,4.932,1.692,0.5519,0.1706,0.04994,0.01383,0.003627,0.0008996,0.0002111,4.689e-05,9.854e-06,1.959e-06,3.686e-07,6.562e-08,1.105e-08,1.762e-09,2.615e-10,4.768e-11,0,0,0')


# call the customization
customize(process)