Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('vtxTEST')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 process.load('Configuration.StandardSequences.GeometryDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0011 process.load('Configuration.StandardSequences.Reconstruction_cff')
0012 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 
0016 process.configurationMetadata = cms.untracked.PSet(
0017     annotation = cms.untracked.string('vtxTest nevts:1'),
0018     name = cms.untracked.string('PyReleaseValidation')
0019 )
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(-1)
0022 )
0023 
0024 # Input source
0025 process.source = cms.Source("PoolSource",
0026     fileNames = cms.untracked.vstring(
0027     #'/store/hidata/HIRun2010/HICorePhysics/RECO/PromptReco-v3/000/151/353/94B06736-30F2-DF11-B1EC-003048D37560.root'
0028     #'file:hiRecoDM_RECO.root'
0029     #'file:highMultOneSideSkim.root'
0030     'file:/d01/edwenger/test/CMSSW_3_9_2_patch5/src/mergeDiJet_run151153.root'
0031     )
0032 )
0033 
0034 process.options = cms.untracked.PSet(
0035     wantSummary = cms.untracked.bool(True)
0036 )
0037 
0038 process.Timing = cms.Service("Timing")
0039 
0040 # Output definition
0041 
0042 process.RECOoutput = cms.OutputModule("PoolOutputModule",
0043     splitLevel = cms.untracked.int32(0),
0044     outputCommands = process.RECOEventContent.outputCommands,
0045     fileName = cms.untracked.string('vtxTest_RAW2DIGI_RECO.root'),
0046     dataset = cms.untracked.PSet(
0047         filterName = cms.untracked.string(''),
0048         dataTier = cms.untracked.string('')
0049     )
0050 )
0051 
0052 # Additional output definition
0053 process.TFileService = cms.Service("TFileService",
0054                                    fileName = cms.string('testVtx.root'))
0055 
0056 # Other statements
0057 process.GlobalTag.globaltag = 'GR10_P_V12::All'
0058 
0059 # Vertex Analyzer
0060 process.ClusterVertexAnalyzer = cms.EDAnalyzer("HIPixelClusterVtxAnalyzer",
0061                                       pixelRecHits=cms.InputTag("siPixelRecHits"),
0062                                       minZ=cms.double(-30.0),
0063                                       maxZ=cms.double(30.05),
0064                                       zStep=cms.double(0.1),
0065                                       maxHists=cms.int32(10)         
0066                                       )
0067 
0068 # Trigger and Event Selection
0069 process.load("HLTrigger.HLTfilters.hltHighLevel_cfi")
0070 process.hltMinBiasHFOrBSC = process.hltHighLevel.clone()
0071 process.hltMinBiasHFOrBSC.HLTPaths = ["HLT_HIMinBiasHfOrBSC_Core"]
0072 process.load("HeavyIonsAnalysis.Configuration.collisionEventSelection_cff")
0073 
0074 process.pixelActivityFilter = cms.EDFilter( "HLTPixelActivityFilter",
0075    inputTag    = cms.InputTag( "siPixelClusters" ),
0076    minClusters = cms.uint32( 4000 ),
0077    maxClusters = cms.uint32( 0 )                                    
0078 )
0079 
0080 #process.evtSel = cms.Sequence(process.hltMinBiasHFOrBSC*process.collisionEventSelection)
0081 process.evtSel = cms.Sequence(process.pixelActivityFilter)
0082 
0083 # Path and EndPath definitions
0084 
0085 process.filter_step = cms.Path(process.evtSel)
0086 
0087 process.reconstruction_step = cms.Path(#process.evtSel *
0088                                        process.siPixelRecHits * process.ClusterVertexAnalyzer)
0089 
0090 process.endjob_step = cms.Path(process.evtSel * process.endOfProcess)
0091 
0092 process.RECOoutput_step = cms.EndPath(process.evtSel * process.RECOoutput)
0093 
0094 
0095 # Schedule definition
0096 process.schedule = cms.Schedule(#process.filter_step,
0097                                 process.reconstruction_step)#,process.endjob_step,process.RECOoutput_step)