CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SingleGammaPt35_cfg.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # Work-around because of a bug in HLT
4 # Reconstruction sequence
5 import FWCore.ParameterSet.Config as cms
6 
7 process = cms.Process("HLT")
8 # Famos sequences (With HLT)
9 process.load("FastSimulation.Configuration.CommonInputsFake_cff")
10 
11 process.load("FastSimulation.Configuration.FamosSequences_cff")
12 
13 # L1 Emulator and HLT Setup
14 process.load("FastSimulation.HighLevelTrigger.common.HLTSetup_cff")
15 
16 process.load("PhysicsTools.HepMCCandAlgos.genEventWeight_cfi")
17 
18 process.load("PhysicsTools.HepMCCandAlgos.genEventScale_cfi")
19 
20 # HLT paths
21 process.load("HLTrigger.Configuration.main.HLTpaths_cff")
22 
23 # To write out events
24 process.load("FastSimulation.Configuration.EventContent_cff")
25 
26 # Keep the logging output to a nice level #
27 process.load("FWCore.MessageService.MessageLogger_cfi")
28 
29 process.configurationMetadata = cms.untracked.PSet(
30  version = cms.untracked.string('$Revision: 1.1 $'),
31  name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/FastSimulation/Validation/python/SingleGammaPt35_cfg.py,v $'),
32  annotation = cms.untracked.string('RelVal FastSim single particle gun photons, Pt=35 GeV')
33 )
34 process.ReleaseValidation = cms.untracked.PSet(
35  eventsPerJob = cms.untracked.uint32(1000),
36  totalNumberOfEvents = cms.untracked.uint32(25000),
37  primaryDatasetName = cms.untracked.string('RelValFastSimSingleGammaPt35')
38 )
39 process.maxEvents = cms.untracked.PSet(
40  input = cms.untracked.int32(10)
41 )
42 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
43  # This is to initialize the random engines of Famos
44  moduleSeeds = cms.PSet(
45  l1ParamMuons = cms.untracked.uint32(54525),
46  caloRecHits = cms.untracked.uint32(654321),
47  MuonSimHits = cms.untracked.uint32(97531),
48  muonCSCDigis = cms.untracked.uint32(525432),
49  muonDTDigis = cms.untracked.uint32(67673876),
50  famosSimHits = cms.untracked.uint32(13579),
51  paramMuons = cms.untracked.uint32(54525),
52  famosPileUp = cms.untracked.uint32(918273),
53  VtxSmeared = cms.untracked.uint32(123456789),
54  muonRPCDigis = cms.untracked.uint32(524964),
55  siTrackerGaussianSmearingRecHits = cms.untracked.uint32(24680)
56  ),
57  # This is to initialize the random engine of the source
58  sourceSeed = cms.untracked.uint32(123456789)
59 )
60 
61 process.source = cms.Source("FlatRandomPtGunSource",
62  PGunParameters = cms.untracked.PSet(
63  MaxPt = cms.untracked.double(35.001),
64  MinPt = cms.untracked.double(34.999),
65  PartID = cms.untracked.vint32(22),
66  MaxEta = cms.untracked.double(2.5),
67  MaxPhi = cms.untracked.double(3.14159265359),
68  MinEta = cms.untracked.double(-2.5),
69  MinPhi = cms.untracked.double(-3.14159265359) ## in radians
70 
71  ),
72  Verbosity = cms.untracked.int32(0), ## set to 1 (or greater) for printouts
73 
74  psethack = cms.string('single gamma E=35'),
75  firstRun = cms.untracked.uint32(1)
76 )
77 
78 process.Timing = cms.Service("Timing")
79 
80 process.o1 = cms.OutputModule("PoolOutputModule",
81  process.FEVTSIMEventContent,
82  dataset = cms.untracked.PSet(
83  dataTier = cms.untracked.string('GEN-SIM-DIGI-RECO')
84  ),
85  fileName = cms.untracked.string('FEVTWithHLT.root')
86 )
87 
88 process.simulation = cms.Path(process.simulationWithFamos+process.genEventScale+process.genEventWeight)
89 process.hltEnd = cms.Sequence(process.dummyModule)
90 process.reconstruction = cms.Path(process.doCalo+process.towerMakerForAll+process.reconstructionWithFamos)
91 process.outpath = cms.EndPath(process.o1)
92 process.famosPileUp.UseTRandomEngine = True
93 process.famosSimHits.UseTRandomEngine = True
94 process.siTrackerGaussianSmearingRecHits.UseTRandomEngine = True
95 process.caloRecHits.UseTRandomEngine = True
96 process.paramMuons.UseTRandomEngine = True
97 process.famosPileUp.PileUpSimulator.averageNumber = 0.0
98 process.load("Configuration.StandardSequences.MagneticField_40T_cff")
99 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
100 process.VolumeBasedMagneticFieldESProducer.useParametrizedTrackerField = True
101 process.famosSimHits.SimulateCalorimetry = True
102 process.famosSimHits.SimulateTracking = True
103 process.MessageLogger.destinations = ['detailedInfo.txt']
104