3 from FWCore.ParameterSet.Modules
import _Module
10 process._Process__name=
"HLT2"
11 process.TFileService = cms.Service(
"TFileService", fileName = cms.string(
"histo_simulation.root") )
17 for path
in process.paths:
18 if path !=
'generation_step':
19 getattr(process,path)._seq = process.ProductionFilterSequence*getattr(process,path)._seq
21 getattr(process,path)._seq = getattr(process,path)._seq*cms.Sequence(process.pgen)
24 outputModule = process.output
28 outputModule = getattr(process,str(getattr(process,
list(process.endpaths)[-1])))
32 print "Changing eventcontent to RAW+AODSIM + misc. "
33 outputModule.outputCommands = cms.untracked.vstring(
"drop *")
34 outputModule.outputCommands.extend(process.RAWEventContent.outputCommands )
35 outputModule.outputCommands.extend(process.AODSIMEventContent.outputCommands )
37 keepMC = cms.untracked.vstring(
"keep *_*_zMusExtracted_*",
38 "keep *_*_zmmCands_*",
39 "keep *_removedInputMuons_*_*",
40 "keep *_generator_*_*",
41 "keep *_PhotonIDProd_*_*",
43 "keep *_photonCore_*_*",
44 "keep *_genParticles_*_*",
45 "keep *_particleFlow_*_*",
47 outputModule.outputCommands.extend(keepMC)
51 for item
in outputModule.outputCommands[:]:
52 if item ==
"drop *" and index != 0:
54 del outputModule.outputCommands[index]
59 hltProcessName =
"HLT"
62 hltProcessName = __HLT__
67 process.dimuonsHLTFilter.TriggerResultsTag.processName = hltProcessName
68 process.goodZToMuMuAtLeast1HLT.TrigTag.processName = hltProcessName
69 process.goodZToMuMuAtLeast1HLT.triggerEvent.processName = hltProcessName
70 process.hltTrigReport,HLTriggerResults.processName = hltProcessName
74 process.VtxSmeared = cms.EDProducer(
"FlatEvtVtxGenerator",
75 MaxZ = cms.double(0.0),
76 MaxX = cms.double(0.0),
77 MaxY = cms.double(0.0),
78 MinX = cms.double(0.0),
79 MinY = cms.double(0.0),
80 MinZ = cms.double(0.0),
81 TimeOffset = cms.double(0.0),
82 src = cms.InputTag(
"generator",
"unsmeared")
85 import FWCore.ParameterSet.VarParsing
as VarParsing
87 options.register (
'mdtau',
89 VarParsing.VarParsing.multiplicity.singleton,
90 VarParsing.VarParsing.varType.int,
91 "mdtau value for tauola")
93 options.register (
'useJson',
95 VarParsing.VarParsing.multiplicity.singleton,
96 VarParsing.VarParsing.varType.int,
97 "should I enable json usage?")
99 options.register (
'overrideBeamSpot',
101 VarParsing.VarParsing.multiplicity.singleton,
102 VarParsing.VarParsing.varType.int,
103 "should I override beamspot in globaltag?")
108 options.register (
'primaryProcess',
110 VarParsing.VarParsing.multiplicity.singleton,
111 VarParsing.VarParsing.varType.string,
112 "original processName")
117 if hasattr(sys,
"argv") ==
True:
118 options.parseArguments()
120 print "Setting mdtau to ", options.mdtau
121 process.generator.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
122 process.newSource.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
123 process.generator.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
124 process.newSource.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
126 print "options.overrideBeamSpot", options.overrideBeamSpot
127 if options.overrideBeamSpot != 0:
128 bs = cms.string(
"BeamSpotObjects_2009_LumiBased_SigmaZ_v18_offline")
133 process.GlobalTag.toGet = cms.VPSet(
134 cms.PSet(record = cms.string(
"BeamSpotObjectsRcd"),
136 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_COND_31X_BEAMSPOT")
139 print "BeamSpot in globaltag set to ", bs
141 print "BeamSpot in globaltag not changed"
143 if options.useJson != 0:
144 print "Enabling json usage"
145 import PhysicsTools.PythonAnalysis.LumiList
as LumiList
146 import FWCore.ParameterSet.Types
as CfgTypes
148 process.source.lumisToProcess = CfgTypes.untracked(CfgTypes.VLuminosityBlockRange())
149 process.source.lumisToProcess.extend(myLumis)
152 process.newSource.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(__MINVISPT__)
153 process.generator.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(__MINVISPT__)
157 process.generator.ZTauTau.TauolaOptions.InputCards.mdtau = __MDTAU__
158 process.generator.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = __MDTAU__
159 process.newSource.ZTauTau.TauolaOptions.InputCards.mdtau = __MDTAU__
160 process.newSource.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = __MDTAU__
165 process.generator.ZTauTau.transformationMode = cms.untracked.int32(__TRANSFORMATIONMODE__)
166 process.generator.ZTauTau.transformationMode = cms.untracked.int32(__TRANSFORMATIONMODE__)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run