Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-06 06:06:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ###################################################################
0004 # Set default phase-2 settings
0005 ###################################################################
0006 import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
0007 _PH2_GLOBAL_TAG, _PH2_ERA = _settings.get_era_and_conditions(_settings.DEFAULT_VERSION)
0008 
0009 process = cms.Process('USER', _PH2_ERA)
0010 
0011 # import of standard configurations
0012 process.load('Configuration.StandardSequences.Services_cff')
0013 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.load('Configuration.EventContent.EventContent_cff')
0016 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0017 #process.load('SimGeneral.MixingModule.mix_POISSON_average_cfi')
0018 process.load('Configuration.Geometry.GeometryExtendedRun4DefaultReco_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.Digi_cff')
0021 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0022 process.load('Configuration.StandardSequences.L1TrackTrigger_cff')
0023 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0024 process.load('HLTrigger.Configuration.HLT_Fake2_cff')
0025 process.load('Configuration.StandardSequences.RawToDigi_cff')
0026 process.load('Configuration.StandardSequences.Reconstruction_cff')
0027 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0028 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(10)
0032 )
0033 
0034 process.source = cms.Source("PoolSource",
0035     fileNames = cms.untracked.vstring(
0036         '/store/relval/CMSSW_14_1_0_pre5/RelValSingleMuPt10/GEN-SIM/140X_mcRun4_realistic_v4_RegeneratedGS_2026D110_noPU-v1/2580000/48116a2e-e383-4b89-a20e-c72fe2f8473d.root'
0037     )
0038 )
0039 
0040 
0041 process.options = cms.untracked.PSet(
0042 
0043 )
0044 
0045 # Production Info
0046 process.configurationMetadata = cms.untracked.PSet(
0047     annotation = cms.untracked.string('step2 nevts:10'),
0048     name = cms.untracked.string('Applications'),
0049     version = cms.untracked.string('$Revision: 1.19 $')
0050 )
0051 
0052 # MC vertice analyzer
0053 process.load("Validation.RecoVertex.mcverticesanalyzer_cfi")
0054 process.mcverticesanalyzer.pileupSummaryCollection = cms.InputTag("addPileupInfo","","HLT")
0055 
0056 # Output definition
0057 
0058 #process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0059 #    dataset = cms.untracked.PSet(
0060 #        dataTier = cms.untracked.string('GEN-SIM-RECO'),
0061 #        filterName = cms.untracked.string('')
0062 #    ),
0063 #    fileName = cms.untracked.string('step2_DIGI_L1_L1TrackTrigger_DIGI2RAW_HLT_RAW2DIGI_L1Reco_RECO.root'),
0064 #    outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0065 #    splitLevel = cms.untracked.int32(0)
0066 #)
0067 
0068 # # # -- Trajectory producer
0069 process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
0070 process.TrackRefitter.src = 'generalTracks'
0071 process.TrackRefitter.NavigationSchool = ""
0072 
0073 process.ReadLocalMeasurement = cms.EDAnalyzer("Phase2PixelNtuple",
0074                                               trackProducer = cms.InputTag("generalTracks"),
0075                                               trajectoryInput = cms.InputTag('TrackRefitter::USER'),
0076                                               #verbose = cms.untracked.bool(True),
0077                                               #picky = cms.untracked.bool(False),                                             
0078                                               ### for using track hit association
0079                                               associatePixel = cms.bool(True),
0080                                               associateStrip = cms.bool(False),
0081                                               associateRecoTracks = cms.bool(False),
0082                                               ROUList = cms.vstring('TrackerHitsPixelBarrelLowTof',
0083                                                                     'TrackerHitsPixelBarrelHighTof',
0084                                                                     'TrackerHitsPixelEndcapLowTof',
0085                                                                     'TrackerHitsPixelEndcapHighTof'),
0086                                               ttrhBuilder = cms.string("WithTrackAngle"),
0087                                               usePhase2Tracker = cms.bool(True),
0088                                               pixelSimLinkSrc = cms.InputTag("simSiPixelDigis", "Pixel"),
0089                                               phase2TrackerSimLinkSrc = cms.InputTag("simSiPixelDigis", "Tracker")
0090                                           )
0091 
0092 
0093 # Additional output definition
0094 
0095 # Other statements
0096 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0097 
0098 # This pset is specific for producing simulated events for the designers of the PROC (InnerTracker)
0099 # They need pixel RecHits where the charge is stored with high-granularity and large dinamic range
0100 
0101 from Configuration.AlCa.GlobalTag import GlobalTag
0102 process.GlobalTag = GlobalTag(process.GlobalTag, _PH2_GLOBAL_TAG, '')
0103 
0104 # Path and EndPath definitions
0105 process.digitisation_step = cms.Path(process.pdigi_valid)
0106 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0107 process.L1TrackTrigger_step = cms.Path(process.L1TrackTrigger)
0108 process.digi2raw_step = cms.Path(process.DigiToRaw)
0109 process.raw2digi_step = cms.Path(process.RawToDigi)
0110 process.reconstruction_step = cms.Path(process.reconstruction)
0111 process.user_step = cms.Path(process.TrackRefitter * process.ReadLocalMeasurement * process.mcverticesanalyzer)
0112 process.endjob_step = cms.EndPath(process.endOfProcess)
0113 #process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0114 
0115 # Schedule definition
0116 # process.schedule imported from cff in HLTrigger.Configuration
0117 process.schedule.insert(0, process.digitisation_step)
0118 process.schedule.insert(1, process.L1simulation_step)
0119 process.schedule.insert(2, process.L1TrackTrigger_step)
0120 process.schedule.insert(3, process.digi2raw_step)
0121 process.schedule.extend([process.raw2digi_step,process.reconstruction_step,process.user_step,process.endjob_step])
0122 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0123 associatePatAlgosToolsTask(process)
0124 
0125 # customisation of the process.
0126 
0127 # Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
0128 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC 
0129 
0130 #call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
0131 process = customizeHLTforMC(process)
0132 
0133 # End of customisation functions
0134 
0135 # Customisation from command line
0136 
0137 #Have logErrorHarvester wait for the same EDProducers to finish as those providing data for the OutputModule
0138 from FWCore.Modules.logErrorHarvester_cff import customiseLogErrorHarvesterUsingOutputCommands
0139 process = customiseLogErrorHarvesterUsingOutputCommands(process)
0140 
0141 # Add early deletion of temporary data products to reduce peak memory need
0142 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0143 process = customiseEarlyDelete(process)
0144 # End adding early deletion
0145 process.TFileService = cms.Service('TFileService',
0146 fileName = cms.string("pixelntuple.root")
0147 )
0148