Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process( "CREATE" )
00004
00005 Triggers = cms.VPSet(
00006 cms.PSet(
00007 listName = cms.string( 'TauTriggerForMuDataset' ),
00008 hltPaths = cms.vstring('HLT_IsoMu24_eta2p1_v*'),
00009 dataTypeToInclude = cms.vstring('RealData','RealMuonsData'),
00010 ),
00011
00012
00013
00014
00015
00016 cms.PSet(
00017 listName = cms.string( 'TauTriggerForJetDataset' ),
00018 hltPaths = cms.vstring('HLT_Jet30_L1FastJet_v*'),
00019 dataTypeToInclude = cms.vstring('RealData'),
00020 ),
00021 cms.PSet(
00022 listName = cms.string( 'TauTriggerForMultiJetDataset' ),
00023 hltPaths = cms.vstring('HLT_Jet30_L1FastJet_v*'),
00024 dataTypeToInclude = cms.vstring('RealData'),
00025 ),
00026 cms.PSet(
00027 listName = cms.string( 'TauTriggerForDoubleElectronDataset' ),
00028 hltPaths = cms.vstring('HLT_Ele20_CaloIdVT_CaloIsoVT_TrkIdT_TrkIsoVT_SC4_Mass50_v*'),
00029 dataTypeToInclude = cms.vstring('RealElectronsData'),
00030 ),
00031 cms.PSet(
00032 listName = cms.string( 'TauTriggerForTauPlusXDataset' ),
00033 hltPaths = cms.vstring('HLT_Ele20_CaloIdVT_CaloIsoRhoT_TrkIdT_TrkIsoT_LooseIsoPFTau20_v*'),
00034 dataTypeToInclude = cms.vstring('RealElectronsData'),
00035 ),
00036 )
00037
00038 usedQCDTriggers = []
00039 usedMuTriggers = []
00040 usedEleTriggers = []
00041 for trigger in Triggers:
00042 if 'RealData' in trigger.dataTypeToInclude.value():
00043 usedQCDTriggers.extend(trigger.hltPaths.value())
00044 if 'RealMuonsData' in trigger.dataTypeToInclude.value():
00045 usedMuTriggers.extend(trigger.hltPaths.value())
00046 if 'RealElectronsData' in trigger.dataTypeToInclude.value():
00047 usedEleTriggers.extend(trigger.hltPaths.value())
00048
00049 Triggers.append(
00050 cms.PSet(
00051 listName = cms.string( 'TauTriggerForALLQCDDataset' ),
00052 hltPaths = cms.vstring(list(set(usedQCDTriggers))),
00053 )
00054 )
00055
00056 Triggers.append(
00057 cms.PSet(
00058 listName = cms.string( 'TauTriggerForALLMuDataset' ),
00059 hltPaths = cms.vstring(list(set(usedMuTriggers))),
00060 )
00061 )
00062
00063 Triggers.append(
00064 cms.PSet(
00065 listName = cms.string( 'TauTriggerForALLEleDataset' ),
00066 hltPaths = cms.vstring(list(set(usedEleTriggers))),
00067 )
00068 )
00069
00070 process.load( "FWCore.MessageLogger.MessageLogger_cfi" )
00071 process.MessageLogger.cerr = cms.untracked.PSet(
00072 placeholder = cms.untracked.bool( True )
00073 )
00074 process.MessageLogger.cout = cms.untracked.PSet(
00075 INFO = cms.untracked.PSet(
00076 reportEvery = cms.untracked.int32( 1 )
00077 )
00078 )
00079
00080 process.source = cms.Source( "EmptySource")
00081 process.maxEvents = cms.untracked.PSet(
00082 input = cms.untracked.int32( 1 )
00083 )
00084
00085 process.AlCaRecoTriggerBitsRcdCreate = cms.EDAnalyzer(
00086 "AlCaRecoTriggerBitsRcdUpdate",
00087 firstRunIOV = cms.uint32( 1 ),
00088 lastRunIOV = cms.int32( -1 ),
00089 startEmpty = cms.bool( True ),
00090 listNamesRemove = cms.vstring(),
00091
00092 triggerListsAdd = Triggers,
00093 )
00094
00095 import CondCore.DBCommon.CondDBSetup_cfi
00096 process.PoolDBOutputService = cms.Service(
00097 "PoolDBOutputService",
00098 CondCore.DBCommon.CondDBSetup_cfi.CondDBSetup,
00099 timetype = cms.untracked.string( 'runnumber' ),
00100 connect = cms.string( 'sqlite_file:GenericTriggerEventFlag_AlCaRecoTriggerBits.db' ),
00101 toPut = cms.VPSet(
00102 cms.PSet(
00103 record = cms.string( 'AlCaRecoTriggerBitsRcd' ),
00104 tag = cms.string( 'PFTauDQMTrigger_v0' ),
00105 label = cms.untracked.string("PFTauDQMTrigger")
00106 ),
00107 ),
00108 )
00109
00110 process.p = cms.Path(
00111 process.AlCaRecoTriggerBitsRcdCreate
00112 )