Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

import FWCore.ParameterSet.Config as cms

def customise(process):

#    process.dtDataIntegrityUnpacker.inputLabel = cms.untracked.InputTag('rawDataCollector')

#    process.DQMOfflineCosmics.remove(process.hcalOfflineDQMSource)

#    process.load("FWCore.Modules.printContent_cfi")
#    process.myPath1 = cms.Path( process.printContent )

    process.options = cms.untracked.PSet(
      wantSummary = cms.untracked.bool(True) 
    )

    #using the DQMROOT means that the reco output will be empty
    process.DQMoutput.outputCommands.append('drop *')
    process.DQMoutput.outputCommands.append('keep *_MEtoEDMConverter_*_*')

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

    # Do not activate by default the logging of where each histogram is booked.
    process.DQMStore.verbose = cms.untracked.int32(2)
    process.load("DQMServices.Components.DQMStoreStats_cfi")
    process.stats = cms.Path(process.dqmStoreStats)
    process.schedule.insert(-1,process.stats)
    #Run only on fat events
    from HLTrigger.HLTfilters.hltHighLevel_cfi import hltHighLevel
    process.hltFatEventFilters = hltHighLevel.clone()
    process.hltFatEventFilters.throw = cms.bool(False)
    process.hltFatEventFilters.HLTPaths = cms.vstring('HLT_L1FatEvents_v*')
    #Run L1TReemulation
    from L1Trigger.Configuration.customiseReEmul import L1TReEmulFromRAW 
    process = L1TReEmulFromRAW(process)
    #Put all together into one path, so that reco does not run on non-fat events
    process.p=cms.Path( #process.hltFatEventFilters*
    			process.RawToDigi*
    			process.reconstruction*
    			process.DQMOffline*			
    			process.L1TReEmul
    		)
    process.e=cms.EndPath( process.DQMoutput )
    process.schedule=cms.Schedule(process.p,process.e)
    return(process)