ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/baumgartel/CSC/CSCPlugins/test/readDBBadChambers_cfg.py
Revision: 1.2
Committed: Wed Jun 15 10:54:35 2011 UTC (13 years, 10 months ago) by darinb
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -2 lines
Log Message:
First commit of bad chambers reading from database

File Contents

# User Rev Content
1 darinb 1.1 # The following comments couldn't be translated into the new config version:
2    
3     # Configuration file for EventSetupTest_t
4    
5     import FWCore.ParameterSet.Config as cms
6    
7     process = cms.Process("TEST")
8     process.PoolDBESSource = cms.ESSource("PoolDBESSource",
9     loadAll = cms.bool(True),
10     timetype = cms.string('runnumber'),
11     toGet = cms.VPSet(cms.PSet(
12     record = cms.string('CSCBadChambersRcd'),
13 darinb 1.2 #tag = cms.string('CSCBadChambers_none_FiveLiveME42')
14     tag = cms.string('CSCBadChambers_prompt')
15    
16 darinb 1.1 )),
17     #read from sqlite_file
18 darinb 1.2 #connect=cms.string("oracle://cms_orcon_prod/CMS_COND_31X_CSC"),
19     connect = cms.string('frontier://PromptProd/CMS_COND_31X_CSC'),
20     #connect = cms.string('sqlite_file:CSCBadChambers_04March2011_V2.db'),
21 darinb 1.1 # read from database
22     #connect=cms.string("frontier://FrontierDev/CMS_COND_CSC"),
23     #connect = cms.string("oracle://cms_orcoff_prep/CMS_COND_CSC"),
24     DBParameters = cms.PSet(
25     authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
26     authenticationMethod = cms.untracked.uint32(1)
27     )
28     )
29    
30     process.maxEvents = cms.untracked.PSet(
31     input = cms.untracked.int32(1)
32     )
33     process.source = cms.Source("EmptySource")
34    
35     process.analyze = cms.EDAnalyzer("CSCReadBadChambersAnalyzer",
36     outputToFile = cms.bool(True),
37     readBadChambers = cms.bool(True),
38     me42installed = cms.bool(True)
39     )
40    
41     process.output = cms.OutputModule("AsciiOutputModule")
42    
43     process.p = cms.Path(process.analyze)
44     process.ep = cms.EndPath(process.output)
45