CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Generator_cff.py
Go to the documentation of this file.
2 
3 #
4 # generator level info
5 #
11 # Vertex smearing
12 #
13 # There're several types of Vertex smearing module (Gauss, Flat, BeamProfile, Betafunc, BetafuncEarlyCollisions);
14 # the cff's are available for each one :
15 # Configuration/StandardSequences/data/VtxSmearedGauss.cff
16 # Configuration/StandardSequences/data/VtxSmearedFlat.cff
17 # Configuration/StandardSequences/data/VtxSmearedBeamProfile.cff
18 # Configuration/StandardSequences/data/VtxSmearedBetafuncNominalCollision.cff
19 # Configuration/StandardSequences/data/VtxSmearedBetafuncEarlyCollision.cff
20 #
21 # Either of the above returns label "VtxSmeared" that is already in the path below
22 # (but not included here!!!)
23 #
24 # Note 1 : one and only label is allowed for either of these modules,
25 # that is VtxSmeared (the reason is not to allow multiple smearing);
26 # an attempt to use any other label will cause the Fwk to throw
27 # Note 2 : because only one label is allowed, a user can have only one
28 # instance of the Vertex smearing module in a given configuration;
29 # in other words, if you put in 2 or all 3 of the available cfi's,
30 # the Fwk will throw
31 #
32 # Currently, we suggest using Betafunc vertex smearing in the desired LHC configuration
33 #
34 # The vertex smearing needs to be called before the particle candidate generation
35 #
36 # REMINDER : vertex smearing need a startup seed;
37 # in your cfg, do NOT forget to give seeds via RandomNumberGeneratorService !!!
38 #
39 # Example configuration of the RandomNumberGeneratorService to appear in cfg:
40 # service = RandomNumberGeneratorService
41 # {
42 # untracked uint32 sourceSeed = 123456789
43 # PSet moduleSeeds =
44 # {
45 # untracked uint32 VtxSmeared = 98765432
46 # }
47 # }
48 VertexSmearing = cms.Sequence(cms.SequencePlaceholder("VtxSmeared"))
49 GeneInfo = cms.Sequence(genParticles)
50 genJetMET = cms.Sequence(genJetParticles*recoGenJets+genMETParticles*recoGenMET)
51 pgen = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+GeneInfo+genJetMET)
52 
53 # sequence for bare generator result only, without vertex smearing and analysis objects added
54 
55 pgen_genonly = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer"))
56 
57 #
58 # this sequence is intended for HI runs/studies;
59 #
60 
61 hiGenJets = cms.Sequence(hiGenParticlesForJets*hiRecoGenJets)
62 
64 
65 pgen_hi = cms.Sequence(cms.SequencePlaceholder("randomEngineStateProducer")+VertexSmearing+hiGenParticles+hiGenJets)
66 
67 fixGenInfo = cms.Sequence(GeneInfo * genJetMET)
68 
69 
71 genstepfilter = HLTrigger.HLTfilters.triggerResultsFilter_cfi.triggerResultsFilter.clone(
72  l1tResults = cms.InputTag(''),
73  hltResults = cms.InputTag('TriggerResults'),
74  triggerConditions = cms.vstring()
75 )