11 process._Process__name=
"HLT2"
12 process.TFileService = cms.Service(
"TFileService", fileName = cms.string(
"histo_simulation.root") )
18 for path
in process.paths:
19 if path !=
'generation_step':
20 getattr(process,path)._seq = process.ProductionFilterSequence*getattr(process,path)._seq
22 getattr(process,path)._seq = getattr(process,path)._seq*cms.Sequence(process.pgen)
25 outputModule = process.output
29 outputModule = getattr(process,str(getattr(process,
list(process.endpaths)[-1])))
33 print "Changing eventcontent to RAW+AODSIM + misc. "
34 outputModule.outputCommands = cms.untracked.vstring(
"drop *")
35 outputModule.outputCommands.extend(process.RAWEventContent.outputCommands )
36 outputModule.outputCommands.extend(process.AODSIMEventContent.outputCommands )
38 keepMC = cms.untracked.vstring(
"keep *_*_zMusExtracted_*",
39 "keep *_*_zmmCands_*",
40 "keep *_removedInputMuons_*_*",
41 "keep *_generator_*_*",
42 "keep *_PhotonIDProd_*_*",
44 "keep *_photonCore_*_*",
45 "keep *_genParticles_*_*",
46 "keep *_particleFlow_*_*",
48 outputModule.outputCommands.extend(keepMC)
52 for item
in outputModule.outputCommands[:]:
53 if item ==
"drop *" and index != 0:
55 del outputModule.outputCommands[index]
60 hltProcessName =
"HLT"
63 hltProcessName = __HLT__
68 process.dimuonsHLTFilter.TriggerResultsTag.processName = hltProcessName
69 process.goodZToMuMuAtLeast1HLT.TrigTag.processName = hltProcessName
70 process.goodZToMuMuAtLeast1HLT.triggerEvent.processName = hltProcessName
71 process.hltTrigReport,HLTriggerResults.processName = hltProcessName
75 process.VtxSmeared = cms.EDProducer(
"FlatEvtVtxGenerator",
76 MaxZ = cms.double(0.0),
77 MaxX = cms.double(0.0),
78 MaxY = cms.double(0.0),
79 MinX = cms.double(0.0),
80 MinY = cms.double(0.0),
81 MinZ = cms.double(0.0),
82 TimeOffset = cms.double(0.0),
83 src = cms.InputTag(
"generator")
86 import FWCore.ParameterSet.VarParsing
as VarParsing
88 options.register (
'mdtau',
90 VarParsing.VarParsing.multiplicity.singleton,
91 VarParsing.VarParsing.varType.int,
92 "mdtau value for tauola")
94 options.register (
'useJson',
96 VarParsing.VarParsing.multiplicity.singleton,
97 VarParsing.VarParsing.varType.int,
98 "should I enable json usage?")
100 options.register (
'overrideBeamSpot',
102 VarParsing.VarParsing.multiplicity.singleton,
103 VarParsing.VarParsing.varType.int,
104 "should I override beamspot in globaltag?")
109 options.register (
'primaryProcess',
111 VarParsing.VarParsing.multiplicity.singleton,
112 VarParsing.VarParsing.varType.string,
113 "original processName")
118 if hasattr(sys,
"argv") ==
True:
119 options.parseArguments()
121 print "Setting mdtau to ", options.mdtau
122 process.generator.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
123 process.newSource.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
124 process.generator.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
125 process.newSource.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
127 print "options.overrideBeamSpot", options.overrideBeamSpot
128 if options.overrideBeamSpot != 0:
129 bs = cms.string(
"BeamSpotObjects_2009_LumiBased_SigmaZ_v18_offline")
134 process.GlobalTag.toGet = cms.VPSet(
135 cms.PSet(record = cms.string(
"BeamSpotObjectsRcd"),
137 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_COND_31X_BEAMSPOT")
140 print "BeamSpot in globaltag set to ", bs
142 print "BeamSpot in globaltag not changed"
144 if options.useJson != 0:
145 print "Enabling json usage"
146 import PhysicsTools.PythonAnalysis.LumiList
as LumiList
147 import FWCore.ParameterSet.Types
as CfgTypes
149 process.source.lumisToProcess = CfgTypes.untracked(CfgTypes.VLuminosityBlockRange())
150 process.source.lumisToProcess.extend(myLumis)
153 process.newSource.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(__MINVISPT__)
154 process.generator.ZTauTau.minVisibleTransverseMomentum = cms.untracked.double(__MINVISPT__)
158 process.generator.ZTauTau.TauolaOptions.InputCards.mdtau = __MDTAU__
159 process.generator.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = __MDTAU__
160 process.newSource.ZTauTau.TauolaOptions.InputCards.mdtau = __MDTAU__
161 process.newSource.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = __MDTAU__
166 process.generator.ZTauTau.transformationMode = cms.untracked.int32(__TRANSFORMATIONMODE__)
167 process.generator.ZTauTau.transformationMode = cms.untracked.int32(__TRANSFORMATIONMODE__)
return(e1-e2)*(e1-e2)+dp *dp
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