1 |
mangano |
1.1 |
<html>
|
2 |
|
|
<body>
|
3 |
|
|
<pre>
|
4 |
|
|
import FWCore.ParameterSet.Config as cms
|
5 |
|
|
process = cms.Process('cmsExtractSkim')
|
6 |
|
|
|
7 |
|
|
process.load("FWCore.MessageLogger.MessageLogger_cfi")
|
8 |
|
|
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
|
9 |
|
|
|
10 |
|
|
process.source = cms.Source("PoolSource",
|
11 |
|
|
fileNames = cms.untracked.vstring(),
|
12 |
|
|
inputCommands = cms.untracked.vstring(
|
13 |
|
|
'keep *',
|
14 |
|
|
)
|
15 |
|
|
)
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
process.source.fileNames = cms.untracked.vstring(
|
19 |
|
|
'<?php print $_GET["input"] ?>'
|
20 |
|
|
)
|
21 |
|
|
|
22 |
|
|
from HLTrigger.HLTfilters.hltHighLevelDev_cfi import hltHighLevelDev
|
23 |
|
|
process.skim = hltHighLevelDev.clone(
|
24 |
|
|
TriggerResultsTag = cms.InputTag('TriggerResults','','Skim'),
|
25 |
|
|
throw = False,
|
26 |
|
|
HLTPaths = ['<?php print $_GET["skimName"] ?>'], HLTPathsPrescales = [1],
|
27 |
|
|
)
|
28 |
|
|
|
29 |
|
|
process.p = cms.Path(process.skim)
|
30 |
|
|
|
31 |
|
|
process.out = cms.OutputModule(
|
32 |
|
|
"PoolOutputModule",
|
33 |
|
|
fileName = cms.untracked.string('<?php print $_GET["skimName"] ?>.root'),
|
34 |
|
|
SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p'))
|
35 |
|
|
)
|
36 |
|
|
|
37 |
|
|
process.end = cms.EndPath(process.out)
|
38 |
|
|
</pre>
|
39 |
|
|
</body>
|
40 |
|
|
</html>
|