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

File Contents

# User Rev Content
1 yangyong 1.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 yangyong 1.2 process.VtxSmeared.GaussVtxSmearingParameters = cms.PSet(
25     MeanX = cms.double(0.0),
26     MeanY = cms.double(0.0),
27     MeanZ = cms.double(0.0),
28     SigmaY = cms.double(0.0),
29     SigmaX = cms.double(0.0),
30     SigmaZ = cms.double(0.0),
31     TimeOffset = cms.double(0.0)
32     )
33    
34    
35    
36 yangyong 1.1 process.load('GeneratorInterface.Core.genFilterSummary_cff')
37     process.load('Configuration.StandardSequences.SimIdeal_cff')
38     process.load('Configuration.StandardSequences.Digi_cff')
39     process.load('Configuration.StandardSequences.SimL1Emulator_cff')
40     process.load('Configuration.StandardSequences.DigiToRaw_cff')
41     process.load('HLTrigger.Configuration.HLT_GRun_cff')
42     process.load('Configuration.StandardSequences.EndOfProcess_cff')
43     process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
44    
45     process.RandomNumberGeneratorService.generator.initialSeed = 1
46    
47     process.maxEvents = cms.untracked.PSet(
48     input = cms.untracked.int32(10)
49     )
50    
51     # Input source
52     process.source = cms.Source("EmptySource")
53    
54     process.options = cms.untracked.PSet(
55    
56     )
57    
58     # Production Info
59     process.configurationMetadata = cms.untracked.PSet(
60     version = cms.untracked.string('\\$Revision: 1.1 $'),
61     annotation = cms.untracked.string('Summer2012 sample with GUN: Flat random DiKaon gun, E = 1 .. 100 GeV, no tune'),
62 yangyong 1.2 name = cms.untracked.string('\\$Source: /local/reps/CMSSW/UserCode/yangyong/ECALG4SIM/test_xtal1.py,v $')
63 yangyong 1.1 )
64    
65     # Output definition
66    
67     process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
68     splitLevel = cms.untracked.int32(0),
69     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
70     outputCommands = process.RAWSIMEventContent.outputCommands,
71     fileName = cms.untracked.string('DiKaon_E_1to100_gun_cff_py_GEN_SIM_DIGI_L1_DIGI2RAW_HLT.root'),
72     dataset = cms.untracked.PSet(
73     filterName = cms.untracked.string(''),
74     dataTier = cms.untracked.string('GEN-SIM-RAW')
75     ),
76     SelectEvents = cms.untracked.PSet(
77     SelectEvents = cms.vstring('generation_step')
78     )
79     )
80    
81     # Additional output definition
82    
83     # Other statements
84     process.genstepfilter.triggerConditions=cms.vstring("generation_step")
85     from Configuration.AlCa.GlobalTag import GlobalTag
86     process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
87    
88     process.generator = cms.EDProducer("FlatRandomEGunProducer",
89     PGunParameters = cms.PSet(
90     PartID = cms.vint32(22),
91     MaxEta = cms.double(0.138424),
92     MaxPhi = cms.double(-0.0257494),
93     MinEta = cms.double(0.138424),
94     MinE = cms.double(100.00),
95     MinPhi = cms.double(-0.0257494),
96     MaxE = cms.double(100.00)
97     ),
98     Verbosity = cms.untracked.int32(0),
99     psethack = cms.string('single K E 1 -100 '),
100     AddAntiParticle = cms.bool(False)
101     )
102    
103    
104    
105    
106     # Path and EndPath definitions
107     process.generation_step = cms.Path(process.pgen)
108     process.simulation_step = cms.Path(process.psim)
109     process.digitisation_step = cms.Path(process.pdigi)
110     process.L1simulation_step = cms.Path(process.SimL1Emulator)
111     process.digi2raw_step = cms.Path(process.DigiToRaw)
112     process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
113     #process.endjob_step = cms.EndPath(process.endOfProcess)
114     #process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
115    
116    
117     process.recoAnalyzer = cms.EDAnalyzer("RecoAnalyzer",
118     outputFile = cms.string('analysis.root'),
119     muons = cms.untracked.InputTag("boostedMuonsStep2"),
120     genParticles = cms.untracked.InputTag("genParticles"),
121     electron = cms.untracked.InputTag("boostedElectronsStep2"),
122     photon = cms.untracked.InputTag("fsrPhotonsStep2"),
123     debugLevel = cms.int32(0)
124     )
125    
126    
127    
128     # Schedule definition
129     process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.L1simulation_step,process.digi2raw_step)
130    
131     process.out_step = cms.EndPath(process.recoAnalyzer )
132     process.schedule.extend([process.out_step])
133    
134    
135     #process.schedule.extend(process.HLTSchedule)
136     #process.schedule.extend([process.endjob_step,process.RAWSIMoutput_step])
137    
138    
139     # filter all path with the production filter sequence
140     for path in process.paths:
141     getattr(process,path)._seq = process.generator * getattr(process,path)._seq
142    
143     # customisation of the process.
144    
145     # Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
146     from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC
147    
148     #call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
149     process = customizeHLTforMC(process)
150    
151     # End of customisation functions