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) |
25 |
< |
) |
24 |
> |
input = cms.untracked.int32(ivars.maxEvents) |
25 |
> |
) |
26 |
> |
|
27 |
|
|
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/Hydjet_MinBias_2760GeV_000.root') |
10 |
< |
) |
30 |
> |
fileNames = cms.untracked.vstring(ivars.files) |
31 |
|
|
32 |
< |
process.ana = cms.EDAnalyzer('MinBiasTowerAnalyzer') |
32 |
> |
) |
33 |
|
|
34 |
|
process.TFileService = cms.Service('TFileService', |
35 |
< |
fileName = cms.string('plots.root') |
35 |
> |
fileName = cms.string('plots_' + ivars.output) |
36 |
|
) |
37 |
|
|
38 |
< |
process.p = cms.Path(process.ana) |
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", |
60 |
> |
CaloJetParameters, |
61 |
> |
AnomalousCellParameters, |
62 |
> |
jetAlgorithm = cms.string("IterativeCone"), |
63 |
> |
rParam = cms.double(0.4), |
64 |
> |
avoidNegative = cms.bool(False), |
65 |
> |
subtractorName = cms.string("MultipleAlgoIterator") |
66 |
> |
) |
67 |
> |
|
68 |
> |
process.bkg4Jets.doPUOffsetCorr = True |
69 |
> |
process.bkg4Jets.doPVCorrection = False |
70 |
> |
process.bkg4Jets.jetPtMin = 10 |
71 |
> |
process.bkg4Jets.radiusPU = 0.4 |
72 |
> |
|
73 |
> |
process.bkg5Jets = process.bkg4Jets.clone() |
74 |
> |
process.bkg5Jets.rParam = 0.5 |
75 |
> |
process.bkg5Jets.radiusPU = 0.5 |
76 |
> |
|
77 |
> |
process.bkg6Jets = process.bkg4Jets.clone() |
78 |
> |
process.bkg6Jets.rParam = 0.6 |
79 |
> |
process.bkg6Jets.radiusPU = 0.6 |
80 |
> |
|
81 |
> |
process.bkg7Jets = process.bkg4Jets.clone() |
82 |
> |
process.bkg7Jets.rParam = 0.7 |
83 |
> |
process.bkg7Jets.radiusPU = 0.7 |
84 |
> |
|
85 |
> |
process.bkgJets = cms.Sequence(process.bkg5Jets) |
86 |
> |
|
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") |
96 |
> |
process.CondDBCommon.connect = "sqlite_file:/afs/cern.ch/user/n/nart/scratch0/CMSSW_3_7_0_patch4/src/CmsHi/JulyExercise/data/CentralityTables.db" |
97 |
> |
process.PoolDBESSource = cms.ESSource("PoolDBESSource", |
98 |
> |
process.CondDBCommon, |
99 |
> |
toGet = cms.VPSet(cms.PSet(record = cms.string('HeavyIonRcd'), |
100 |
> |
tag = cms.string('HFhits40_DataJulyExercise_Hydjet2760GeV_MC_37Y_V5_v0') |
101 |
> |
) |
102 |
> |
) |
103 |
> |
) |
104 |
> |
|
105 |
> |
process.p = cms.Path(process.bkgJets |
106 |
> |
*process.ana |
107 |
> |
) |
108 |
> |
process.out_step = cms.EndPath(process.output) |
109 |
> |
|
110 |
> |
|
111 |
|
|