|
26 | 26 |
|
27 | 27 | #################################################################### |
28 | 28 | # Use the options |
29 | | -if (options.geometry == "D115"): |
30 | | - from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9 |
31 | | - process = cms.Process('BHValid',Phase2C20I13M9) |
32 | | -elif (options.geometry == "D104"): |
33 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
34 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
35 | | -elif (options.geometry == "D106"): |
36 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
37 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
38 | | -elif (options.geometry == "D109"): |
39 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
40 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
41 | | -elif (options.geometry == "D111"): |
42 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
43 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
44 | | -elif (options.geometry == "D112"): |
45 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
46 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
47 | | -elif (options.geometry == "D113"): |
48 | | - from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9 |
49 | | - process = cms.Process('BHValid',PhaseC22I13M9) |
50 | | -else: |
51 | | - from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 |
52 | | - process = cms.Process('BHValid',Phase2C17I13M9) |
53 | | - |
54 | | -geomFile = "Configuration.Geometry.GeometryExtendedRun4" + options.geometry + "Reco_cff" |
| 29 | + |
| 30 | +geomName = "Run4" + options.geometry |
| 31 | +geomFile = "Configuration.Geometry.GeometryExtended" + geomName + "Reco_cff" |
| 32 | +import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings |
| 33 | +GLOBAL_TAG, ERA = _settings.get_era_and_conditions(geomName) |
55 | 34 | fileName = "hgcBHValid" + options.geometry + ".root" |
| 35 | +print("Geometry Name: ", geomName) |
| 36 | +print("Geom file Name: ", geomFile) |
| 37 | +print("Global Tag Name: ", GLOBAL_TAG) |
| 38 | +print("Era Name: ", ERA) |
| 39 | +print("Output file: ", fileName) |
56 | 40 |
|
57 | | -print("Geometry file: ", geomFile) |
58 | | -print("Output file: ", fileName) |
| 41 | +process = cms.Process('BHValid',ERA) |
59 | 42 |
|
60 | 43 | # import of standard configurations |
61 | 44 | process.load(geomFile) |
|
117 | 100 | # Other statements |
118 | 101 | process.genstepfilter.triggerConditions=cms.vstring("generation_step") |
119 | 102 | from Configuration.AlCa.GlobalTag import GlobalTag |
120 | | -process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '') |
| 103 | +process.GlobalTag = GlobalTag(process.GlobalTag, GLOBAL_TAG, '') |
121 | 104 |
|
122 | 105 | process.generator = cms.EDProducer("FlatRandomPtGunProducer", |
123 | 106 | PGunParameters = cms.PSet( |
|
0 commit comments