Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:39

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 maxevts   = 1000
0005 globaltag = 'STARTUP31X_V2'
0006 globaltag = 'STARTUP3XY_V9'
0007 inputfile = '/store/relval/CMSSW_3_1_2/RelValCosmics/GEN-SIM-DIGI-RAW-HLTDEBUG/STARTUP31X_V2-v1/0007/C481562D-9278-DE11-8CA2-000423D9517C.root'
0008 
0009 process   = cms.Process("RPCTechnicalTrigger")
0010 
0011 process.load("FWCore.MessageService.MessageLogger_cfi")
0012 
0013 process.MessageLogger.cerr.enable = False
0014 process.MessageLogger.cout = cms.untracked.PSet(
0015         enable = cms.untracked.bool(True),
0016         threshold = cms.untracked.string('DEBUG'),
0017     INFO = cms.untracked.PSet(
0018         limit = cms.untracked.int32(-1) ) )
0019 
0020 #.. Geometry and Global Tags
0021 process.load("Configuration.StandardSequences.GeometryDB_cff")
0022 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0023 process.GlobalTag.globaltag = cms.string( globaltag )
0024 process.load("Configuration.StandardSequences.MagneticField_cff")
0025 
0026 #.. if cosmics: reconstruction sequence for Cosmics
0027 process.load("Configuration.StandardSequences.ReconstructionCosmics_cff")
0028 
0029 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(maxevts) )
0030 
0031 process.source = cms.Source("PoolSource",
0032                             fileNames = cms.untracked.vstring( inputfile ) )
0033 
0034 #..............................................................................................................
0035 #.. EventSetup Configuration
0036 #...
0037 
0038 useEventSetup = 0
0039 mytag         = 'test5'
0040 database      = 'sqlite'
0041 
0042 if database   == 'sqlite':
0043     dbconnection = 'sqlite_file:/afs/cern.ch/user/a/aosorio/public/rpcTechnicalTrigger/myrbconfig.db'
0044 elif database == 'oraclerpc':
0045     dbconnection = 'oracle://devdb10/CMS_RPC_COMMISSIONING'
0046 else:
0047     dbconnection = ''
0048 
0049 if useEventSetup >= 1:
0050 
0051     from CondCore.DBCommon.CondDBCommon_cfi import *
0052 
0053     PoolDBESSource = cms.ESSource("PoolDBESSource",
0054                                   loadAll = cms.bool(True),
0055                                   toGet = cms.VPSet(cms.PSet( record = cms.string('RBCBoardSpecsRcd'),
0056                                                               tag = cms.string(mytag+'a')),
0057                                                     cms.PSet( record = cms.string('TTUBoardSpecsRcd'),
0058                                                               tag = cms.string(mytag+'b'))),
0059                                   DBParameters = cms.PSet( messageLevel = cms.untracked.int32(2),
0060                                                            authenticationPath = cms.untracked.string('')),
0061                                   messagelevel = cms.untracked.uint32(2),
0062                                   connect = cms.string(dbconnection) )
0063 
0064     CondDBCommon.connect = cms.string( dbconnection )
0065 
0066 #..............................................................................................................
0067 
0068 process.load("L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi")
0069 process.rpcTechnicalTrigger.UseRPCSimLink = cms.untracked.int32(1)
0070 process.rpcTechnicalTrigger.RPCDigiLabel = cms.InputTag("simMuonRPCDigis")
0071 
0072 process.out = cms.OutputModule("PoolOutputModule",
0073                                fileName = cms.untracked.string('rpcttbits.root'),
0074                                outputCommands = cms.untracked.vstring('drop *','keep L1GtTechnicalTriggerRecord_*_*_*') )
0075 
0076 process.p = cms.Path(process.rpcTechnicalTrigger)
0077 
0078 process.e = cms.EndPath(process.out)
0079