CMS 3D CMS Logo

Functions

ZmumuStandaloneSelectionAll Namespace Reference

Functions

def customise

Function Documentation

def ZmumuStandaloneSelectionAll::customise (   process)

Definition at line 5 of file ZmumuStandaloneSelectionAll.py.

00006                       :
00007  
00008   process._Process__name="EmbeddedINPUT"
00009 
00010   try:
00011           outputModule = process.output
00012   except:
00013     pass
00014   try:
00015           outputModule = getattr(process,str(getattr(process,list(process.endpaths)[-1])))
00016   except:
00017     pass
00018 
00019   outputModule.outputCommands.extend(
00020     cms.untracked.vstring("keep *_goldenZmumuCandidatesGe0IsoMuons_*_*",
00021                           "keep *_goldenZmumuCandidatesGe1IsoMuons_*_*",
00022                           "keep *_goldenZmumuCandidatesGe2IsoMuons_*_*"))
00023 
00024   process.load('Configuration.StandardSequences.GeometryDB_cff')
00025   process.load('Configuration.StandardSequences.MagneticField_38T_cff')
00026   process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
00027   process.load("TauAnalysis/MCEmbeddingTools/ZmumuStandalonSelection_cff")
00028 
00029   # Add mumu selection to schedule
00030   process.goldenZmumuSkimPath = cms.Path(process.goldenZmumuSelectionSequence)
00031   process.schedule.insert(0, process.goldenZmumuSkimPath)
00032 
00033   # Only write out events which have at least one muon pair
00034   outputModule.SelectEvents = cms.untracked.PSet(
00035     SelectEvents = cms.vstring('goldenZmumuSkimPath'))
00036 
00037   return(process)