forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from xshi/master
Add two gen fragments for BPH
- Loading branch information
Showing
2 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
python/EightTeV/PYTHIA6_Bs2JpsiPhiv2_TuneZ2star_8TeV_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
#source = cms.Source("EmptySource") | ||
|
||
from Configuration.Generator.PythiaUEZ2starSettings_cfi import * | ||
|
||
generator = cms.EDFilter( | ||
"Pythia6GeneratorFilter", | ||
comEnergy = cms.double(8000.0), | ||
crossSection = cms.untracked.double(2013194.), | ||
filterEfficiency = cms.untracked.double(5.2e-5), | ||
pythiaHepMCVerbosity = cms.untracked.bool(False), | ||
maxEventsToPrint = cms.untracked.int32(0), | ||
pythiaPylistVerbosity = cms.untracked.int32(0), | ||
ExternalDecays = cms.PSet( | ||
EvtGen = cms.untracked.PSet( | ||
operates_on_particles = cms.vint32( 0 ), # 0 (zero) means default list (hardcoded) | ||
# you can put here the list of particles (PDG IDs) | ||
# that you want decayed by EvtGen | ||
use_default_decay = cms.untracked.bool(False), | ||
decay_table = cms.FileInPath('GeneratorInterface/ExternalDecays/data/DECAY_NOLONGLIFE.DEC'), | ||
particle_property_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/evtBsJPsiPhi.pdl'), | ||
user_decay_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/Bs_Jpsiphiv2.dec'), | ||
list_forced_decays = cms.vstring('MyB_s0', | ||
'Myanti-B_s0'), | ||
), | ||
parameterSets = cms.vstring('EvtGen') | ||
), | ||
|
||
|
||
PythiaParameters = cms.PSet( | ||
pythiaUESettingsBlock, | ||
bbbarSettings = cms.vstring('MSEL = 1'), | ||
# This is a vector of ParameterSet names to be read, in this order | ||
parameterSets = cms.vstring( | ||
'pythiaUESettings', | ||
'bbbarSettings') | ||
|
||
) | ||
) | ||
|
||
bfilter = cms.EDFilter( | ||
"PythiaFilter", | ||
MaxEta = cms.untracked.double(9999.), | ||
MinEta = cms.untracked.double(-9999.), | ||
ParticleID = cms.untracked.int32(531) | ||
) | ||
|
||
jpsifilter = cms.EDFilter( | ||
"PythiaDauVFilter", | ||
verbose = cms.untracked.int32(0), | ||
NumberDaughters = cms.untracked.int32(2), | ||
MotherID = cms.untracked.int32(531), | ||
ParticleID = cms.untracked.int32(443), | ||
DaughterIDs = cms.untracked.vint32(13, -13), | ||
MinPt = cms.untracked.vdouble(3.5, 3.5), | ||
MinEta = cms.untracked.vdouble(-2.5, -2.5), | ||
MaxEta = cms.untracked.vdouble( 2.5, 2.5) | ||
) | ||
|
||
phifilter = cms.EDFilter( | ||
"PythiaDauVFilter", | ||
verbose = cms.untracked.int32(0), | ||
NumberDaughters = cms.untracked.int32(2), | ||
MotherID = cms.untracked.int32(531), | ||
ParticleID = cms.untracked.int32(333), | ||
DaughterIDs = cms.untracked.vint32(321, -321), | ||
MinPt = cms.untracked.vdouble(0.4, 0.4), | ||
MinEta = cms.untracked.vdouble(-2.5, -2.5), | ||
MaxEta = cms.untracked.vdouble( 2.5, 2.5) | ||
) | ||
|
||
configurationMetadata = cms.untracked.PSet( | ||
version = cms.untracked.string('$Revision: 1.1 $'), | ||
name = cms.untracked.string | ||
('$Source: /local/reps/CMSSW/CMSSW/Configuration/GenProduction/python/EightTeV/PYTHIA6_Bs2JpsiPhiv2_TuneZ2star_8TeV_cff.py,v $'), | ||
annotation = cms.untracked.string('Bs -> Jpsi Phi at 8TeV') | ||
) | ||
|
||
ProductionFilterSequence = cms.Sequence(generator*bfilter*jpsifilter*phifilter) |
60 changes: 60 additions & 0 deletions
60
python/EightTeV/PYTHIA6_Bs2KstarMuMu_EtaPtFilter_TuneZ2star_8TeV_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
################ | ||
# Gen fragment # | ||
################ | ||
|
||
|
||
import FWCore.ParameterSet.Config as cms | ||
|
||
|
||
configurationMetadata = cms.untracked.PSet( | ||
version = cms.untracked.string('$Revision: 1.3 $'), | ||
name = cms.untracked.string('PYTHIA6_Bs2KstarMuMu_EtaPtFilter_TuneZ2star_8TeV_cff.py'), | ||
annotation = cms.untracked.string('Summer12: Pythia6+EvtGen generation of B0d --> K*0(K pi) Mu+Mu-, 8TeV')) | ||
|
||
|
||
#from Configuration.Generator.PythiaUEZ2Settings_cfi import * | ||
from Configuration.Generator.PythiaUEZ2starSettings_cfi import * | ||
|
||
|
||
generator = cms.EDFilter("Pythia6GeneratorFilter", | ||
pythiaPylistVerbosity = cms.untracked.int32(0), | ||
pythiaHepMCVerbosity = cms.untracked.bool(False), | ||
comEnergy = cms.double(8000.0), | ||
crossSection = cms.untracked.double(0.0), # Given by PYTHIA after running | ||
filterEfficiency = cms.untracked.double(1.0), # Given by PYTHIA after running | ||
maxEventsToPrint = cms.untracked.int32(0), | ||
|
||
ExternalDecays = cms.PSet( | ||
EvtGen = cms.untracked.PSet( | ||
operates_on_particles = cms.vint32(0), | ||
use_default_decay = cms.untracked.bool(False), | ||
decay_table = cms.FileInPath('GeneratorInterface/ExternalDecays/data/DECAY.DEC'), | ||
particle_property_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/evt.pdl'), | ||
user_decay_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/Bs_MuMuKstar_mumuKpi.dec'), | ||
list_forced_decays = cms.vstring('MyB_s0','Myanti-B_s0')), | ||
parameterSets = cms.vstring('EvtGen')), | ||
|
||
PythiaParameters = cms.PSet( | ||
pythiaUESettingsBlock, | ||
bbbarSettings = cms.vstring('MSEL = 1'), | ||
parameterSets = cms.vstring('pythiaUESettings','bbbarSettings'))) | ||
|
||
|
||
########### | ||
# Filters # | ||
########### | ||
# Filter only pp events which produce a B_s0: | ||
bsfilter = cms.EDFilter("PythiaFilter", ParticleID = cms.untracked.int32(531)) | ||
|
||
# Filter on final state muons | ||
mumugenfilter = cms.EDFilter("MCParticlePairFilter", | ||
Status = cms.untracked.vint32(1, 1), | ||
MinPt = cms.untracked.vdouble(3.3, 3.3), | ||
MaxEta = cms.untracked.vdouble(2.3, 2.3), | ||
MinEta = cms.untracked.vdouble(-2.3, -2.3), | ||
ParticleCharge = cms.untracked.int32(-1), | ||
ParticleID1 = cms.untracked.vint32(13), | ||
ParticleID2 = cms.untracked.vint32(13)) | ||
|
||
ProductionFilterSequence = cms.Sequence(generator*bsfilter*mumugenfilter) | ||
|