test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TPGSkims_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.configurationMetadata = cms.untracked.PSet(
6  version = cms.untracked.string('$Revision: 1.1 $'),
7  name = cms.untracked.string('$Source' ),
8  annotation = cms.untracked.string('TPG skim')
9 )
10 
11 #
12 #
13 # This is for testing purposes.
14 #
15 #
16 process.source = cms.Source("PoolSource",
17  fileNames = cms.untracked.vstring(
18 # run 136066 lumi~500
19 '/store/data/Run2010A/MinimumBias/RECO/v1/000/136/066/18F6DB82-5566-DF11-B289-0030487CAF0E.root'),
20  secondaryFileNames = cms.untracked.vstring(
21 '/store/data/Run2010A/MinimumBias/RAW/v1/000/136/066/38D48BED-3C66-DF11-88A5-001D09F27003.root')
22 )
23 
24 process.source.inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*", "drop L1GlobalTriggerObjectMapRecord_hltL1GtObjectMap__HLT")
25 
26 process.maxEvents = cms.untracked.PSet(
27  input = cms.untracked.int32(500)
28 )
29 
30 
31 #------------------------------------------
32 # Load standard sequences.
33 #------------------------------------------
34 process.load('Configuration/StandardSequences/MagneticField_AutoFromDBCurrent_cff')
35 process.load('Configuration/StandardSequences/GeometryIdeal_cff')
36 
37 
38 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
39 process.GlobalTag.globaltag = 'GR10_P_V6::All'
40 
41 process.load("Configuration/StandardSequences/RawToDigi_Data_cff")
42 process.load("Configuration/StandardSequences/Reconstruction_cff")
43 process.load('Configuration/EventContent/EventContent_cff')
44 
45 #drop collections created on the fly
46 process.FEVTEventContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
47 process.FEVTEventContent.outputCommands.append("drop *_*_*_SKIM")
48 
49 #
50 # Load common sequences
51 #
52 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskAlgoTrigConfig_cff')
53 process.load('L1TriggerConfig.L1GtConfigProducers.L1GtTriggerMaskTechTrigConfig_cff')
54 process.load('HLTrigger/HLTfilters/hltLevel1GTSeed_cfi')
55 
56 ##################################TPG Skims############################################
57 
58 
59 process.load('DPGAnalysis/Skims/singleMuonSkim_cff')
60 process.load('DPGAnalysis/Skims/singleElectronSkim_cff')
61 process.load('DPGAnalysis/Skims/muonTagProbeFilters_cff')
62 process.load('DPGAnalysis/Skims/electronTagProbeFilters_cff')
63 process.load('DPGAnalysis/Skims/singlePhotonSkim_cff')
64 process.load('DPGAnalysis/Skims/jetSkim_cff')
65 process.load('DPGAnalysis/Skims/METSkim_cff')
66 process.load('DPGAnalysis/Skims/singlePfTauSkim_cff')
67 
68 #process.singleMuPt20SkimPath=cms.Path(process.singleMuPt20RecoQualitySeq)
69 #process.singleMuPt15SkimPath=cms.Path(process.singleMuPt15RecoQualitySeq)
70 #process.singleMuPt10SkimPath=cms.Path(process.singleMuPt10RecoQualitySeq)
71 process.singleMuPt5SkimPath=cms.Path(process.singleMuPt5RecoQualitySeq)
72 #process.singleElectronPt20SkimPath=cms.Path(process.singleElectronPt20RecoQualitySeq)
73 #process.singleElectronPt15SkimPath=cms.Path(process.singleElectronPt15RecoQualitySeq)
74 #process.singleElectronPt10SkimPath=cms.Path(process.singleElectronPt10RecoQualitySeq)
75 process.singleElectronPt5SkimPath=cms.Path(process.singleElectronPt5RecoQualitySeq)
76 #process.singlePhotonPt20SkimPath=cms.Path(process.singlePhotonPt20QualitySeq)
77 #process.singlePhotonPt15SkimPath=cms.Path(process.singlePhotonPt15QualitySeq)
78 #process.singlePhotonPt10SkimPath=cms.Path(process.singlePhotonPt10QualitySeq)
79 process.singlePhotonPt5SkimPath=cms.Path(process.singlePhotonPt5QualitySeq)
80 #process.muonZMMSkimPath=cms.Path(process.muonZMMRecoQualitySeq)
81 process.muonJPsiMMSkimPath=cms.Path(process.muonJPsiMMRecoQualitySeq)
82 #process.electronZEESkimPath=cms.Path(process.electronZEERecoQualitySeq)
83 process.jetSkimPath=cms.Path(process.jetRecoQualitySeq)
84 #process.METSkimPath=cms.Path(process.METQualitySeq)
85 process.singlePfTauPt15SkimPath=cms.Path(process.singlePfTauPt15QualitySeq)
86 
87 process.outTPGSkim = cms.OutputModule("PoolOutputModule",
88  outputCommands = process.FEVTHLTALLEventContent.outputCommands,
89  fileName = cms.untracked.string("/tmp/azzi/TPGSkim.root"),
90  dataset = cms.untracked.PSet(
91  dataTier = cms.untracked.string('USER'),
92  filterName = cms.untracked.string('TPGSkim')
93  ),
94  SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring(
95  #'singleMuPt20SkimPath',
96  #'singleMuPt15SkimPath',
97  #'singleMuPt10SkimPath',
98  'singleMuPt5SkimPath',
99  #'singleElectronPt20SkimPath',
100  #'singleElectronPt15SkimPath',
101  #'singleElectronPt10SkimPath',
102  'singleElectronPt5SkimPath',
103  #'singlePhotonPt20SkimPath',
104  #'singlePhotonPt15SkimPath',
105  #'singlePhotonPt10SkimPath',
106  'singlePhotonPt5SkimPath',
107  #'muonZMMSkimPath',
108  'muonJPsiMMSkimPath',
109  #'electronZEESkimPath',
110  'jetSkimPath',
111  #'METSkimPath',
112  'singlePfTauPt15SkimPath'))
113 )
114 
115 
116 ###########################################################################
117 
118 
119 process.options = cms.untracked.PSet(
120  wantSummary = cms.untracked.bool(True)
121 )
122 
123 process.outpath = cms.EndPath(process.outTPGSkim)
124