alja / cmssw

CMS Offline Software
cms-sw.github.io/cmssw
1 stars 0 forks source link

FullFramework summary #75

Open alja opened 8 years ago

alja commented 8 years ago

Example

https://github.com/cms-sw/cmssw/pull/8369

alja commented 8 years ago

cat si^Calja@genki cms-dev> cat simple.py

!/usr/bin/env python

import FWCore.ParameterSet.Config as cms

process = cms.Process("FFWDISPLAY")

from RecoMET.METProducers.METSigParams_cfi import *

process.source = cms.Source( "PoolSource", fileNames=cms.untracked.vstring('http://fireworks.web.cern.ch/fireworks/7/RelVal ZEE-reco.root') )

process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")

from Configuration.AlCa.autoCond import autoCond

process.GlobalTag.globaltag = autoCond['startup']

process.options = cms.untracked.PSet(SkipEvent = cms.untracked.vstring('ProductN otFound'))

process.xxxmet = cms.EDProducer( "CaloMETProducer", METSignificance_params, src = cms.InputTag("towerMaker"), METType = cms.string('XXXCaloMET'), alias = cms.string('XXXRawCaloMET'), noHF = cms.bool(False), globalThreshold = cms.double(0.3), InputType = cms.string('CandidateCollection'), calculateSignificance = cms.bool(True) )

process.p = cms.Path(process.xxxmet)