Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes and clean-up after HI mixing updates #7287

Merged
merged 96 commits into from
Jan 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
7e5a227
made EM enriched filter more indipendent from the generator used and …
mmachet Dec 18, 2014
2268509
ZEEMM_13 for HeavyIon electron/muon validation workflow
BetterWang Jan 12, 2015
263be83
centrality updates for 74X
yetkinyilmaz Jan 15, 2015
8a75d1f
some more options
yetkinyilmaz Jan 15, 2015
7c16b7b
wrong constructors cleaned up
yetkinyilmaz Jan 15, 2015
71ca6b0
loop on neutral mesons removed and prompt photons definition changed
mmachet Jan 19, 2015
55a2f90
gen-sequences and modules standardized
yetkinyilmaz Jan 20, 2015
b722647
gen-sequences and modules standardized
yetkinyilmaz Jan 20, 2015
bccfc9d
Unready HI-mixing workflows commented out
yetkinyilmaz Jan 20, 2015
e0706d0
subevent ON but mixing OFF
yetkinyilmaz Jan 20, 2015
5798620
hiGenJets also use genParticlesForJets
yetkinyilmaz Jan 20, 2015
3171e8a
initial commit
Jan 20, 2015
05ea474
added runflip for pPb to CentralityBinProducer
Jan 20, 2015
a047539
centralityBin cfi, everything tracked
Jan 20, 2015
1a8a91d
fix in cfi
Jan 20, 2015
cc7d0c4
adapt jet content
ahinzmann Jan 20, 2015
8b92dd6
more clean-up on old obsolete himix stuff
yetkinyilmaz Jan 20, 2015
3cd04f1
more clean-up on old obsolete himix stuff
yetkinyilmaz Jan 20, 2015
95e8af6
mix vs non-mix swapped
yetkinyilmaz Jan 20, 2015
5f804c2
bug fixes for bin producer
Jan 20, 2015
fbc62ef
pp-only workflows added back
yetkinyilmaz Jan 20, 2015
3a371c6
loop bugfix
Jan 21, 2015
17d97b9
filter cfi prepared
Jan 21, 2015
af6a975
test cfg files added
Jan 21, 2015
cb53857
old comments implemented
Jan 21, 2015
dbfca6e
merged
Jan 21, 2015
5b9b5a5
HI 2.76 TeV nominal vtx smearing added back
yetkinyilmaz Jan 21, 2015
fe18be2
save the same playbackinfo as latest when running playback
yetkinyilmaz Jan 21, 2015
e289c4e
hiGenParticles obsolete, using genParticles
yetkinyilmaz Jan 21, 2015
ea6c10f
Pythia8 update.
BetterWang Jan 21, 2015
d0291c2
more
Jan 21, 2015
8b89571
centrality update to event plane code
Jan 21, 2015
b008579
aligned with SLHC
boudoul Jan 21, 2015
b09bc70
aligned with SLHC
boudoul Jan 21, 2015
2e9a11d
aligned with SLHC
boudoul Jan 21, 2015
57111d2
aligned with SLHC
boudoul Jan 21, 2015
767313c
aligned with SLHC
boudoul Jan 21, 2015
4f9a796
aligned with SLHC
boudoul Jan 21, 2015
d9746ee
add ak5 castor jets
ahinzmann Jan 22, 2015
73cc604
- disable track mixing in case of gen-level mixing
Jan 22, 2015
e72be04
add ak5 castor jets part 2
ahinzmann Jan 22, 2015
2d38fa7
changed the code structure for prompt photons definition
mmachet Jan 22, 2015
fa3f559
detid migration
davidlange6 Oct 16, 2013
7fafd9d
tracker detid migration
davidlange6 Oct 18, 2013
9fa5088
round one of migration
davidlange6 Sep 16, 2013
a00d085
migration test/NavigationSchoolAnalyzer.cc
davidlange6 Sep 17, 2013
298fe31
centrality input label for flat evtplane
yetkinyilmaz Jan 22, 2015
97bd484
complete the event content for fastsim pu files
Jan 22, 2015
7b87f1b
add dqmio option to promptReco and harvesting scripts
deguio Jan 22, 2015
e1e0da6
get rid of tau and HLT changes
ahinzmann Jan 22, 2015
fce4348
Centrality DQM fix for new centrality
yetkinyilmaz Jan 23, 2015
0348871
bug fix phi meson
Jan 23, 2015
dbc02d8
Remove obsolete unused typedefs
wmtan Jan 23, 2015
8629055
DQM update for 74X for 7e33 triggers
Jan 23, 2015
cf8fcb4
DQM update for 74X for 7e33 triggers
Jan 23, 2015
8c0df56
DQM update for 74X for 7e33 triggers
Jan 23, 2015
ffcf1eb
added override to beginRun()
yetkinyilmaz Jan 24, 2015
e4ebcf7
fixed compilation error
mmachet Jan 24, 2015
45a3022
Merge pull request #6976 from mmachet/CMSSW_7_4_X
cmsbuild Jan 25, 2015
de497df
Merge pull request #7342 from wmtan/RemoveUnusedObsoleteTypedefs
cmsbuild Jan 25, 2015
77d0897
fastsim: digi-reco mixing: fixes after detailed review of effects on …
Jan 25, 2015
464dcc5
fastsim: fix unit tests after transition to digi-reco mixing as defau…
Jan 25, 2015
c214000
Fix bug chosing closest simHit
wmtford Jan 26, 2015
a1bbe9d
remove commented lines
ahinzmann Jan 26, 2015
443b0f6
Merge pull request #7312 from boudoul/updating2017
cmsbuild Jan 26, 2015
8b0c388
remaining ak5 to ak4 transitions in DQM and HLT
ahinzmann Jan 26, 2015
4d4fe57
Merge pull request #7335 from makortel/phase1_fwd_TrackerTopology
davidlange6 Jan 26, 2015
14b9225
Merge pull request #7362 from wmtford/pixRecHitValid
cmsbuild Jan 26, 2015
41da432
Merge pull request #7341 from lucamartini/Quarkonia7E33DQM
cmsbuild Jan 26, 2015
1f78f9e
- recovered option --pileup default for cmsDriver
Jan 26, 2015
bf7db54
Merge pull request #7346 from CmsHI/centrality_74X_03
cmsbuild Jan 26, 2015
030a21d
Merge pull request #7329 from ahinzmann/RemoveJetCollections
davidlange6 Jan 26, 2015
93de76c
Merge pull request #7349 from jmduarte/razor-run2-hlt-7e33
cmsbuild Jan 26, 2015
89ff090
Make pointers in static arrays const
Dr15Jones Jan 26, 2015
7c6a535
Merge pull request #7369 from Dr15Jones/makePointersInArraysConst
ktf Jan 26, 2015
5d66afc
Change static 'debug' to constexpr
Dr15Jones Jan 26, 2015
5a67ac7
Fix RPC validation tests
ianna Jan 26, 2015
ce6cb81
Merge pull request #7371 from Dr15Jones/makeDebugStaticConstexpr
ktf Jan 26, 2015
d70c3e6
Merge pull request #7306 from lveldere/fastsim-cmsdriver-digirecomix
davidlange6 Jan 26, 2015
613da6f
Merge pull request #7373 from mdhildreth/74X_PreMix_FixCSC
davidlange6 Jan 26, 2015
e0ecf89
Merge pull request #7358 from lveldere/fastsim-digirecomix-fixes
davidlange6 Jan 26, 2015
807c36a
Merge pull request #7138 from BetterWang/ZEEMM_13_HI_74X
davidlange6 Jan 26, 2015
1447048
Merge pull request #7328 from deguio/T0scripts_74
cmsbuild Jan 26, 2015
1543219
Merge pull request #7372 from ianna/rpc-validation-tests
cmsbuild Jan 26, 2015
033d1ab
gen-sequences and modules standardized
yetkinyilmaz Jan 20, 2015
7324452
gen-sequences and modules standardized
yetkinyilmaz Jan 20, 2015
1669e57
subevent ON but mixing OFF
yetkinyilmaz Jan 20, 2015
6a7dd0b
hiGenJets also use genParticlesForJets
yetkinyilmaz Jan 20, 2015
6d546e0
more clean-up on old obsolete himix stuff
yetkinyilmaz Jan 20, 2015
a2ca707
more clean-up on old obsolete himix stuff
yetkinyilmaz Jan 20, 2015
051fa2d
mix vs non-mix swapped
yetkinyilmaz Jan 20, 2015
363b9ac
pp-only workflows added back
yetkinyilmaz Jan 20, 2015
759087e
HI 2.76 TeV nominal vtx smearing added back
yetkinyilmaz Jan 21, 2015
f98d63d
save the same playbackinfo as latest when running playback
yetkinyilmaz Jan 21, 2015
c808813
hiGenParticles obsolete, using genParticles
yetkinyilmaz Jan 21, 2015
27f43ae
merged recent updates to 74X
yetkinyilmaz Jan 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Alignment/OfflineValidation/plugins/PrimaryVertexValidation.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/SiStripDetId/interface/TIBDetId.h"
#include "DataFormats/SiStripDetId/interface/TIDDetId.h"
#include "DataFormats/SiStripDetId/interface/TOBDetId.h"
#include "DataFormats/SiStripDetId/interface/TECDetId.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h"
Expand Down
82 changes: 37 additions & 45 deletions Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Options:
defaultOptions.scenarioOptions=['pp','cosmics','nocoll','HeavyIons']
defaultOptions.harvesting= 'AtRunEnd'
defaultOptions.gflash = False
defaultOptions.himix = False
defaultOptions.number = -1
defaultOptions.number_out = None
defaultOptions.arguments = ""
Expand Down Expand Up @@ -429,10 +428,6 @@ def filesFromOption(self):
if 'GEN' in self.stepMap.keys() or 'LHE' in self.stepMap or (not self._options.filein and hasattr(self._options, "evt_type")):
if self.process.source is None:
self.process.source=cms.Source("EmptySource")
# if option himix is active, drop possibly duplicate DIGI-RAW info:
if self._options.himix==True:
self.process.source.inputCommands = cms.untracked.vstring('drop *','keep *_generator_*_*','keep *_g4SimHits_*_*')
self.process.source.dropDescendantsOfDroppedBranches=cms.untracked.bool(False)

# modify source in case of run-dependent MC
self.runsAndWeights=None
Expand Down Expand Up @@ -637,9 +632,22 @@ def addStandardSequences(self):
# load the pile up file
if self._options.pileup:
pileupSpec=self._options.pileup.split(',')[0]

# FastSim: GEN-mixing or DIGI-RECO mixing?
GEN_mixing = False
if self._options.fast and pileupSpec.find("GEN_") == 0:
GEN_mixing = True
pileupSpec = pileupSpec[4:]

# Does the requested pile-up scenario exist?
from Configuration.StandardSequences.Mixing import Mixing,defineMixing
if not pileupSpec in Mixing and '.' not in pileupSpec and 'file:' not in pileupSpec:
raise Exception(pileupSpec+' is not a know mixing scenario:\n available are: '+'\n'.join(Mixing.keys()))
message = pileupSpec+' is not a know mixing scenario:\n available are: '+'\n'.join(Mixing.keys())
if self._options.fast:
message += "\n-"*20+"\n additional options for FastSim (gen-mixing):\n" + "-"*20 + "\n" + '\n'.join(["GEN_" + x for x in Mixing.keys()]) + "\n"
raise Exception(message)

# Put mixing parameters in a dictionary
if '.' in pileupSpec:
mixingDict={'file':pileupSpec}
elif pileupSpec.startswith('file:'):
Expand All @@ -649,15 +657,22 @@ def addStandardSequences(self):
mixingDict=copy.copy(Mixing[pileupSpec])
if len(self._options.pileup.split(','))>1:
mixingDict.update(eval(self._options.pileup[self._options.pileup.find(',')+1:]))

# Load the pu cfg file corresponding to the requested pu scenario
if 'file:' in pileupSpec:
#the file is local
self.process.load(mixingDict['file'])
print "inlining mixing module configuration"
self._options.inlineObjets+=',mix'
else:
self.loadAndRemember(mixingDict['file'])
#if self._options.fast:
# self._options.customisation_file.append("FastSimulation/Configuration/MixingModule_Full2Fast.setVertexGeneratorPileUpProducer")

# FastSim: transform cfg of MixingModule from FullSim to FastSim
if self._options.fast:
if GEN_mixing:
self._options.customisation_file.append("FastSimulation/Configuration/MixingModule_Full2Fast.prepareGenMixing")
else:
self._options.customisation_file.append("FastSimulation/Configuration/MixingModule_Full2Fast.prepareDigiRecoMixing")

mixingDict.pop('file')
if not "DATAMIX" in self.stepMap.keys(): # when DATAMIX is present, pileup_input refers to pre-mixed GEN-RAW
Expand All @@ -666,16 +681,12 @@ def addStandardSequences(self):
mixingDict['F']=filesFromDASQuery('file dataset = %s'%(self._options.pileup_input[4:],))[0]
else:
mixingDict['F']=self._options.pileup_input.split(',')
specialization=defineMixing(mixingDict,self._options.fast)
specialization=defineMixing(mixingDict)
for command in specialization:
self.executeAndRemember(command)
if len(mixingDict)!=0:
raise Exception('unused mixing specification: '+mixingDict.keys().__str__())

if self._options.fast and not 'SIM' in self.stepMap and not 'FASTSIM' in self.stepMap:
self.executeAndRemember('process.mix.playback= True')


# load the geometry file
try:
if len(self.stepMap):
Expand Down Expand Up @@ -985,18 +996,10 @@ def define_Configs(self):
self.RECODefaultSeq='reconstructionCosmics'
self.DQMDefaultSeq='DQMOfflineCosmics'

if self._options.himix:
print "From the presence of the himix option, we have determined that this is heavy ions and will use '--scenario HeavyIons'."
self._options.scenario='HeavyIons'

if self._options.scenario=='HeavyIons':
if not self._options.beamspot:
self._options.beamspot=VtxSmearedHIDefaultKey
self.HLTDefaultSeq = 'HIon'
if not self._options.himix:
self.GENDefaultSeq='pgen_hi'
else:
self.GENDefaultSeq='pgen_himix'
self.VALIDATIONDefaultCFF="Configuration/StandardSequences/ValidationHeavyIons_cff"
self.VALIDATIONDefaultSeq=''
self.EVTCONTDefaultCFF="Configuration/EventContent/EventContentHeavyIons_cff"
Expand Down Expand Up @@ -1085,21 +1088,16 @@ def inGeometryKeys(opt):

# Mixing
if self._options.pileup=='default':
from Configuration.StandardSequences.Mixing import MixingDefaultKey,MixingFSDefaultKey
from Configuration.StandardSequences.Mixing import MixingDefaultKey
self._options.pileup=MixingDefaultKey
# temporary, until digi-reco mixing becomes standard in RelVals
if self._options.fast:
self._options.pileup=MixingFSDefaultKey
else:
self._options.pileup=MixingDefaultKey

self._options.pileup="GEN_" + MixingDefaultKey


#not driven by a default cff anymore
if self._options.isData:
self._options.pileup=None
if self._options.isMC==True and self._options.himix==False:
if self._options.fast:
self._options.pileup='FS_'+self._options.pileup
elif self._options.isMC==True and self._options.himix==True:
self._options.pileup='HiMix'


if self._options.slhc:
self.GeometryCFF='SLHCUpgradeSimulations.Geometry.%s_cmsSimIdealGeometryXML_cff'%(self._options.slhc,)
Expand Down Expand Up @@ -1339,8 +1337,8 @@ def prepare_GEN(self, sequence = None):
elif isinstance(theObject, cms.Sequence) or isinstance(theObject, cmstypes.ESProducer):
self._options.inlineObjets+=','+name

if sequence == self.GENDefaultSeq or sequence == 'pgen_genonly' or ( sequence == 'pgen_himix' or sequence == 'pgen_hi'):
if 'ProductionFilterSequence' in genModules and ('generator' in genModules or 'hiSignal' in genModules):
if sequence == self.GENDefaultSeq or sequence == 'pgen_genonly':
if 'ProductionFilterSequence' in genModules and ('generator' in genModules):
self.productionFilterSequence = 'ProductionFilterSequence'
elif 'generator' in genModules:
self.productionFilterSequence = 'generator'
Expand All @@ -1357,8 +1355,11 @@ def prepare_GEN(self, sequence = None):
except ImportError:
raise Exception("VertexSmearing type or beamspot "+self._options.beamspot+" unknown.")

if self._options.scenario == 'HeavyIons' and self._options.himix:
self.loadAndRemember("SimGeneral/MixingModule/himixGEN_cff")
if self._options.scenario == 'HeavyIons':
if self._options.pileup=='HiMixGEN':
self.loadAndRemember("Configuration/StandardSequences/GeneratorMix_cff")
else:
self.loadAndRemember("Configuration/StandardSequences/GeneratorHI_cff")

self.process.generation_step = cms.Path( getattr(self.process,genSeqName) )
self.schedule.append(self.process.generation_step)
Expand All @@ -1385,12 +1386,6 @@ def prepare_SIM(self, sequence = None):

if self._options.magField=='0T':
self.executeAndRemember("process.g4SimHits.UseMagneticField = cms.bool(False)")

if self._options.himix==True:
if self._options.geometry in defaultOptions.geometryExtendedOptions:
self.loadAndRemember("SimGeneral/MixingModule/himixSIMExtended_cff")
else:
self.loadAndRemember("SimGeneral/MixingModule/himixSIMIdeal_cff")
else:
if self._options.magField=='0T':
self.executeAndRemember("process.famosSimHits.UseMagneticField = cms.bool(False)")
Expand All @@ -1405,9 +1400,6 @@ def prepare_DIGI(self, sequence = None):
if self._options.gflash==True:
self.loadAndRemember("Configuration/StandardSequences/GFlashDIGI_cff")

if self._options.himix==True:
self.loadAndRemember("SimGeneral/MixingModule/himixDIGI_cff")

if sequence == 'pdigi_valid':
self.executeAndRemember("process.mix.digitizers = cms.PSet(process.theDigitizersValid)")

Expand Down
6 changes: 0 additions & 6 deletions Configuration/Applications/python/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@
default=defaultOptions.gflash,
dest="gflash")

expertSettings.add_option("--himix",
help="Run the Heavy Ions signal mixing.",
action="store_true",
default=defaultOptions.himix,
dest="himix")

expertSettings.add_option("--python_filename",
help="Change the name of the created config file ",
default='',
Expand Down
26 changes: 26 additions & 0 deletions Configuration/Generator/python/ZEEMM_13TeV_TuneCUETP8M1_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEfficiency = cms.untracked.double(1.0),
comEnergy = cms.double(13000.0),
PythiaParameters = cms.PSet(
pythia8CommonSettingsBlock,
pythia8CUEP8M1SettingsBlock,
processParameters = cms.vstring(
'WeakSingleBoson:ffbar2gmZ = on',
'23:onMode = off',
'23:onIfAny = 11 13',
'PhaseSpace:pTHatMin = 40.',
),
parameterSets = cms.vstring('pythia8CommonSettings',
'pythia8CUEP8M1Settings',
'processParameters',
)
)
)

31 changes: 31 additions & 0 deletions Configuration/Generator/python/ZEEMM_13TeV_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEfficiency = cms.untracked.double(1.0),
comEnergy = cms.double(13000.0),
PythiaParameters = cms.PSet(
pythiaUESettingsBlock,
processParameters = cms.vstring('MSEL = 11 ',
'MDME( 174,1) = 0 !Z decay into d dbar',
'MDME( 175,1) = 0 !Z decay into u ubar',
'MDME( 176,1) = 0 !Z decay into s sbar',
'MDME( 177,1) = 0 !Z decay into c cbar',
'MDME( 178,1) = 0 !Z decay into b bbar',
'MDME( 179,1) = 0 !Z decay into t tbar',
'MDME( 182,1) = 1 !Z decay into e- e+',
'MDME( 183,1) = 0 !Z decay into nu_e nu_ebar',
'MDME( 184,1) = 1 !Z decay into mu- mu+',
'MDME( 185,1) = 0 !Z decay into nu_mu nu_mubar',
'MDME( 186,1) = 0 !Z decay into tau- tau+',
'MDME( 187,1) = 0 !Z decay into nu_tau nu_taubar',
'CKIN( 1) = 40. !(D=2. GeV)',
'CKIN( 2) = -1. !(D=-1. GeV)'),
# This is a vector of ParameterSet names to be read, in this order
parameterSets = cms.vstring('pythiaUESettings',
'processParameters')
)
)
2 changes: 2 additions & 0 deletions Configuration/PyReleaseValidation/python/relval_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@
workflows[140.1] = ['',['QCD_Pt_80_120_13_HI','DIGIHI','RECOHI','HARVESTHI']]
workflows[140.2] = ['',['PhotonJets_Pt_10_13_HI','DIGIHI','RECOHI','HARVESTHI']]
workflows[140.3] = ['',['ZMM_13_HI','DIGIHI','RECOHI','HARVESTHI']]
workflows[140.4] = ['',['ZEEMM_13_HI','DIGIHI','RECOHI','HARVESTHI']]

# legacy: 141 => B0; 143 => B3 ; 144 => B5
#workflows[142] = ['',['HydjetQ_B8_2760GeV','DIGIHI','RECOHI','HARVESTHI','MINIAODMCUP15HI']]

Expand Down
10 changes: 6 additions & 4 deletions Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ def genS(fragment,howMuch):
steps['WM_13']=gen2015('WM_13TeV_TuneCUETP8M1_cfi',Kby(9,200))
steps['WpM_13']=gen2015('WpM_13TeV_TuneCUETP8M1_cfi',Kby(9,200))
steps['ZMM_13']=gen2015('ZMM_13TeV_TuneCUETP8M1_cfi',Kby(18,300))
steps['ZEEMM_13']=gen2015('ZEEMM_13TeV_TuneCUETP8M1_cfi',Kby(18,300))
steps['ZpMM_13']=gen2015('ZpMM_13TeV_TuneCUETP8M1_cfi',Kby(9,200))

steps['ZTT']=genS('ZTT_All_hadronic_8TeV_TuneCUETP8M1_cfi',Kby(9,150))
Expand Down Expand Up @@ -565,6 +566,7 @@ def genS(fragment,howMuch):
steps['QCD_Pt_80_120_13_HI']=merge([hiDefaults,steps['QCD_Pt_80_120_13']])
steps['PhotonJets_Pt_10_13_HI']=merge([hiDefaults,steps['PhotonJets_Pt_10_13']])
steps['ZMM_13_HI']=merge([hiDefaults,steps['ZMM_13']])
steps['ZEEMM_13_HI']=merge([hiDefaults,steps['ZEEMM_13']])


def changeRefRelease(steps,listOfPairs):
Expand Down Expand Up @@ -759,10 +761,10 @@ def genvalid(fragment,d,suffix='all',fi='',dataSet=''):


#PU for FastSim
PUFS={'--pileup':'default'}
PUFS2={'--pileup':'mix_2012_Startup_inTimeOnly'}
PUFSAVE10={'--pileup':'E13TeV_AVE_10_inTimeOnly'}
PUFSAVE20={'--pileup':'E13TeV_AVE_20_inTimeOnly'}
PUFS={'--pileup':'GEN_2012_Summer_50ns_PoissonOOTPU'}
PUFS2={'--pileup':'2012_Startup_50ns_PoissonOOTPU'}
PUFSAVE10={'--pileup':'GEN_AVE_10_BX_25ns'}
PUFSAVE20={'--pileup':'GEN_AVE_20_BX_25ns'}

#
steps['TTbarFSPU']=merge([PUFS,Kby(100,500),steps['TTbarFS']] )
Expand Down
10 changes: 10 additions & 0 deletions Configuration/StandardSequences/python/GeneratorHI_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import FWCore.ParameterSet.Config as cms

# Produce GenParticles of the two HepMCProducts
from Configuration.StandardSequences.Generator_cff import *

genParticles.doSubEvent = cms.untracked.bool(True)

hiGenJets = cms.Sequence(genParticlesForJets*hiRecoGenJets)
pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+genParticles+hiGenJets)

13 changes: 13 additions & 0 deletions Configuration/StandardSequences/python/GeneratorMix_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import FWCore.ParameterSet.Config as cms

# Produce GenParticles of the two HepMCProducts
from Configuration.StandardSequences.Generator_cff import *
genParticles.mix = cms.string("mix")
genParticles.doSubEvent = cms.untracked.bool(True)
genParticles.useCrossingFrame = cms.untracked.bool(True)
genParticles.saveBarCodes = cms.untracked.bool(True)
genParticles.abortOnUnknownPDGCode = cms.untracked.bool(False)

hiGenJets = cms.Sequence(genParticlesForJets*hiRecoGenJets)
pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+cms.SequencePlaceholder("mix")+VertexSmearing+genParticles+hiGenJets)

13 changes: 3 additions & 10 deletions Configuration/StandardSequences/python/Generator_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,18 @@
# untracked uint32 VtxSmeared = 98765432
# }
# }


VertexSmearing = cms.Sequence(cms.SequencePlaceholder("VtxSmeared"))
GeneInfo = cms.Sequence(genParticles)
genJetMET = cms.Sequence(genJetParticles*recoGenJets+genMETParticles*recoGenMET)

pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+GeneInfo+genJetMET)

# sequence for bare generator result only, without vertex smearing and analysis objects added

pgen_genonly = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer"))

#
# this sequence is intended for HI runs/studies;
#

hiGenJets = cms.Sequence(hiGenParticlesForJets*hiRecoGenJets)
from PhysicsTools.HepMCCandAlgos.HiGenParticles_cfi import *

pgen_hi = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+hiGenParticles+hiGenJets)
pgen_himix = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+cms.SequencePlaceholder("mix")+VertexSmearing+hiGenParticles+hiGenJets)

fixGenInfo = cms.Sequence(GeneInfo * genJetMET)


Expand Down
Loading