Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
0004 from Configuration.ProcessModifiers.PixelCPEGeneric_cff import PixelCPEGeneric
0005 
0006 process = cms.Process('digiTest',Phase2C9,PixelCPEGeneric)
0007 
0008 import FWCore.ParameterSet.VarParsing as VarParsing 
0009 options = VarParsing.VarParsing ("analysis") 
0010 options.register("skipEvents",default=0)
0011 # Not needed in the config, but needed because used as input option by htcondor_jobs
0012 options.register("firstEvent",default=1)
0013 options.maxEvents = -1
0014 options.skipEvents = 0
0015 options.firstEvent = 1
0016 
0017 options.parseArguments() 
0018 
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(options.maxEvents)
0022 )
0023 process.load('Configuration.StandardSequences.Services_cff')
0024 process.load('FWCore.MessageService.MessageLogger_cfi')
0025 process.load('Configuration.EventContent.EventContent_cff')
0026 process.load('Configuration.Geometry.GeometryExtended2026D54Reco_cff')
0027 process.load('Configuration.StandardSequences.MagneticField_cff')
0028 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0029 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0030 
0031 process.MessageLogger.cerr.FwkReport.reportEvery = 5000
0032 
0033 # Other statements
0034 from Configuration.AlCa.GlobalTag import GlobalTag
0035 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T19', '')
0036 # list of files
0037 
0038 process.source = cms.Source("PoolSource",
0039     fileNames =  cms.untracked.vstring(options.inputFiles),
0040     skipEvents = cms.untracked.uint32(options.skipEvents),
0041     )
0042 
0043 # Production Info
0044 process.configurationMetadata = cms.untracked.PSet(
0045     version = cms.untracked.string('$Revision: 1.19 $'),
0046     annotation = cms.untracked.string('step1 nevts:1'),
0047     name = cms.untracked.string('Applications')
0048 )
0049 # Output definition
0050 
0051 process.DQMoutput = cms.OutputModule("PoolOutputModule",
0052     splitLevel = cms.untracked.int32(0),
0053     outputCommands = process.DQMEventContent.outputCommands,
0054     fileName = cms.untracked.string(options.outputFile),
0055     dataset = cms.untracked.PSet(
0056         filterName = cms.untracked.string(''),
0057         dataTier = cms.untracked.string('')
0058     )
0059 )
0060 process.load('DQM.SiTrackerPhase2.Phase2TrackerMonitorDigi_cff')
0061 process.load('Validation.SiTrackerPhase2V.Phase2TrackerValidateDigi_cff')
0062 process.load('SimTracker.SiPhase2Digitizer.PixelTestBeamValidation_cff')
0063 
0064 # Include the same value was used in the digitizer 
0065 process.pixelcells.ElectronsPerADC = cms.double(1700)
0066 # Tracks are processed only for entering angles to the sensor of -2.5,2.5 degrees.
0067 # Uncomment lines below to allow all angles (values in radians)
0068 #process.pixelcells.TracksEntryAngleX = cms.untracked.vdouble(-1.5,1.5)
0069 #process.pixelcells.TracksEntryAngleY = cms.untracked.vdouble(-1.5,1.5)
0070 
0071 #process.digiana_seq = cms.Sequence(process.pixDigiMon * process.otDigiMon * process.pixDigiValid * process.otDigiValid)
0072 process.digiana_seq = cms.Sequence(process.pixDigiMon*process.pixDigiValid*process.pixelcells)
0073 
0074 process.load('DQMServices.Components.DQMEventInfo_cfi')
0075 process.dqmEnv.subSystemFolder = cms.untracked.string('Ph2TkDigi')
0076 
0077 process.dqm_comm = cms.Sequence(process.dqmEnv)
0078 
0079 # Path and EndPath definitions
0080 process.endjob_step = cms.EndPath(process.endOfProcess)
0081 process.DQMoutput_step = cms.EndPath(process.DQMoutput)
0082 
0083 #process.digi_step = cms.Sequence(process.siPixelRawData*process.siPixelDigis)
0084 process.p = cms.Path(process.digiana_seq * process.dqm_comm )