Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-01 22:52:11

0001 import FWCore.ParameterSet.Config as cms
0002 import os
0003 
0004 maxevts   = 1000
0005 globaltag = 'GR09_31X_V4P'
0006 globaltag = 'STARTUP3XY_V9'
0007 inputfile = '/store/data/CRAFT09/Cosmics/RECO/v1/000/109/468/F2CDA89C-B57D-DE11-B2C9-000423D98DC4.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 
0070 process.out = cms.OutputModule("PoolOutputModule",
0071                                fileName = cms.untracked.string('rpcttbits.root'),
0072                                outputCommands = cms.untracked.vstring('drop *','keep L1GtTechnicalTriggerRecord_*_*_*') )
0073 
0074 process.p = cms.Path(process.rpcTechnicalTrigger)
0075 
0076 process.e = cms.EndPath(process.out)
0077