ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/python/FastChainExample.py
Revision: 1.4
Committed: Tue Jul 21 23:39:57 2009 UTC (15 years, 9 months ago) by bendavid
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
State: FILE REMOVED
Log Message:
Removed old examples

File Contents

# Content
1 # $Id: FastChainExample.py,v 1.3 2009/07/20 05:04:20 loizides Exp $
2
3 import FWCore.ParameterSet.Config as cms
4
5 process = cms.Process('HLT')
6
7 # Import of standard configurations
8 process.load('FastSimulation/Configuration/RandomServiceInitialization_cff')
9 process.load('FastSimulation.PileUpProducer.PileUpSimulator10TeV_cfi')
10 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
11 process.load('Configuration/StandardSequences/Generator_cff')
12 process.load('FastSimulation/Configuration/FamosSequences_cff')
13 process.load('FastSimulation/Configuration/HLT_cff')
14 process.load('Configuration.StandardSequences.L1TriggerDefaultMenu_cff')
15 process.load('IOMC.EventVertexGenerators.VtxSmearedParameters_cfi')
16 process.load('FastSimulation/Configuration/CommonInputs_cff')
17 process.load('FastSimulation/Configuration/EventContent_cff')
18
19 process.configurationMetadata = cms.untracked.PSet(
20 version = cms.untracked.string('$Revision: 1.3 $'),
21 annotation = cms.untracked.string('PYTHIA6-MinBias at 10TeV'),
22 name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/UserCode/MitProd/TreeFiller/python/FastChainExample.py,v $')
23 )
24 process.maxEvents = cms.untracked.PSet(
25 input = cms.untracked.int32(50)
26 )
27 process.options = cms.untracked.PSet(
28 Rethrow = cms.untracked.vstring('ProductNotFound')
29 )
30
31 # input source
32 process.source = cms.Source("PythiaSource",
33 pythiaPylistVerbosity = cms.untracked.int32(1),
34 filterEfficiency = cms.untracked.double(1.0),
35 pythiaHepMCVerbosity = cms.untracked.bool(False),
36 comEnergy = cms.untracked.double(10000.0),
37 crossSection = cms.untracked.double(55000000000.0),
38 maxEventsToPrint = cms.untracked.int32(0),
39 PythiaParameters = cms.PSet(
40 pythiaUESettings = cms.vstring(
41 'MSTJ(11)=3 ! Choice of the fragmentation function',
42 'MSTJ(22)=2 ! Decay those unstable particles',
43 'PARJ(71)=10 . ! for which ctau 10 mm',
44 'MSTP(2)=1 ! which order running alphaS',
45 'MSTP(33)=0 ! no K factors in hard cross sections',
46 'MSTP(51)=10042 ! CTEQ6L1 structure function chosen',
47 'MSTP(52)=2 ! work with LHAPDF',
48 'MSTP(81)=1 ! multiple parton interactions 1 is Pythia default',
49 'MSTP(82)=4 ! Defines the multi-parton model',
50 'MSTU(21)=1 ! Check on possible errors during program execution',
51 'PARP(82)=1.8387 ! pt cutoff for multiparton interactions',
52 'PARP(89)=1960. ! sqrts for which PARP82 is set',
53 'PARP(83)=0.5 ! Multiple interactions: matter distrbn parameter',
54 'PARP(84)=0.4 ! Multiple interactions: matter distribution parameter',
55 'PARP(90)=0.16 ! Multiple interactions: rescaling power',
56 'PARP(67)=2.5 ! amount of initial-state radiation',
57 'PARP(85)=1.0 ! gluon prod. mechanism in MI',
58 'PARP(86)=1.0 ! gluon prod. mechanism in MI',
59 'PARP(62)=1.25 ! ',
60 'PARP(64)=0.2 ! ',
61 'MSTP(91)=1 !',
62 'PARP(91)=2.1 ! kt distribution',
63 'PARP(93)=15.0 !'),
64 processParameters = cms.vstring(
65 'MSEL = 0 ! User defined processes',
66 'MSUB(81) = 1 ! qqbar to QQbar',
67 'MSUB(82) = 1 ! gg to QQbar',
68 'MSTP(7) = 6 ! flavor = top',
69 'PMAS(6,1) = 172.4 ! top quark mass'),
70 parameterSets = cms.vstring(
71 'pythiaUESettings',
72 'processParameters')
73 )
74 )
75
76 # Other statements
77 process.famosPileUp.PileUpSimulator = process.PileUpSimulatorBlock.PileUpSimulator
78 process.famosPileUp.PileUpSimulator.averageNumber = 0
79 process.famosSimHits.SimulateCalorimetry = True
80 process.famosSimHits.SimulateTracking = True
81 process.famosSimHits.ActivateDecays.comEnergy = 10000
82 process.simulation = cms.Sequence(process.simulationWithFamos)
83 process.HLTEndSequence = cms.Sequence(process.reconstructionWithFamos)
84
85 # Set correct vertex smearing
86 process.Early10TeVCollisionVtxSmearingParameters.type = cms.string("BetaFunc")
87 process.famosSimHits.VertexGenerator = process.Early10TeVCollisionVtxSmearingParameters
88 process.famosPileUp.VertexGenerator = process.Early10TeVCollisionVtxSmearingParameters
89
90 # Apply tracker misalignment
91 process.famosSimHits.ApplyAlignment = True
92 process.misalignedTrackerGeometry.applyAlignment = True
93
94 process.GlobalTag.globaltag = 'IDEAL_V12::All'
95
96 try:
97 process.metreco.remove(process.tcMet)
98 except:
99 pass
100
101
102 # Path and EndPath definitions
103 process.generation_step = cms.Path(cms.SequencePlaceholder("randomEngineStateProducer")
104 +process.GeneInfo+process.genJetMET)
105 process.reconstruction = cms.Path(process.reconstructionWithFamos)
106 #process.out_step = cms.EndPath(process.output)
107
108 # Pre-load gsf tracks
109 process.load("MitEdm.TrackerElectrons.LoadTracks_cfi")
110
111 # Load MitTreeFiller
112 process.TreeService = cms.Service("TreeService",
113 fileNames = cms.untracked.vstring('mit-full'),
114 )
115 process.add_(cms.Service("ObjectService"))
116 process.load("MitProd.TreeFiller.MitTreeFiller_cfi")
117
118 # Reconfigure treefiller defaults for AOD content:
119 process.MitTreeFiller.MCParticles.simActive = False
120 process.MitTreeFiller.ConversionInOutTracks.active = False
121 process.MitTreeFiller.ConversionOutInTracks.active = False
122 process.MitTreeFiller.ConversionElectrons.active = False
123 process.MitTreeFiller.Conversions.active = False
124 process.MitTreeFiller.ItrCone5PFJets.active = False
125 process.MitTreeFiller.SisCone5PFJets.active = False
126 process.MitTreeFiller.SisCone7PFJets.active = False
127 process.MitTreeFiller.Kt4PFJets.active = False
128 process.MitTreeFiller.Kt6PFJets.active = False
129 process.MitTreeFiller.PFGsfTracks.active = False
130 process.MitTreeFiller.TCMet.active = False
131 process.MitTreeFiller.MetaInfos.hltActive = False
132 process.MitTreeFiller.ItrCone5Jets.bTaggingActive = False
133 process.MitTreeFiller.PFMet.active = False
134 process.MitTreeFiller.CaloTaus.active = False
135 process.MitTreeFiller.PFTaus.active = False
136
137 # Load Mit vProducer
138 process.load("MitProd.TreeFiller.vProducerNoRefit_cff")
139
140 process.load("Configuration.StandardSequences.Geometry_cff")
141
142 # Load ElectronID information
143 process.load("MitProd.TreeFiller.ElectronID_cfi")
144
145 # Load electron isolation value map producers
146 process.load("RecoEgamma.EgammaIsolationAlgos.eleIsoFromDeposits_cff")
147
148 # For Jet Corrections (Winter09 FastSim-specific Jet corrections)
149 process.load("JetMETCorrections.Configuration.L2L3Corrections_Winter09_cff")
150 process.prefer("L3JetCorrectorIC5Calo")
151 process.correctedJets = cms.Sequence(process.L2L3CorJetIC5Calo *
152 process.L2L3CorJetSC5Calo *
153 process.L2L3CorJetSC7Calo *
154 process.L2L3CorJetKT4Calo *
155 process.L2L3CorJetKT6Calo *
156 process.L2L3CorJetIC5JPT)
157
158 # Enable Jet Corrections for all of our Jet collections
159 process.MitTreeFiller.ItrCone5Jets.jetCorrectionsActive = True
160 process.MitTreeFiller.SisCone5Jets.jetCorrectionsActive = True
161 process.MitTreeFiller.SisCone7Jets.jetCorrectionsActive = True
162 process.MitTreeFiller.Kt4Jets.jetCorrectionsActive = True
163 process.MitTreeFiller.Kt6Jets.jetCorrectionsActive = True
164 process.MitTreeFiller.IC5JetPlusTrack.jetCorrectionsActive = True
165
166 # For JetPlusTracks
167 process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
168 process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
169 process.MitTreeFiller.IC5JetPlusTrack.active = True
170
171 # Load Met Corrections
172 process.load("MitProd.TreeFiller.MetCorrections_cfi")
173
174 # Load MHT sequence
175 process.load("MitProd.TreeFiller.MitMHT_cfi")
176
177 # Load track-corrected MET module
178 process.load("RecoMET.METProducers.TCMET_cfi")
179
180 # Load Flavor Matching Information
181 process.load("MitProd.TreeFiller.JetsMCFlavourMatching_cfi")
182
183 # Enable Flavor matching for Reco Jets and GenJets
184 #process.MitTreeFiller.ItrCone5Jets.flavorMatchingActive = True
185 #process.MitTreeFiller.SisCone5Jets.flavorMatchingActive = True
186 #process.MitTreeFiller.SisCone7Jets.flavorMatchingActive = True
187 #process.MitTreeFiller.Kt4Jets.flavorMatchingActive = True
188 #process.MitTreeFiller.Kt6Jets.flavorMatchingActive = True
189 #process.MitTreeFiller.IC5GenJets.flavorMatchingActive = True
190 #process.MitTreeFiller.SC5GenJets.flavorMatchingActive = True
191 #process.MitTreeFiller.SC7GenJets.flavorMatchingActive = True
192 #process.MitTreeFiller.KT4GenJets.flavorMatchingActive = True
193 #process.MitTreeFiller.KT6GenJets.flavorMatchingActive = True
194
195 # Produce jet vertex association information
196 process.load("MitProd.TreeFiller.JetVertexAssociation_cfi")
197
198 # Enable Jet Vertex association for Reco Jet collections
199 process.MitTreeFiller.ItrCone5Jets.jetToVertexActive = True
200 process.MitTreeFiller.SisCone5Jets.jetToVertexActive = True
201 process.MitTreeFiller.SisCone7Jets.jetToVertexActive = True
202 process.MitTreeFiller.Kt4Jets.jetToVertexActive = True
203 process.MitTreeFiller.Kt6Jets.jetToVertexActive = True
204
205 # Load track detector associator for Track-ECal association
206 process.load("MitProd.TreeFiller.TrackEcalAssociation_cfi")
207 process.MitTreeFiller.TrackAssociatorParameters = cms.untracked.PSet(process.TrackAssociatorParameters)
208
209 # Enable Track-Ecal assocation in fillers
210 process.MitTreeFiller.GeneralTracks.ecalAssocActive = True
211 process.MitTreeFiller.StandaloneMuonTracks.ecalAssocActive = True
212 process.MitTreeFiller.StandaloneMuonTracksWVtxConstraint.ecalAssocActive = True
213 process.MitTreeFiller.GlobalMuonTracks.ecalAssocActive = True
214 process.MitTreeFiller.ConversionInOutTracks.ecalAssocActive = True
215 process.MitTreeFiller.ConversionOutInTracks.ecalAssocActive = True
216 process.MitTreeFiller.GsfTracks.ecalAssocActive = True
217
218 #process.p1 = cms.Path(
219 # process.LoadTracks
220 #)
221
222 process.p2 = cms.Path(
223 process.vProducer *
224 process.eleIsoFromDeposits *
225 ( process.MitEIdSequence
226 + process.MitMetCorrections
227 # + process.caloJetMCFlavour
228 # + process.pfJetMCFlavour
229 + process.jetvertexAssociationSequence
230 + process.ZSPJetCorrections*process.JetPlusTrackCorrections
231 + process.correctedJets
232 + process.MitMHT
233 # + process.tcMet
234 ) *
235 process.MitTreeFiller
236 * process.vFiller
237 )
238
239 # Schedule definition
240 process.schedule = cms.Schedule(process.generation_step,process.HLTriggerFirstPath,process.HLT_L1Jet15,process.HLT_Jet30,process.HLT_Jet50,process.HLT_Jet80,process.HLT_Jet110,process.HLT_Jet180,process.HLT_Jet250,process.HLT_FwdJet20,process.HLT_DoubleJet150,process.HLT_DoubleJet125_Aco,process.HLT_DoubleFwdJet50,process.HLT_DiJetAve15,process.HLT_DiJetAve30,process.HLT_DiJetAve50,process.HLT_DiJetAve70,process.HLT_DiJetAve130,process.HLT_DiJetAve220,process.HLT_TripleJet85,process.HLT_QuadJet30,process.HLT_QuadJet60,process.HLT_SumET120,process.HLT_L1MET20,process.HLT_MET25,process.HLT_MET35,process.HLT_MET50,process.HLT_MET65,process.HLT_MET75,process.HLT_MET65_HT350,process.HLT_Jet180_MET60,process.HLT_Jet60_MET70_Aco,process.HLT_Jet100_MET60_Aco,process.HLT_DoubleJet125_MET60,process.HLT_DoubleFwdJet40_MET60,process.HLT_DoubleJet60_MET60_Aco,process.HLT_DoubleJet50_MET70_Aco,process.HLT_DoubleJet40_MET70_Aco,process.HLT_TripleJet60_MET60,process.HLT_QuadJet35_MET60,process.HLT_IsoEle15_L1I,process.HLT_IsoEle18_L1R,process.HLT_IsoEle15_LW_L1I,process.HLT_LooseIsoEle15_LW_L1R,process.HLT_Ele10_SW_L1R,process.HLT_Ele15_SW_L1R,process.HLT_Ele15_LW_L1R,process.HLT_EM80,process.HLT_EM200,process.HLT_DoubleIsoEle10_L1I,process.HLT_DoubleIsoEle12_L1R,process.HLT_DoubleIsoEle10_LW_L1I,process.HLT_DoubleIsoEle12_LW_L1R,process.HLT_DoubleEle5_SW_L1R,process.HLT_DoubleEle10_LW_OnlyPixelM_L1R,process.HLT_DoubleEle10_Z,process.HLT_DoubleEle6_Exclusive,process.HLT_IsoPhoton30_L1I,process.HLT_IsoPhoton10_L1R,process.HLT_IsoPhoton15_L1R,process.HLT_IsoPhoton20_L1R,process.HLT_IsoPhoton25_L1R,process.HLT_IsoPhoton40_L1R,process.HLT_Photon15_L1R,process.HLT_Photon25_L1R,process.HLT_DoubleIsoPhoton20_L1I,process.HLT_DoubleIsoPhoton20_L1R,process.HLT_DoublePhoton10_Exclusive,process.HLT_L1Mu,process.HLT_L1MuOpen,process.HLT_L2Mu9,process.HLT_IsoMu9,process.HLT_IsoMu11,process.HLT_IsoMu13,process.HLT_IsoMu15,process.HLT_Mu3,process.HLT_Mu5,process.HLT_Mu7,process.HLT_Mu9,process.HLT_Mu11,process.HLT_Mu13,process.HLT_Mu15,process.HLT_Mu15_Vtx2mm,process.HLT_DoubleIsoMu3,process.HLT_DoubleMu3,process.HLT_DoubleMu3_Vtx2mm,process.HLT_DoubleMu3_JPsi,process.HLT_DoubleMu3_Upsilon,process.HLT_DoubleMu7_Z,process.HLT_DoubleMu3_SameSign,process.HLT_DoubleMu3_Psi2S,process.HLT_BTagIP_Jet180,process.HLT_BTagIP_Jet120_Relaxed,process.HLT_BTagIP_DoubleJet120,process.HLT_BTagIP_DoubleJet60_Relaxed,process.HLT_BTagIP_TripleJet70,process.HLT_BTagIP_TripleJet40_Relaxed,process.HLT_BTagIP_QuadJet40,process.HLT_BTagIP_QuadJet30_Relaxed,process.HLT_BTagIP_HT470,process.HLT_BTagIP_HT320_Relaxed,process.HLT_BTagMu_DoubleJet120,process.HLT_BTagMu_DoubleJet60_Relaxed,process.HLT_BTagMu_TripleJet70,process.HLT_BTagMu_TripleJet40_Relaxed,process.HLT_BTagMu_QuadJet40,process.HLT_BTagMu_QuadJet30_Relaxed,process.HLT_BTagMu_HT370,process.HLT_BTagMu_HT250_Relaxed,process.HLT_DoubleMu3_BJPsi,process.HLT_DoubleMu4_BJPsi,process.HLT_TripleMu3_TauTo3Mu,process.HLT_IsoTau_MET65_Trk20,process.HLT_IsoTau_MET35_Trk15_L1MET,process.HLT_LooseIsoTau_MET30,process.HLT_LooseIsoTau_MET30_L1MET,process.HLT_DoubleIsoTau_Trk3,process.HLT_DoubleLooseIsoTau,process.HLT_IsoEle8_IsoMu7,process.HLT_IsoEle10_Mu10_L1R,process.HLT_IsoEle12_IsoTau_Trk3,process.HLT_IsoEle10_BTagIP_Jet35,process.HLT_IsoEle12_Jet40,process.HLT_IsoEle12_DoubleJet80,process.HLT_IsoEle5_TripleJet30,process.HLT_IsoEle12_TripleJet60,process.HLT_IsoEle12_QuadJet35,process.HLT_IsoMu14_IsoTau_Trk3,process.HLT_IsoMu7_BTagIP_Jet35,process.HLT_IsoMu7_BTagMu_Jet20,process.HLT_IsoMu7_Jet40,process.HLT_NoL2IsoMu8_Jet40,process.HLT_Mu14_Jet50,process.HLT_Mu5_TripleJet30,process.HLT_BTagMu_Jet20_Calib,process.HLT_ZeroBias,process.HLT_MinBias,process.HLT_MinBiasHcal,process.HLT_MinBiasEcal,process.HLT_MinBiasPixel,process.HLT_MinBiasPixel_Trk5,process.HLT_BackwardBSC,process.HLT_ForwardBSC,process.HLT_CSCBeamHalo,process.HLT_CSCBeamHaloOverlapRing1,process.HLT_CSCBeamHaloOverlapRing2,process.HLT_CSCBeamHaloRing2or3,process.HLT_TrackerCosmics,process.AlCa_IsoTrack,process.AlCa_EcalPhiSym,process.AlCa_EcalPi0,process.HLTriggerFinalPath,process.reconstruction,process.p2)