process = cms.Process("RECO")

####################################################################################### # Import Statments #

process.load("Configuration.StandardSequences.MagneticField_38T_cff") process.load("Configuration.StandardSequences.Geometry_cff") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") process.GlobalTag.globaltag = 'MC_31X_V2::All'

# For including Standard Reco + Heavy Ion Objects process.load("RecoHI.Configuration.Reconstruction_HI_cff") process.load("CmsHi.Utilities.HiAnalysisEventContent_cff") process.load("Configuration.StandardSequences.RawToDigi_cff") process.load('Configuration/StandardSequences/Services_cff') process.load('FWCore/MessageService/MessageLogger_cfi') process.load('Configuration/EventContent/EventContent_cff')

################################################################################ # Input Variable Parsing #

import VarParsing? as VarParsing?

ivars = VarParsing?('standard')

ivars.output = 'PbPb_calo_RECO.root' ivars.maxEvents = -1

ivars.files = 'file:/path/to/file.root'

ivars.parseArguments()

######################################################################################## # Input Files and max events #

process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(ivars.files), duplicateCheckMode = cms.untracked.string( 'noDuplicateCheck' ) )

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(ivars.maxEvents) )

######################################################################################## # Timing and memory services #

process.Timing = cms.Service("Timing")

process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck", oncePerEventMode = cms.untracked.bool(False), ignoreTotal = cms.untracked.int32(0) )

process.options = cms.untracked.PSet( Rethrow = cms.untracked.vstring('ProductNotFound') )

####################################################################################### # Output file #

process.output = cms.OutputModule("PoolOutputModule", process.HIAnalysisObjects, compressionLevel = cms.untracked.int32(2), commitInterval = cms.untracked.uint32(1), fileName = cms.untracked.string(ivars.output) )

process.output.outputCommands.append('keep *_*_*_RECO')

###################################################################################### # Process Schedule #

process.digitization_step = cms.Path(process.RawToDigi) process.reconstruction_step = cms.Path( process.reconstruct_PbPb_CaloOnly )

process.out_step = cms.EndPath(process.output)

# Schedule definition

process.schedule = cms.Schedule(process.digitization_step,process.reconstruction_step,process.out_step)

-- SeoKonKang - 07 Aug 2009

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-08-07 - SeoKonKang
 
KOREA-CMS
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki? Send feedback