Example #1
0
else:    
  process.hionia.primaryVertexTag = cms.InputTag("offlinePrimaryVertices")
  process.hionia.genParticles     = cms.InputTag("genParticles")
  process.hionia.muonLessPV       = cms.bool(True)
  process.hionia.CentralitySrc    = cms.InputTag("")
  process.hionia.CentralityBinSrc = cms.InputTag("")
  process.hionia.srcTracks        = cms.InputTag("generalTracks")  

  process.Onia2MuMuPAT.append(process.hionia)


##### Construct the sequence
process.schedule = cms.Schedule(process.Onia2MuMuPAT)
  
from Configuration.Applications.ConfigBuilder import MassReplaceInputTag
MassReplaceInputTag(process)


'''

FOR PbPb: /online/collisions/2015/HeavyIons/v1.0/HLT/V6

dblTriggerPathNames = cms.vstring("HLT_HIL1DoubleMu0_v1",
	"HLT_HIL1DoubleMu0_2HF_v1",
	"HLT_HIL1DoubleMu0_2HF0_v1",
	"HLT_HIL1DoubleMu10_v1",
	"HLT_HIL2DoubleMu0_NHitQ_v2",
	"HLT_HIL2DoubleMu0_NHitQ_2HF_v1",
	"HLT_HIL2DoubleMu0_NHitQ_2HF0_v1",
	"HLT_HIL1DoubleMu0_2HF_Cent30100_v1",
	"HLT_HIL1DoubleMu0_2HF0_Cent30100_v1",
process.GlobalTag = GlobalTag(process.GlobalTag, '103X_dataRun2_Prompt_fixEcalADCToGeV_v1', '')

# Path and EndPath definitions
process.raw2digi_step = cms.Path(process.RawToDigi)
process.L1Reco_step = cms.Path(process.L1Reco)
process.reconstruction_step = cms.Path(process.reconstruction)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.AODoutput_step = cms.EndPath(process.AODoutput)

# Schedule definition
process.schedule = cms.Schedule(process.raw2digi_step,process.L1Reco_step,process.reconstruction_step,process.endjob_step,process.AODoutput_step)
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

from Configuration.Applications.ConfigBuilder import MassReplaceInputTag
MassReplaceInputTag(process, new="rawDataMapperByLabel", old="rawDataCollector")

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
from Configuration.DataProcessing.Utils import addMonitoring 

#call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
process = addMonitoring(process)

# End of customisation functions
#do not add changes to your config after this point (unless you know what you are doing)
from FWCore.ParameterSet.Utilities import convertToUnscheduled
process=convertToUnscheduled(process)