CMS 3D CMS Logo

skim_detstatus_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("SKIM")
4 
5 process.load("FWCore.MessageLogger.MessageLogger_cfi")
6 process.load("DPGAnalysis/Skims/DetStatus_cfi")
7 
8 
9 # DCS partitions
10 # "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
11 # "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
12 # "BPIX","FPIX","ESp","ESm"
13 
14 #adapt skimming
15 process.dcsstatus.DetectorType = cms.vstring('TOB','BPIX','TECp','TECm')
16 process.dcsstatus.ApplyFilter = cms.bool(True)
17 process.dcsstatus.DebugOn = cms.untracked.bool(True)
18 process.dcsstatus.AndOr = cms.bool(True)
19 
20 
21 
22 
23 process.configurationMetadata = cms.untracked.PSet(
24  version = cms.untracked.string('$Revision: 1.2 $'),
25  name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/CMSSW/DPGAnalysis/Skims/python/skim_detstatus_cfg.py,v $'),
26  annotation = cms.untracked.string('DCSStatus skim')
27 )
28 
29 process.maxEvents = cms.untracked.PSet(
30  input = cms.untracked.int32(10)
31 )
32 
33 process.out = cms.OutputModule("PoolOutputModule",
34  fileName = cms.untracked.string('mytest_dcsstatus.root'),
35  outputCommands = cms.untracked.vstring('keep *','drop *_MEtoEDMConverter_*_*'),
36  dataset = cms.untracked.PSet(
37  dataTier = cms.untracked.string('RECO'),
38  filterName = cms.untracked.string('DCSStatus')),
39  SelectEvents = cms.untracked.PSet(
40  SelectEvents = cms.vstring('p')
41  )
42 )
43 
44 process.p = cms.Path(process.dcsstatus)
45 process.e = cms.EndPath(process.out)
46 
47 myfilelist = cms.untracked.vstring()
48 
49 #myfilelist.extend( ['file:evenmorefile1.root','file:evenmorefile2.root'] )
50 #process.source = cms.Source("PoolSource",
51 # debugVerbosity = cms.untracked.uint32(0),
52 # debugFlag = cms.untracked.bool(False),
53 # fileNames = myfilelist
54 #))
55 
56 myfilelist.extend( [
57 # data
58 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/124/022/FC89901D-FFE6-DE11-AA38-001D09F25401.root',
59 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/124/022/EED31843-06E7-DE11-B658-000423D6B5C4.root',
60 #'/store/express/BeamCommissioning09/ExpressPhysics/FEVT/v2/000/124/022/56725260-03E7-DE11-8291-001D09F28EA3.root'
61 #MC
62 #'/store/mc/Summer09/MinBias/GEN-SIM-RECO/V16D_900GeV-v1/0000/026DF601-7916-DF11-8223-003048D46012.root',
63 #'/store/mc/Summer09/MinBias/GEN-SIM-RECO/V16D_900GeV-v1/0000/026DF601-7916-DF11-8223-003048D46012.root'
64 #RelVal
65 #'/store/relval/CMSSW_3_4_0_pre2/RelValMinBias/GEN-SIM-RECO/STARTUP3XY_V9-v1/0003/FE73FBC4-C0BD-DE11-9691-0026189438A5.root'
66 ] )
67 
68 
69 process.source = cms.Source('PoolSource',
70 # debugVerbosity = cms.untracked.uint32(0),
71 # debugFlag = cms.untracked.bool(False),
72  fileNames = myfilelist )
73 
74