ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/python/genConfig_cff.py
Revision: 1.2
Committed: Tue Feb 9 14:52:24 2010 UTC (15 years, 2 months ago) by amagnan
Content type: text/x-python
Branch: MAIN
CVS Tags: v00-05-00, HbbAnaFor35X, v00-04-02, v00-04-01, v00-04-00
Changes since 1.1: +9 -9 lines
Log Message:
export code to CMSSW_3_4_X

File Contents

# Content
1 ########################################
2 #### Created 14-Apr-09
3 #### by A.-M. Magnan
4 #### a.magnan@imperial.ac.uk
5 ########################################
6
7 import FWCore.ParameterSet.Config as cms
8 import copy
9
10 ####################################################################
11 ######### phase space info #########################################
12 ####################################################################
13
14 # import sequence for production of generator level information about phase-space simulated in Monte Carlo
15 # (needed to avoid overlap in phase-space simulated in different QCD background Monte Carlo samples)
16
17 genPhaseSpaceEventInfo = cms.EDProducer("GenPhaseSpaceEventInfoProducer",
18 srcGenEventScale = cms.InputTag('genEventScale'),
19 srcGenParticles = cms.InputTag('genParticles')
20 )
21
22 produceGenPhaseSpaceEventInfo = cms.Sequence(genPhaseSpaceEventInfo)
23
24 ####################################################################
25 #########tau genjets ###############################################
26 ####################################################################
27
28 from PhysicsTools.JetMCAlgos.TauGenJets_cfi import *
29
30 produceTauGenJets = cms.Sequence( tauGenJets )
31
32
33 ####################################################################
34 ######### genMET with muons ########################################
35 ####################################################################
36
37 import RecoMET.Configuration.GenMETParticles_cff
38 import RecoMET.METProducers.genMetCalo_cfi
39
40 genCandidatesForMETWithMu = RecoMET.Configuration.GenMETParticles_cff.genCandidatesForMET.clone()
41
42 genCandidatesForMETWithMu.ignoreParticleIDs = cms.vuint32(
43 1000022, 2000012, 2000014,
44 2000016, 1000039, 5000039,
45 4000012, 9900012, 9900014,
46 9900016, 39, 18, 12, 14, 16) ###These ID's will contribute to MET
47
48 genMETWithMu = RecoMET.METProducers.genMetCalo_cfi.genMetCalo.clone()
49 genMETWithMu.src = cms.InputTag("genCandidatesForMETWithMu") ## Output MET type
50 genMETWithMu.alias = cms.string('GenMETWithMu') ## Alias for FWLite
51
52 produceGenMETwithMu = cms.Sequence(genCandidatesForMETWithMu * genMETWithMu)
53
54