CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
pythia_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("Castor")
4 
5 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
6 
7 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
8 
9 process.load("Configuration.StandardSequences.GeometryExtended_cff")
10 process.load("Configuration.EventContent.EventContent_cff")
11 
12 process.load("SimG4Core.Application.g4SimHits_cfi")
13 process.load("Configuration.StandardSequences.Generator_cff")
14 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
15 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
16 
17 process.load("SimCalorimetry.CastorSim.castordigi_cfi")
18 
19 process.load("RecoLocalCalo.CastorReco.CastorSimpleReconstructor_cfi")
20 
21 
22 process.load("CondCore.DBCommon.CondDBSetup_cfi")
23 process.load("CondCore.DBCommon.CondDBCommon_cfi")
24 
25 process.load('RecoLocalCalo.Castor.Castor_cff')
26 process.castor_db_producer = cms.ESProducer("CastorDbProducer")
27 
28 process.MessageLogger = cms.Service("MessageLogger",
29  destinations = cms.untracked.vstring('cout')
30 )
31 
32 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
33 
34 process.RandomNumberGeneratorService.theSource.initialSeed = 15298183
35 process.RandomNumberGeneratorService.generator.initialSeed = 12503027
36 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 11120000
37 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 151
38 process.RandomNumberGeneratorService.mix.initialSeed = 14575
39 process.RandomNumberGeneratorService.simCastorDigis.initialSeed = 26
40 
41 
42 
43 process.maxEvents = cms.untracked.PSet(
44  input = cms.untracked.int32(1)
45 )
46 process.load("Configuration.Generator.QCD_Pt_15_20_cfi")
47 
48 process.es_pool = cms.ESSource( "PoolDBESSource",
49  process.CondDBSetup,
50  timetype = cms.string('runnumber'),
51 # connect = cms.string('frontier://cmsfrontier.cern.ch:8000/FrontierPrep/CMS_COND_30X_HCAL'),
52  connect = cms.string('sqlite_file:testExample.db'),
53  authenticationMethod = cms.untracked.uint32(0),
54  toGet = cms.VPSet(
55  cms.PSet(
56  record = cms.string('CastorPedestalsRcd'),
57  tag = cms.string('castor_pedestals_v1.0_test')
58  ),
59  cms.PSet(
60  record = cms.string('CastorPedestalWidthsRcd'),
61  tag = cms.string('castor_widths_v1.0_test')
62  ),
63  cms.PSet(
64  record = cms.string('CastorGainsRcd'),
65  tag = cms.string('castor_gains_v1.0_test')
66  ),
67  cms.PSet(
68  record = cms.string('CastorQIEDataRcd'),
69  tag = cms.string('castor_qie_v1.0_test')
70  ),
71  cms.PSet(
72  record = cms.string('CastorElectronicsMapRcd'),
73  tag = cms.string('castor_emap_v1.0_test')
74  ),
75  cms.PSet(
76  record = cms.string('CastorChannelQualityRcd'),
77  tag = cms.string('castor_channelstatus_v1.0_test')
78 
79  )
80 
81  )
82 )
83 process.es_hardcode = cms.ESSource("CastorHardcodeCalibrations",
84  toGet = cms.untracked.vstring('GainWidths')
85  )
86 
87 
88 process.CaloSD = cms.PSet(
89  DetailedTiming = cms.bool(False),
90  EminTrack = cms.double(1.0),
91  Verbosity = cms.int32(0),
92  UseMap = cms.bool(True),
93  CheckHits = cms.int32(25)
94 )
95 
96 
97 
98 process.common_maximum_timex = cms.PSet( # need to be localy redefined
99  MaxTrackTime = cms.double(500.0), # need to be localy redefined
100  MaxTimeNames = cms.vstring(), # need to be localy redefined
101  MaxTrackTimes = cms.vdouble() # need to be localy redefined
102 )
103 
104 
105 process.o1 = cms.OutputModule("PoolOutputModule",
106  fileName = cms.untracked.string('castor.root')
107 )
108 
109 process.p1 = cms.Path(process.generator*process.pgen*process.VtxSmeared*process.g4SimHits*process.mix*process.simCastorDigis*process.castorreco*process.CastorFullReco)
110 process.outpath=cms.EndPath(process.o1)
111 
112 process.g4SimHits.UseMagneticField = False
113 process.g4SimHits.Physics.DefaultCutValue = 10.
114 
115 process.g4SimHits.Generator.ApplyEtaCuts = False
116 process.g4SimHits.UseMagneticField = False
117 
118 process.g4SimHits.CaloTrkProcessing.TestBeam = True
119 
120 process.g4SimHits.StackingAction = cms.PSet(
121  process.common_heavy_suppression,
122  process.common_maximum_timex, # need to be localy redefined
123  TrackNeutrino = cms.bool(False),
124  KillHeavy = cms.bool(False),
125  SaveFirstLevelSecondary = cms.untracked.bool(True),
126  SavePrimaryDecayProductsAndConversionsInTracker = cms.untracked.bool(True),
127  SavePrimaryDecayProductsAndConversionsInCalo = cms.untracked.bool(True),
128  SavePrimaryDecayProductsAndConversionsInMuon = cms.untracked.bool(True)
129 )
130 
131 process.g4SimHits.SteppingAction = cms.PSet(
132  process.common_maximum_timex, # need to be localy redefined
133  KillBeamPipe = cms.bool(True),
134  CriticalEnergyForVacuum = cms.double(2.0),
135  CriticalDensity = cms.double(1e-15),
136  EkinNames = cms.vstring(),
137  EkinThresholds = cms.vdouble(),
138  EkinParticles = cms.vstring(),
139  Verbosity = cms.untracked.int32(0)
140 )
141 
142 
143 
144 
145 
146