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 |
+ |
] |
6 |
+ |
|
7 |
+ |
ivars.output = 'RandomCones_Hydjet_370.root' |
8 |
+ |
ivars.maxEvents = -1 |
9 |
+ |
ivars.register ('randomNumber', |
10 |
+ |
mult=ivars.multiplicity.singleton, |
11 |
+ |
info="for testing") |
12 |
+ |
ivars.randomNumber=5 |
13 |
+ |
ivars.parseArguments() |
14 |
+ |
|
15 |
|
import FWCore.ParameterSet.Config as cms |
16 |
|
|
17 |
|
|
18 |
|
process = cms.Process('ANALYSIS') |
19 |
|
|
20 |
|
process.maxEvents = cms.untracked.PSet( |
21 |
< |
input = cms.untracked.int32(2) |
8 |
< |
|
21 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
22 |
|
) |
23 |
|
|
24 |
|
|
12 |
– |
|
25 |
|
# Input source |
26 |
|
process.source = cms.Source("PoolSource", |
27 |
< |
fileNames = cms.untracked.vstring('rfio:/castor/cern.ch/user/y/yilmaz/pat/CMSSW_3_7_0/SignalQuenchedDijet80to120_runs1to100.root') |
27 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
28 |
|
|
29 |
|
) |
30 |
|
|
31 |
|
process.TFileService = cms.Service('TFileService', |
32 |
< |
fileName = cms.string('plots.root') |
32 |
> |
fileName = cms.string('plots_' + ivars.output) |
33 |
|
) |
34 |
|
|
35 |
|
process.load('Configuration/StandardSequences/GeometryExtended_cff') |
36 |
+ |
process.load('Configuration/StandardSequences/Services_cff') |
37 |
+ |
|
38 |
+ |
process.RandomNumberGeneratorService.bkg4Jets = cms.PSet( initialSeed = cms.untracked.uint32(ivars.randomNumber), |
39 |
+ |
engineName = cms.untracked.string('HepJamesRandom') ) |
40 |
+ |
process.RandomNumberGeneratorService.bkg5Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
41 |
+ |
process.RandomNumberGeneratorService.bkg6Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
42 |
+ |
process.RandomNumberGeneratorService.bkg7Jets = process.RandomNumberGeneratorService.bkg4Jets.clone() |
43 |
|
|
44 |
|
from RecoJets.JetProducers.CaloJetParameters_cfi import * |
45 |
|
from RecoJets.JetProducers.AnomalousCellParameters_cfi import * |