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) |
22 |
< |
) |
21 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
22 |
> |
) |
23 |
> |
|
24 |
|
|
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/Hydjet_MinBias_2760GeV_000.root') |
10 |
< |
) |
27 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
28 |
|
|
29 |
< |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
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.p = cms.Path(process.ana) |
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 * |
46 |
> |
|
47 |
> |
process.bkg4Jets = cms.EDProducer( |
48 |
> |
"JetAlgorithmAnalyzer", |
49 |
> |
# "BackgroundJetProducer", |
50 |
> |
CaloJetParameters, |
51 |
> |
AnomalousCellParameters, |
52 |
> |
jetAlgorithm = cms.string("IterativeCone"), |
53 |
> |
rParam = cms.double(0.4), |
54 |
> |
avoidNegative = cms.bool(False), |
55 |
> |
subtractorName = cms.string("MultipleAlgoIterator") |
56 |
> |
) |
57 |
> |
|
58 |
> |
process.bkg4Jets.doPUOffsetCorr = True |
59 |
> |
process.bkg4Jets.doPVCorrection = False |
60 |
> |
process.bkg4Jets.jetPtMin = 10 |
61 |
> |
process.bkg4Jets.radiusPU = 0.4 |
62 |
> |
|
63 |
> |
process.bkg5Jets = process.bkg4Jets.clone() |
64 |
> |
process.bkg5Jets.rParam = 0.5 |
65 |
> |
process.bkg5Jets.radiusPU = 0.5 |
66 |
> |
|
67 |
> |
process.bkg6Jets = process.bkg4Jets.clone() |
68 |
> |
process.bkg6Jets.rParam = 0.6 |
69 |
> |
process.bkg6Jets.radiusPU = 0.6 |
70 |
> |
|
71 |
> |
process.bkg7Jets = process.bkg4Jets.clone() |
72 |
> |
process.bkg7Jets.rParam = 0.7 |
73 |
> |
process.bkg7Jets.radiusPU = 0.7 |
74 |
> |
|
75 |
> |
process.bkgJets = cms.Sequence(process.bkg5Jets) |
76 |
> |
|
77 |
> |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
78 |
> |
|
79 |
> |
|
80 |
> |
process.load("CondCore.DBCommon.CondDBCommon_cfi") |
81 |
> |
process.CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/n/nart/scratch0/CMSSW_3_7_0_patch4/src/CmsHi/JulyExercise/data/CentralityTables.db" |
82 |
> |
process.PoolDBESSource = cms.ESSource("PoolDBESSource", |
83 |
> |
process.CondDBCommon, |
84 |
> |
toGet = cms.VPSet(cms.PSet(record = cms.string('HeavyIonRcd'), |
85 |
> |
tag = cms.string('HFhits40_DataJulyExercise_Hydjet2760GeV_MC_37Y_V5_v0') |
86 |
> |
) |
87 |
> |
) |
88 |
> |
) |
89 |
> |
|
90 |
> |
process.p = cms.Path(process.bkgJets*process.ana) |
91 |
|
|