CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/TauAnalysis/MCEmbeddingTools/python/example_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 process = cms.Process("EXAMPLE")
00003 
00004 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
00005 
00006 process.load("Configuration.Generator.PythiaUESettings_cfi")
00007 
00008 # the following lines are required by hit tracking
00009 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
00010 process.load("Configuration.StandardSequences.Geometry_cff")
00011 process.load("Configuration.StandardSequences.MagneticField_cff")
00012 process.load("Geometry.CaloEventSetup.CaloTopology_cfi")
00013 process.load("Configuration.StandardSequences.Reconstruction_cff")
00014 process.GlobalTag.globaltag = 'MC_31X_V5::All'
00015 
00016 
00017 TauolaDefaultInputCards = cms.PSet(
00018     InputCards = cms.vstring('TAUOLA = 0 0 102 ! TAUOLA ')      # 114=l+jet, 102=only muons
00019 )
00020 TauolaNoPolar = cms.PSet(
00021     UseTauolaPolarization = cms.bool(False)
00022 )
00023 TauolaPolar = cms.PSet(
00024     UseTauolaPolarization = cms.bool(True)
00025 )
00026 
00027 process.load("TauAnalysis.MCEmbeddingTools.MCParticleReplacer_cfi")
00028 process.newSource.algorithm = "Ztautau"
00029 process.newSource.verbose = True
00030 
00031 process.selectMuons = cms.EDProducer('SelectParticles',
00032         TrackAssociatorParameters = cms.PSet(
00033                         muonMaxDistanceSigmaX = cms.double(0.0),
00034                         muonMaxDistanceSigmaY = cms.double(0.0),
00035                         CSCSegmentCollectionLabel = cms.InputTag("cscSegments"),
00036                         dRHcal = cms.double(9999.0),
00037                         dREcal = cms.double(9999.0),
00038                         CaloTowerCollectionLabel = cms.InputTag("towerMaker"),
00039                         useEcal = cms.bool(True),
00040                         dREcalPreselection = cms.double(0.05),
00041                         HORecHitCollectionLabel = cms.InputTag("horeco"),
00042                         dRMuon = cms.double(9999.0),
00043                         crossedEnergyType = cms.string('SinglePointAlongTrajectory'),
00044                         propagateAllDirections = cms.bool(True),
00045                         muonMaxDistanceX = cms.double(5.0),
00046                         muonMaxDistanceY = cms.double(5.0),
00047                         useHO = cms.bool(True),
00048                         accountForTrajectoryChangeCalo = cms.bool(False),
00049                         DTRecSegment4DCollectionLabel = cms.InputTag("dt4DSegments"),
00050                         EERecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEE"),
00051                         dRHcalPreselection = cms.double(0.2),
00052                         useMuon = cms.bool(True),
00053                         useCalo = cms.bool(False),
00054                         EBRecHitCollectionLabel = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
00055                         dRMuonPreselection = cms.double(0.2),
00056                         truthMatch = cms.bool(False),
00057                         HBHERecHitCollectionLabel = cms.InputTag("hbhereco"),
00058                         useHcal = cms.bool(True)
00059         ),
00060         muonInputTag = cms.InputTag("muons")
00061 )
00062 
00063 process.source = cms.Source("PoolSource",
00064         skipBadFiles = cms.untracked.bool(True),
00065         skipEvents = cms.untracked.uint32(0),
00066         fileNames = cms.untracked.vstring('file:/home/elpis/ekp/events/copy_Zmumu_Summer08_IDEAL_V9_v1_GEN-SIM-RECO_2008-12-29_0.root')
00067 )
00068 
00069 process.load("Configuration.EventContent.EventContent_cff")
00070 process.load("FWCore.MessageService.MessageLogger_cfi")
00071 process.MessageLogger.cerr.threshold = 'DEBUG'
00072 
00073 process.OUTPUT = cms.OutputModule("PoolOutputModule",
00074         outputCommands = cms.untracked.vstring("keep *_*_*_*"),
00075         SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p1')),
00076         fileName = cms.untracked.string('grid_job_output.root')
00077 )
00078 
00079 
00080 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
00081 
00082 #process.raw2digi_step = cms.Path(process.RawToDigi)
00083 #process.reconstruction_step = cms.Path(process.reconstruction)
00084 
00085 process.p1 = cms.Path(process.selectMuons*process.newSource)
00086 #process.p1 = cms.Path(process.RawToDigi*process.reconstruction*process.selectMuonHits)
00087 
00088 #process.outpath = cms.EndPath(process.OUTPUT)
00089 #
00090 
00091 
00092