CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
aod_PYTHIA_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("HLT")
4 
5 # Number of events to be generated
6 process.maxEvents = cms.untracked.PSet(
7  input = cms.untracked.int32(2000)
8 )
9 
10 
11 # Include the RandomNumberGeneratorService definition
12 process.load("FastSimulation.Configuration.RandomServiceInitialization_cff")
13 process.RandomNumberGeneratorService.theSource.initialSeed = 123
14 
15 #process.load("Validation.RecoParticleFlow.source_singleTau_cfi")
16 #process.load("Validation.RecoParticleFlow.source_singleTau_highPt_cfi")
17 process.load("Validation.RecoParticleFlow.source_diJets_cfi")
18 #process.load("Validation.RecoParticleFlow.source_ZToTauTau_cfi")
19 
20 
21 process.source.maxEventsToPrint = cms.untracked.int32(2)
22 process.source.pythiaPylistVerbosity = cms.untracked.int32(1)
23 
24 
25 # L1 Menu and prescale factors : useful for testing all L1 paths
26 process.load("Configuration.StandardSequences.L1TriggerDefaultMenu_cff")
27 
28 # Common inputs, with fake conditions
29 process.load("FastSimulation.Configuration.CommonInputs_cff")
30 
31 # L1 Emulator and HLT Setup
32 process.load("FastSimulation.HighLevelTrigger.HLTSetup_cff")
33 
34 # Famos sequences
35 process.load("FastSimulation.Configuration.FamosSequences_cff")
36 
37 # Parametrized magnetic field (new mapping, 4.0 and 3.8T)
38 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
39 # process.load("Configuration.StandardSequences.MagneticField_38T_cff")
40 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
41 
42 # HLT paths - defined by configDB
43 # This one is created on the fly by FastSimulation/Configuration/test/IntegrationTestWithHLT_py.csh
44 process.load("FastSimulation.Configuration.HLT_cff")
45 
46 # Only event accepted by L1 + HLT are reconstructed
47 process.HLTEndSequence = cms.Sequence(process.reconstructionWithFamos)
48 
49 # Schedule the HLT paths
50 process.schedule = cms.Schedule()
51 process.schedule.extend(process.HLTSchedule)
52 
53 # If uncommented : All events are reconstructed, including those rejected at L1/HLT
54 # process.reconstruction = cms.Path(process.reconstructionWithFamos)
55 # process.schedule.append(process.reconstruction)
56 
57 # Simulation sequence
58 process.simulation = cms.Sequence(process.simulationWithFamos)
59 # You many not want to simulate everything
60 process.famosSimHits.SimulateCalorimetry = True
61 process.famosSimHits.SimulateTracking = True
62 # Parameterized magnetic field
63 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
64 # Number of pileup events per crossing
65 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
66 
67 process.GlobalTag.globaltag = "IDEAL_V9::All"
68 
69 
70 # To write out events
71 process.load("FastSimulation.Configuration.EventContent_cff")
72 process.o1 = cms.OutputModule("PoolOutputModule",
73  #process.AODSIMEventContent,
74  fileName = cms.untracked.string('aod.root'),
75  outputCommands = cms.untracked.vstring(
76  "drop *",
77  "keep recoPFJets_*_*_*",
78  "keep recoCaloJets_*_*_*",
79  "keep recoGenParticles_*_*_*"
80  )
81 )
82 #process.o1.outputCommands.extend("drop *",
83 # "keep recoPFJets_*_*_*",
84 # "keep recoGenJets_*_*_*"
85 # )
86 
87 
88 process.outpath = cms.EndPath(process.o1)
89 
90 # Add endpaths to the schedule
91 process.schedule.append(process.outpath)
92 
93 
94 
95