1 |
+ |
import FWCore.ParameterSet.VarParsing as VarParsing |
2 |
+ |
ivars = VarParsing.VarParsing('standard') |
3 |
+ |
ivars.files = [ |
4 |
+ |
# 'rfio:/castor/cern.ch/user/y/yilmaz/pat/CMSSW_3_7_0/SignalQuenchedDijet80to120_runs1to100.root' |
5 |
+ |
'rfio:/castor/cern.ch/user/y/yilmaz/share/MinBias0708_runs1to50.root' |
6 |
+ |
] |
7 |
+ |
|
8 |
+ |
ivars.output = 'RandomCones_Hydjet_370.root' |
9 |
+ |
|
10 |
+ |
ivars.maxEvents = 10000 |
11 |
+ |
|
12 |
+ |
ivars.register ('randomNumber', |
13 |
+ |
mult=ivars.multiplicity.singleton, |
14 |
+ |
info="for testing") |
15 |
+ |
ivars.randomNumber=5 |
16 |
+ |
ivars.parseArguments() |
17 |
+ |
|
18 |
|
import FWCore.ParameterSet.Config as cms |
19 |
|
|
20 |
|
|
21 |
|
process = cms.Process('ANALYSIS') |
22 |
|
|
23 |
|
process.maxEvents = cms.untracked.PSet( |
24 |
< |
input = cms.untracked.int32(2) |
8 |
< |
|
24 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
25 |
|
) |
26 |
|
|
27 |
|
|
12 |
– |
|
28 |
|
# Input source |
29 |
|
process.source = cms.Source("PoolSource", |
30 |
< |
fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/y/yilmaz/pat/CMSSW_3_7_0/SignalQuenchedDijet80to120_runs1to100.root') |
30 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
31 |
|
|
32 |
|
) |
33 |
|
|
34 |
|
process.TFileService = cms.Service('TFileService', |
35 |
< |
fileName = cms.string('plots.root') |
35 |
> |
fileName = cms.string('plots_' + ivars.output) |
36 |
|
) |
37 |
|
|
38 |
+ |
|
39 |
+ |
process.output = cms.OutputModule("PoolOutputModule", |
40 |
+ |
outputCommands = cms.untracked.vstring("keep *_*_*_*"), |
41 |
+ |
fileName = cms.untracked.string(ivars.output) |
42 |
+ |
) |
43 |
+ |
|
44 |
+ |
|
45 |
|
process.load('Configuration/StandardSequences/GeometryExtended_cff') |
46 |
+ |
process.load('Configuration/StandardSequences/Services_cff') |
47 |
+ |
|
48 |
+ |
process.RandomNumberGeneratorService.bkg4Jets = cms.PSet(initialSeed = cms.untracked.uint32(ivars.randomNumber), |
49 |
+ |
engineName = cms.untracked.string('HepJamesRandom') ) |
50 |
+ |
process.RandomNumberGeneratorService.bkg5Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
51 |
+ |
process.RandomNumberGeneratorService.bkg6Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
52 |
+ |
process.RandomNumberGeneratorService.bkg7Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
53 |
|
|
54 |
|
from RecoJets.JetProducers.CaloJetParameters_cfi import * |
55 |
|
from RecoJets.JetProducers.AnomalousCellParameters_cfi import * |
56 |
|
|
57 |
|
process.bkg4Jets = cms.EDProducer( |
58 |
< |
"JetAlgorithmAnalyzer", |
59 |
< |
# "BackgroundJetProducer", |
58 |
> |
# "JetAlgorithmAnalyzer", |
59 |
> |
"BackgroundJetProducer", |
60 |
|
CaloJetParameters, |
61 |
|
AnomalousCellParameters, |
62 |
|
jetAlgorithm = cms.string("IterativeCone"), |
84 |
|
|
85 |
|
process.bkgJets = cms.Sequence(process.bkg5Jets) |
86 |
|
|
87 |
< |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
87 |
> |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer', |
88 |
> |
# missingTowers_ = cms.untracked.int32(10000), |
89 |
> |
FakeJetSrc_ = cms.untracked.InputTag('bkg5Jets'), |
90 |
> |
PatJetSrc_ = cms.untracked.InputTag('patJets') |
91 |
> |
|
92 |
> |
) |
93 |
|
|
94 |
|
|
95 |
|
process.load("CondCore.DBCommon.CondDBCommon_cfi") |
102 |
|
) |
103 |
|
) |
104 |
|
|
105 |
< |
process.p = cms.Path(process.bkgJets*process.ana) |
105 |
> |
process.p = cms.Path(process.bkgJets |
106 |
> |
*process.ana |
107 |
> |
) |
108 |
> |
process.out_step = cms.EndPath(process.output) |
109 |
> |
|
110 |
> |
|
111 |
|
|