if len(jecfile)>0: print " JECs applied: "+jecfile+(" (residuals)" if residual else "")
print " era of this dataset: "+era
print "************************************************"

from TreeMaker.TreeMaker.makeTreeFromMiniAOD_cff import makeTreeFromMiniAOD
process = makeTreeFromMiniAOD(process,
    outfile=outfile,
    reportfreq=reportfreq,
    dataset=readFiles,
    globaltag=globaltag,
    numevents=numevents,
    hadtau=hadtau,
    lostlepton=lostlepton,
    QCD=QCD,
    tagandprobe=tagandprobe,
    applybaseline=applybaseline,
    doZinv=doZinv,
    debugtracks=debugtracks,
    geninfo=geninfo,
    tagname=tagname,
    jsonfile=jsonfile,
    jecfile=jecfile,
    residual=residual,
    doPDFs=doPDFs,
    fastsim=fastsim
)

# final tweaks to process
process.options.SkipEvent = cms.untracked.vstring('ProductNotFound')
process.TFileService.closeFileFast = cms.untracked.bool(True)
process.load("Configuration.StandardSequences.Geometry_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')

###############
# tree maker
###############

from TreeMaker.TreeMaker.makeTreeFromMiniAOD_cff import makeTreeFromMiniAOD
makeTreeFromMiniAOD(process,
                    outfile="ReducedSelection",
                    reportfreq=1,
                    #dataset="file:/afs/cern.ch/user/b/bmahakud/public/DYJetsToLL_M-50_HT-600toInf_Tune4C_13TeV-madgraph-tauola_MINIAODSIM_PU20bx25_PHYS14_25_V1-v1.root",
                    dataset="/store/mc/RunIISpring15DR74/LQToUE_M-600_BetaOne_TuneCUETP8M1_13TeV-pythia8/MINIAODSIM/Asympt25ns_MCRUN2_74_V9-v1/30000/2EF235EC-6D31-E511-BD81-000F53273650.root",
                    globaltag="PHYS14_25_V2::All",
                    lostlepton=False,
                    numevents=500,
                    tagname="PAT",
                    geninfo=True,
                    jsonfile="",
                    applyjec=False

                    )

process.TreeMaker2.VectorRecoCand       = cms.vstring() 
process.TreeMaker2.VarsDouble           = cms.vstring()
process.TreeMaker2.VarsInt              = cms.vstring()
process.TreeMaker2.VarsBool             = cms.vstring()
process.TreeMaker2.VectorTLorentzVector = cms.vstring()
process.TreeMaker2.VectorDouble         = cms.vstring()
process.TreeMaker2.VectorString         = cms.vstring()
process.TreeMaker2.VectorInt            = cms.vstring()
Esempio n. 3
0
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load(
    'Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')

###############
# tree maker
###############

from TreeMaker.TreeMaker.makeTreeFromMiniAOD_cff import makeTreeFromMiniAOD
makeTreeFromMiniAOD(
    process,
    outfile="ReducedSelection",
    reportfreq=1,
    #dataset="file:/afs/cern.ch/user/b/bmahakud/public/DYJetsToLL_M-50_HT-600toInf_Tune4C_13TeV-madgraph-tauola_MINIAODSIM_PU20bx25_PHYS14_25_V1-v1.root",
    dataset=
    "/store/mc/RunIISpring15DR74/LQToUE_M-600_BetaOne_TuneCUETP8M1_13TeV-pythia8/MINIAODSIM/Asympt25ns_MCRUN2_74_V9-v1/30000/2EF235EC-6D31-E511-BD81-000F53273650.root",
    globaltag="PHYS14_25_V2::All",
    lostlepton=False,
    numevents=500,
    tagname="PAT",
    geninfo=True,
    jsonfile="",
    applyjec=False)

process.TreeMaker2.VectorRecoCand = cms.vstring()
process.TreeMaker2.VarsDouble = cms.vstring()
process.TreeMaker2.VarsInt = cms.vstring()
process.TreeMaker2.VarsBool = cms.vstring()
process.TreeMaker2.VectorTLorentzVector = cms.vstring()
process.TreeMaker2.VectorDouble = cms.vstring()
process.TreeMaker2.VectorString = cms.vstring()
process.TreeMaker2.VectorInt = cms.vstring()
process.load("Configuration.StandardSequences.Geometry_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')

###############
# tree maker
###############

from TreeMaker.TreeMaker.makeTreeFromMiniAOD_cff import makeTreeFromMiniAOD
makeTreeFromMiniAOD(process,
                    outfile="ReducedSelection",
                    reportfreq=50,
                    dataset="file:/afs/cern.ch/user/b/bmahakud/DYJetsToLL_M-50_HT-600toInf_Tune4C_13TeV-madgraph-tauola_MINIAODSIM_PU20bx25_PHYS14_25_V1-v1.root",
                    globaltag="PHYS14_25_V2::All",
                    lostlepton=False,
                    numevents=500,
                    tagname="PAT",
                    geninfo=True,
                    jsonfile="",
                    applyjec=False

                    )

process.TreeMaker2.VectorRecoCand       = cms.vstring() 
process.TreeMaker2.VarsDouble           = cms.vstring()
process.TreeMaker2.VarsInt              = cms.vstring()
process.TreeMaker2.VarsBool             = cms.vstring()
process.TreeMaker2.VectorTLorentzVector = cms.vstring()
process.TreeMaker2.VectorDouble         = cms.vstring()
process.TreeMaker2.VectorString         = cms.vstring()
process.TreeMaker2.VectorInt            = cms.vstring()