ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yangyong/ECALG4SIM/test_xtal1.py
Revision: 1.3
Committed: Thu Apr 4 10:54:41 2013 UTC (12 years, 1 month ago) by yangyong
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -10 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 # Auto generated configuration file
2 # using:
3 # Revision: 1.381.2.7
4 # Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
5 # with command line options: Configuration/GenProduction/python/EightTeV/DiKaon_E_1to100_gun_cff.py -s GEN,SIM,DIGI,L1,DIGI2RAW,HLT --conditions auto:mc --datatier GEN-SIM-RAW --eventcontent RAWSIM -n 10 --no_exec
6 import FWCore.ParameterSet.Config as cms
7
8 process = cms.Process('HLT')
9
10 # import of standard configurations
11 process.load('Configuration.StandardSequences.Services_cff')
12 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
13 process.load('FWCore.MessageService.MessageLogger_cfi')
14 process.load('Configuration.EventContent.EventContent_cff')
15 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
16 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
17 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
18 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
19 process.load('Configuration.StandardSequences.Generator_cff')
20
21 #process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
22 process.load('IOMC.EventVertexGenerators.VtxSmearedGauss_cfi')
23
24 process.VtxSmeared.SigmaY = 0
25 process.VtxSmeared.SigmaX = 0
26 process.VtxSmeared.SigmaZ = 0
27
28
29 process.load('GeneratorInterface.Core.genFilterSummary_cff')
30 process.load('Configuration.StandardSequences.SimIdeal_cff')
31 process.load('Configuration.StandardSequences.Digi_cff')
32 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
33 process.load('Configuration.StandardSequences.DigiToRaw_cff')
34 process.load('HLTrigger.Configuration.HLT_GRun_cff')
35 process.load('Configuration.StandardSequences.EndOfProcess_cff')
36 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
37
38 process.RandomNumberGeneratorService.generator.initialSeed = 1
39
40 process.maxEvents = cms.untracked.PSet(
41 input = cms.untracked.int32(10)
42 )
43
44 # Input source
45 process.source = cms.Source("EmptySource")
46
47 process.options = cms.untracked.PSet(
48
49 )
50
51 # Production Info
52 process.configurationMetadata = cms.untracked.PSet(
53 version = cms.untracked.string('\\$Revision: 1.1 $'),
54 annotation = cms.untracked.string('Summer2012 sample with GUN: Flat random DiKaon gun, E = 1 .. 100 GeV, no tune'),
55 name = cms.untracked.string('\\$Source: /local/reps/CMSSW/UserCode/yangyong/ECALG4SIM/test_xtal1.py,v $')
56 )
57
58 # Output definition
59
60 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
61 splitLevel = cms.untracked.int32(0),
62 eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
63 outputCommands = process.RAWSIMEventContent.outputCommands,
64 fileName = cms.untracked.string('DiKaon_E_1to100_gun_cff_py_GEN_SIM_DIGI_L1_DIGI2RAW_HLT.root'),
65 dataset = cms.untracked.PSet(
66 filterName = cms.untracked.string(''),
67 dataTier = cms.untracked.string('GEN-SIM-RAW')
68 ),
69 SelectEvents = cms.untracked.PSet(
70 SelectEvents = cms.vstring('generation_step')
71 )
72 )
73
74 # Additional output definition
75
76 # Other statements
77 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
78 from Configuration.AlCa.GlobalTag import GlobalTag
79 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
80
81 process.generator = cms.EDProducer("FlatRandomEGunProducer",
82 PGunParameters = cms.PSet(
83 PartID = cms.vint32(22),
84 MaxEta = cms.double(0.138424),
85 MaxPhi = cms.double(-0.0257494),
86 MinEta = cms.double(0.138424),
87 MinE = cms.double(100.00),
88 MinPhi = cms.double(-0.0257494),
89 MaxE = cms.double(100.00)
90 ),
91 Verbosity = cms.untracked.int32(0),
92 psethack = cms.string('single K E 1 -100 '),
93 AddAntiParticle = cms.bool(False)
94 )
95
96
97
98
99 # Path and EndPath definitions
100 process.generation_step = cms.Path(process.pgen)
101 process.simulation_step = cms.Path(process.psim)
102 process.digitisation_step = cms.Path(process.pdigi)
103 process.L1simulation_step = cms.Path(process.SimL1Emulator)
104 process.digi2raw_step = cms.Path(process.DigiToRaw)
105 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
106 #process.endjob_step = cms.EndPath(process.endOfProcess)
107 #process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
108
109
110 process.recoAnalyzer = cms.EDAnalyzer("RecoAnalyzer",
111 outputFile = cms.string('analysis.root'),
112 muons = cms.untracked.InputTag("boostedMuonsStep2"),
113 genParticles = cms.untracked.InputTag("genParticles"),
114 electron = cms.untracked.InputTag("boostedElectronsStep2"),
115 photon = cms.untracked.InputTag("fsrPhotonsStep2"),
116 debugLevel = cms.int32(0)
117 )
118
119
120
121 # Schedule definition
122 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.digi2raw_step)
123
124 process.out_step = cms.EndPath(process.recoAnalyzer )
125 process.schedule.extend([process.out_step])
126
127
128 #process.schedule.extend(process.HLTSchedule)
129 #process.schedule.extend([process.endjob_step,process.RAWSIMoutput_step])
130
131
132 # filter all path with the production filter sequence
133 for path in process.paths:
134 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
135
136 # customisation of the process.
137
138 # Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
139 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
140
141 #call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
142 process = customizeHLTforMC(process)
143
144 # End of customisation functions