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