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 import FWCore.ParameterSet.VarParsing as VarParsing
0003 import os 
0004 
0005 process = cms.Process("TEST")
0006 
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.StandardSequences.GeometryDB_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0012 
0013 #global tags for conditions data: https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 process.GlobalTag.globaltag = 'MC_38Y_V8::All'
0016 
0017 ##################################################################################
0018 
0019 # setup 'standard'  options
0020 options = VarParsing.VarParsing ('standard')
0021 
0022 # setup any defaults you want
0023 options.output = 'test_out.root'
0024 options.files = [
0025 '/store/relval/CMSSW_3_8_1/RelValPyquen_DiJet_pt80to120_2760GeV/GEN-SIM-RECO/MC_38Y_V8-v1/0013/DE5989EA-C9A3-DF11-8ABB-001A92811738.root',
0026 '/store/relval/CMSSW_3_8_1/RelValPyquen_DiJet_pt80to120_2760GeV/GEN-SIM-RECO/MC_38Y_V8-v1/0013/2ED099B1-C2A3-DF11-A22A-001A92971B82.root']
0027 options.maxEvents = 1 
0028 
0029 # get and parse the command line arguments
0030 options.parseArguments()
0031 
0032 
0033 ##################################################################################
0034 # Some Services
0035 
0036 process.load("FWCore.MessageService.MessageLogger_cfi")
0037 process.MessageLogger.debugModules = ['*']  
0038 process.MessageLogger.cerr = cms.untracked.PSet(
0039     threshold = cms.untracked.string('DEBUG'),
0040     DEBUG = cms.untracked.PSet(
0041         limit = cms.untracked.int32(0)
0042     ),
0043     INFO = cms.untracked.PSet(
0044         limit = cms.untracked.int32(0)
0045     ),
0046     HeavyIonVertexing = cms.untracked.PSet(
0047         limit = cms.untracked.int32(-1)
0048     ),
0049     heavyIonHLTVertexing = cms.untracked.PSet(
0050         limit = cms.untracked.int32(-1)
0051     ),
0052     MinBiasTracking = cms.untracked.PSet()
0053 )
0054        
0055 process.SimpleMemoryCheck = cms.Service('SimpleMemoryCheck',
0056                                         ignoreTotal=cms.untracked.int32(0),
0057                                         oncePerEventMode = cms.untracked.bool(False)
0058                                         )
0059 
0060 process.Timing = cms.Service("Timing")
0061 
0062 ##################################################################################
0063 # Input Source
0064 process.source = cms.Source('PoolSource',
0065     fileNames = cms.untracked.vstring(options.files)
0066 )
0067                             
0068 process.maxEvents = cms.untracked.PSet(
0069     input = cms.untracked.int32(options.maxEvents)
0070 )
0071 
0072 ##################################################################################
0073 #Reconstruction         
0074 process.load("Configuration.StandardSequences.RawToDigi_cff")           # RawToDigi
0075 process.load("Configuration.StandardSequences.ReconstructionHeavyIons_cff") # full heavy ion reconstruction
0076 process.load("RecoHI.HiTracking.secondStep_cff")                            # pair-seeded step
0077 
0078 ##############################################################################
0079 # Output EDM File
0080 process.load("Configuration.EventContent.EventContentHeavyIons_cff")        #load keep/drop output commands
0081 process.output = cms.OutputModule("PoolOutputModule",
0082                                   process.FEVTDEBUGEventContent,
0083                                   fileName = cms.untracked.string(options.output)
0084                                   )
0085 process.output.outputCommands.extend(["keep *_*_*_TEST"])
0086 
0087 ##################################################################################
0088 # Sub-sequences
0089 process.rechits = cms.Sequence(process.siPixelRecHits*process.siStripMatchedRecHits)
0090 process.vtxreco = cms.Sequence(process.offlineBeamSpot * process.trackerlocalreco * process.hiPixelVertices)
0091 process.pxlreco = cms.Sequence(process.vtxreco * process.hiPixel3PrimTracksSequence)
0092 process.trkreco = cms.Sequence(process.offlineBeamSpot * process.trackerlocalreco * process.heavyIonTracking)
0093 
0094 # Paths
0095 #process.reco = cms.Path(process.RawToDigi * process.trkreco)           # for RECO from RAW
0096 process.rereco = cms.Path(process.rechits * process.heavyIonTracking    # for reRECO from RECO
0097                           * process.secondStep                          # plus pair-seeded iteration
0098                           )
0099 process.save = cms.EndPath(process.output)
0100