Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:15

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process( "TEST" )
0004 
0005 ## Logging
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 
0008 process.MessageLogger.cerr.threshold = 'INFO'
0009 process.MessageLogger.cerr.GenericTriggerEventFlag = cms.untracked.PSet( limit = cms.untracked.int32( -1 ) )
0010 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool( True ) )
0011 
0012 # Conditions
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 process.GlobalTag = GlobalTag( process.GlobalTag, 'auto:com10' )
0016 
0017 ## Source
0018 process.source = cms.Source( "PoolSource"
0019 , fileNames  = cms.untracked.vstring( '/store/relval/CMSSW_6_2_0_pre8/SingleMu/RECO/PRE_62_V8_RelVal_mu2012D-v1/00000/005835E9-05E0-E211-BA7B-003048F1C7C0.root'
0020                                     )
0021 #, skipEvents = cms.untracked.uint32( 0 )
0022 )
0023 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32( 10 ) )
0024 
0025 # Test modules
0026 # GT
0027 process.genericTriggerEventFlagGTPass = cms.EDFilter( "GenericTriggerEventFlagTest"
0028 , andOr          = cms.bool( False )
0029 , verbosityLevel = cms.uint32( 2 )
0030 , andOrGt        = cms.bool( False )
0031 , gtInputTag     = cms.InputTag( 'gtDigis' )
0032 , gtEvmInputTag  = cms.InputTag( 'gtEvmDigis' )
0033 , gtStatusBits   = cms.vstring( 'PhysDecl'
0034                               )
0035 , errorReplyGt   = cms.bool( False )
0036 )
0037 process.genericTriggerEventFlagGTFail     = process.genericTriggerEventFlagGTPass.clone( gtStatusBits = [ '900GeV' ] )
0038 process.genericTriggerEventFlagGTTest     = process.genericTriggerEventFlagGTPass.clone( gtStatusBits = [ '8TeV' ] )
0039 process.genericTriggerEventFlagGTTestFail = process.genericTriggerEventFlagGTPass.clone( gtInputTag   = 'whateverDigis' )
0040 # L1
0041 process.genericTriggerEventFlagL1Pass = cms.EDFilter( "GenericTriggerEventFlagTest"
0042 , andOr          = cms.bool( False )
0043 , verbosityLevel = cms.uint32( 2 )
0044 , andOrL1      = cms.bool( False )
0045 , l1Algorithms = cms.vstring( 'L1_SingleMu12 OR L1_SingleMu14_Eta2p1'
0046                             )
0047 , errorReplyL1 = cms.bool( False )
0048 )
0049 process.genericTriggerEventFlagL1Fail     = process.genericTriggerEventFlagL1Pass.clone( l1Algorithms = [ 'L1_SingleMu12_' ] )
0050 process.genericTriggerEventFlagL1Test     = process.genericTriggerEventFlagL1Pass.clone( l1Algorithms = [ 'L1_SingleMu12* OR L1_SingleMu14*' ] )
0051 process.genericTriggerEventFlagL1TestFail = process.genericTriggerEventFlagL1Pass.clone( l1Algorithms = [ 'L1_SingleMu12_v*' ] )
0052 # HLT
0053 process.genericTriggerEventFlagHLTPass = cms.EDFilter( "GenericTriggerEventFlagTest"
0054 , andOr          = cms.bool( False )
0055 , verbosityLevel = cms.uint32( 2 )
0056 , andOrHlt      = cms.bool( False )
0057 , hltInputTag   = cms.InputTag( 'TriggerResults::HLT' )
0058 , hltPaths      = cms.vstring( 'HLT_IsoMu24_eta2p1_v13' # only in 2012B
0059                              )
0060 , errorReplyHlt = cms.bool( False )
0061 )
0062 process.genericTriggerEventFlagHLTFail      = process.genericTriggerEventFlagHLTPass.clone( hltPaths = [ 'HLT_IsoMu24_eta2p1' ] )
0063 process.genericTriggerEventFlagHLTTestTight = process.genericTriggerEventFlagHLTPass.clone( hltPaths = [ 'HLT_IsoMu24_eta2p1_v*' ] )
0064 process.genericTriggerEventFlagHLTTestLoose = process.genericTriggerEventFlagHLTPass.clone( hltPaths = [ 'HLT_IsoMu24_*' ] )
0065 process.genericTriggerEventFlagHLTTestFail  = process.genericTriggerEventFlagHLTPass.clone( hltPaths = [ 'HLT_IsoMu2*_v*' ] )        # does not fail, in fact :-)
0066 
0067 # Paths
0068 # GT
0069 process.pGTPass = cms.Path(
0070   process.genericTriggerEventFlagGTPass
0071 )
0072 process.pGTFail = cms.Path(
0073   process.genericTriggerEventFlagGTFail
0074 )
0075 process.pGTTest = cms.Path(
0076   process.genericTriggerEventFlagGTTest
0077 )
0078 process.pGTTestFail = cms.Path(
0079   process.genericTriggerEventFlagGTTestFail
0080 )
0081 # L1
0082 process.pL1Pass = cms.Path(
0083   process.genericTriggerEventFlagL1Pass
0084 )
0085 process.pL1Fail = cms.Path(
0086   process.genericTriggerEventFlagL1Fail
0087 )
0088 process.pL1Test = cms.Path(
0089   process.genericTriggerEventFlagL1Test
0090 )
0091 process.pL1TestFail = cms.Path(
0092   process.genericTriggerEventFlagL1TestFail
0093 )
0094 # HLT
0095 process.pHLTPass = cms.Path(
0096   process.genericTriggerEventFlagHLTPass
0097 )
0098 process.pHLTFail = cms.Path(
0099   process.genericTriggerEventFlagHLTFail
0100 )
0101 process.pHLTTestTight = cms.Path(
0102   process.genericTriggerEventFlagHLTTestTight
0103 )
0104 process.pHLTTestLoose = cms.Path(
0105   process.genericTriggerEventFlagHLTTestLoose
0106 )
0107 process.pHLTTestFail = cms.Path(
0108   process.genericTriggerEventFlagHLTTestFail
0109 )