Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-06 04:14:03

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0004 process = cms.Process('testHGCalRecoLocal',Phase2C9)
0005 
0006 # import of standard configurations
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0009 process.load('FWCore.MessageService.MessageLogger_cfi')
0010 process.load('Configuration.EventContent.EventContent_cff')
0011 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0012 process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
0013 process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Generator_cff')
0016 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
0017 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0018 process.load('Configuration.StandardSequences.SimIdeal_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 process.load('Configuration.StandardSequences.Digi_cff')
0022 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0023 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0024 process.load('HLTrigger.Configuration.HLT_Fake_cff')
0025 process.load('Configuration.StandardSequences.RawToDigi_cff')
0026 process.load('Configuration.StandardSequences.L1Reco_cff')
0027 process.load('Configuration.StandardSequences.Reconstruction_cff')
0028 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1000)
0032 )
0033 
0034 process.MessageLogger.cerr.FwkReport.reportEvery = 5
0035 if hasattr(process,'MessageLogger'):
0036     process.MessageLogger.ValidHGCal=dict()
0037     process.MessageLogger.HGCalGeom=dict()
0038 
0039 # Input source
0040 process.source = cms.Source("EmptySource")
0041 
0042 process.options = cms.untracked.PSet(
0043     wantSummary = cms.untracked.bool(True),
0044     numberOfConcurrentRuns = cms.untracked.uint32(1),
0045     numberOfStreams = cms.untracked.uint32(0),
0046     numberOfThreads = cms.untracked.uint32(1),
0047     printDependencies = cms.untracked.bool(False),
0048     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0049 )
0050 
0051 # Production Info
0052 process.configurationMetadata = cms.untracked.PSet(
0053     version = cms.untracked.string(''),
0054     annotation = cms.untracked.string(''),
0055     name = cms.untracked.string('Applications')
0056 )
0057 
0058 
0059 # Output definition
0060 process.output = cms.OutputModule("PoolOutputModule",
0061     splitLevel = cms.untracked.int32(0),
0062     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0063     outputCommands = cms.untracked.vstring(
0064         'keep *_*hbhe*_*_*',
0065     'keep *_g4SimHits_*_*',
0066 #       'keep *_mix_*_*',
0067     'keep *_*HGC*_*_*',
0068         ),
0069     fileName = cms.untracked.string('file:testHGCalSimWatcherV11.root'),
0070     dataset = cms.untracked.PSet(
0071         filterName = cms.untracked.string(''),
0072         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW-RECO')
0073     ),
0074     SelectEvents = cms.untracked.PSet(
0075         SelectEvents = cms.vstring('generation_step')
0076     )
0077 )
0078 
0079 # Additional output definition
0080 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0081     SimG4HGCalValidation = cms.PSet(
0082         Names = cms.vstring(
0083         'HGCalEECell',  
0084         'HGCalHECell',
0085         'HEScintillator',
0086         ),
0087     Types          = cms.vint32(1,1,2),
0088     DetTypes       = cms.vint32(0,1,2),
0089     LabelLayerInfo = cms.string("HGCalInfoLayer"),
0090     Verbosity      = cms.untracked.int32(0),
0091     ),
0092     type = cms.string('SimG4HGCalValidation')
0093 ))
0094 
0095 # Other statements
0096 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0097 from Configuration.AlCa.GlobalTag import GlobalTag
0098 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T15', '')
0099 
0100 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0101     PGunParameters = cms.PSet(
0102         MaxPt = cms.double(20.0),
0103         MinPt = cms.double(20.0),
0104         #PartID = cms.vint32(11), #--->electron
0105         PartID = cms.vint32(13), #--->muon
0106         #PartID = cms.vint32(211), #--->pion
0107         MaxEta = cms.double(3.0),
0108         MaxPhi = cms.double(3.14159265359),
0109         MinEta = cms.double(1.2),
0110         MinPhi = cms.double(-3.14159265359)
0111     ),
0112     Verbosity = cms.untracked.int32(0),
0113     psethack = cms.string('single muon pt 35'),
0114     AddAntiParticle = cms.bool(False),
0115     firstRun = cms.untracked.uint32(1)
0116 )
0117 
0118 
0119 #Modified to produce hgceedigis
0120 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0121 
0122 # Path and EndPath definitions
0123 process.generation_step = cms.Path(process.pgen)
0124 process.simulation_step = cms.Path(process.psim)
0125 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0126 process.digitisation_step = cms.Path(process.pdigi_valid)
0127 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0128 process.digi2raw_step = cms.Path(process.DigiToRaw)
0129 process.raw2digi_step = cms.Path(process.RawToDigi)
0130 process.L1Reco_step = cms.Path(process.L1Reco)
0131 process.reconstruction_step = cms.Path(process.localreco)
0132 process.out_step = cms.EndPath(process.output)
0133 
0134 # Schedule definition
0135 process.schedule = cms.Schedule(process.generation_step,
0136                 process.simulation_step,
0137                 process.digitisation_step,
0138                 process.L1simulation_step,
0139                 process.digi2raw_step,
0140                 process.raw2digi_step,
0141                 process.L1Reco_step,
0142                 process.reconstruction_step,
0143                 process.out_step
0144                 )
0145 
0146 # filter all path with the production filter sequence
0147 for path in process.paths:
0148         getattr(process,path)._seq = process.generator * getattr(process,path)._seq