11 print "Input process set to", inputProcess
12 process._Process__name=
"EmbeddedRECO"
13 process.TFileService = cms.Service(
"TFileService", fileName = cms.string(
"histo_embedded.root") )
16 outputModule = process.output
20 outputModule = getattr(process,str(getattr(process,
list(process.endpaths)[-1])))
24 print "Changing eventcontent to RAW+AODSIM + misc. "
25 outputModule.outputCommands = cms.untracked.vstring(
"drop *")
26 outputModule.outputCommands.extend(process.RAWEventContent.outputCommands )
27 outputModule.outputCommands.extend(process.AODSIMEventContent.outputCommands )
29 keepMC = cms.untracked.vstring(
"keep *_*_zMusExtracted_*",
30 "keep *_*_zmmCands_*",
31 "keep *_removedInputMuons_*_*",
32 "keep *_generator_*_*",
33 "keep *_PhotonIDProd_*_*",
35 "keep *_photonCore_*_*",
36 "keep *_genParticles_*_*",
37 "keep *_particleFlow_*_*",
38 "keep *_generator_*_*",
39 "keep *_tmfTracks_*_EmbeddedRECO",
40 "keep *_offlinePrimaryVertices_*_EmbeddedRECO",
41 "keep *_offlinePrimaryVerticesWithBS_*_EmbeddedRECO"
43 outputModule.outputCommands.extend(keepMC)
47 for item
in outputModule.outputCommands[:]:
48 if item ==
"drop *" and index != 0:
50 del outputModule.outputCommands[index]
54 hltProcessName =
"HLT"
57 hltProcessName = __HLT__
62 process.dimuonsHLTFilter.TriggerResultsTag.processName = hltProcessName
63 process.goodZToMuMuAtLeast1HLT.TrigTag.processName = hltProcessName
64 process.goodZToMuMuAtLeast1HLT.triggerEvent.processName = hltProcessName
65 process.hltTrigReport,HLTriggerResults.processName = hltProcessName
69 process.VtxSmeared = cms.EDProducer(
"FlatEvtVtxGenerator",
70 MaxZ = cms.double(0.0),
71 MaxX = cms.double(0.0),
72 MaxY = cms.double(0.0),
73 MinX = cms.double(0.0),
74 MinY = cms.double(0.0),
75 MinZ = cms.double(0.0),
76 TimeOffset = cms.double(0.0),
77 src = cms.InputTag(
"generator")
80 import FWCore.ParameterSet.VarParsing
as VarParsing
82 options.register (
'mdtau',
84 VarParsing.VarParsing.multiplicity.singleton,
85 VarParsing.VarParsing.varType.int,
86 "mdtau value for tauola")
88 options.register (
'transformationMode',
90 VarParsing.VarParsing.multiplicity.singleton,
91 VarParsing.VarParsing.varType.int,
92 "transformation mode. 0=mumu->mumu, 1=mumu->tautau")
94 options.register (
'minVisibleTransverseMomentum',
96 VarParsing.VarParsing.multiplicity.singleton,
97 VarParsing.VarParsing.varType.string,
98 "generator level cut on visible transverse momentum (typeN:pT,[...];[...])")
100 options.register (
'useJson',
102 VarParsing.VarParsing.multiplicity.singleton,
103 VarParsing.VarParsing.varType.int,
104 "should I enable json usage?")
106 options.register (
'overrideBeamSpot',
108 VarParsing.VarParsing.multiplicity.singleton,
109 VarParsing.VarParsing.varType.int,
110 "should I override beamspot in globaltag?")
119 if not hasattr(process,
"doNotParse"):
121 if hasattr(sys,
"argv") ==
True:
122 if not sys.argv[0].endswith(
'cmsDriver.py'):
123 options.parseArguments()
126 print "CL parsing disabled!"
130 print "Setting mdtau to ", options.mdtau
131 process.generator.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
132 process.newSource.ZTauTau.TauolaOptions.InputCards.mdtau = options.mdtau
133 process.generator.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
134 process.newSource.ParticleGun.ExternalDecays.Tauola.InputCards.mdtau = options.mdtau
136 print "Setting minVisibleTransverseMomentum to ", options.minVisibleTransverseMomentum
137 process.newSource.ZTauTau.minVisibleTransverseMomentum = cms.untracked.string(options.minVisibleTransverseMomentum)
138 process.generator.ZTauTau.minVisibleTransverseMomentum = cms.untracked.string(options.minVisibleTransverseMomentum)
140 print "Setting transformationMode to ", options.transformationMode
141 process.generator.ZTauTau.transformationMode = cms.untracked.int32(options.transformationMode)
142 process.newSource.ZTauTau.transformationMode = cms.untracked.int32(options.transformationMode)
145 if hasattr(process,
"changeBSfromPS"):
146 changeBSfromPS =
True
148 if setFromCL
and options.overrideBeamSpot != 0
or changeBSfromPS :
149 print "options.overrideBeamSpot", options.overrideBeamSpot
151 bs = cms.string(
"BeamSpotObjects_2009_LumiBased_SigmaZ_v21_offline")
157 process.GlobalTag.toGet = cms.VPSet(
158 cms.PSet(record = cms.string(
"BeamSpotObjectsRcd"),
160 connect = cms.untracked.string(
"frontier://FrontierProd/CMS_COND_31X_BEAMSPOT")
163 print "BeamSpot in globaltag set to ", bs
165 print "BeamSpot in globaltag not changed"
167 if setFromCL
and options.useJson != 0:
168 print "Enabling json usage"
169 import PhysicsTools.PythonAnalysis.LumiList
as LumiList
170 import FWCore.ParameterSet.Types
as CfgTypes
172 process.source.lumisToProcess = CfgTypes.untracked(CfgTypes.VLuminosityBlockRange())
173 process.source.lumisToProcess.extend(myLumis)
175 process.generalTracksORG = process.generalTracks.clone()
177 process.generalTracks = cms.EDProducer(
"RecoTracksMixer",
178 trackCol1 = cms.InputTag(
"generalTracksORG",
"",
"EmbeddedRECO"),
179 trackCol2 = cms.InputTag(
"removedInputMuons",
"tracks")
182 for p
in process.paths:
183 pth = getattr(process,p)
184 if "generalTracks" in pth.moduleNames():
185 pth.replace(process.generalTracks, process.generalTracksORG*process.generalTracks)
190 process.trackerDrivenElectronSeedsORG = process.trackerDrivenElectronSeeds.clone()
191 process.trackerDrivenElectronSeedsORG.TkColList = cms.VInputTag(cms.InputTag(
"generalTracksORG"))
193 process.trackerDrivenElectronSeeds = cms.EDProducer(
"ElectronSeedTrackRefUpdater",
194 PreIdLabel = process.trackerDrivenElectronSeedsORG.PreIdLabel,
195 PreGsfLabel = process.trackerDrivenElectronSeedsORG.PreGsfLabel,
196 targetTracks = cms.InputTag(
"generalTracks"),
197 inSeeds = cms.InputTag(
"trackerDrivenElectronSeedsORG", process.trackerDrivenElectronSeedsORG.PreGsfLabel.value()),
198 inPreId = cms.InputTag(
"trackerDrivenElectronSeedsORG", process.trackerDrivenElectronSeedsORG.PreIdLabel.value()),
201 for p
in process.paths:
202 pth = getattr(process,p)
203 if "trackerDrivenElectronSeeds" in pth.moduleNames():
204 pth.replace(process.trackerDrivenElectronSeeds, process.trackerDrivenElectronSeedsORG*process.trackerDrivenElectronSeeds)
208 print "TODO: check if photon core hack helps"
210 process.trackerDrivenElectronSeedsMerged = cms.EDProducer("ElectronSeedTrackRefUpdaterAndMerger",
211 PreIdLabel = process.trackerDrivenElectronSeedsORG.PreIdLabel,
212 PreGsfLabel = process.trackerDrivenElectronSeedsORG.PreGsfLabel,
213 targetTracks = cms.InputTag("generalTracks"),
214 inSeeds1 = cms.InputTag("trackerDrivenElectronSeedsORG", process.trackerDrivenElectronSeeds.PreGsfLabel.value()),
215 inPreId1 = cms.InputTag("trackerDrivenElectronSeedsORG", process.trackerDrivenElectronSeeds.PreIdLabel.value()),
216 inSeeds2 = cms.InputTag("trackerDrivenElectronSeeds", process.trackerDrivenElectronSeeds.PreGsfLabel.value(), inputProcess ) ,
217 inPreId2 = cms.InputTag("trackerDrivenElectronSeeds", process.trackerDrivenElectronSeeds.PreIdLabel.value(), inputProcess)
220 process.electronMergedSeedsPhotonCoreHack = cms.EDProducer("ElectronSeedMerger",
221 EcalBasedSeeds = cms.InputTag("ecalDrivenElectronSeeds"),
222 TkBasedSeeds = cms.InputTag("trackerDrivenElectronSeedsMerged","SeedsForGsf")
225 process.photonCore.pixelSeedProducer = cms.string('electronMergedSeedsPhotonCoreHack')
228 for p in process.paths:
229 pth = getattr(process,p)
230 if "photonCore" in pth.moduleNames():
231 pth.replace(process.photonCore,
232 process.trackerDrivenElectronSeedsMerged * process.electronMergedSeedsPhotonCoreHack *process.photonCore)
238 process.electronGsfTracksORG = process.electronGsfTracks.clone()
239 process.electronGsfTracks = cms.EDProducer(
"GsfTrackMixer",
240 col1 = cms.InputTag(
"electronGsfTracksORG",
"",
"EmbeddedRECO"),
241 col2= cms.InputTag(
"electronGsfTracks",
"", inputProcess),
246 process.gsfConversionTrackProducer.TrackProducer = cms.string(
'electronGsfTracksORG')
248 for p
in process.paths:
249 pth = getattr(process,p)
250 if "electronGsfTracks" in pth.moduleNames():
251 pth.replace(process.electronGsfTracks, process.electronGsfTracksORG*process.electronGsfTracks)
254 process.electronMergedSeedsORG = process.electronMergedSeeds.clone()
255 process.electronMergedSeeds = cms.EDProducer("ElectronSeedsMixer",
256 col1 = cms.InputTag("electronMergedSeeds","", inputProcess),
257 col2 = cms.InputTag("electronMergedSeedsORG","","EmbeddedRECO")
259 for p in process.paths:
260 pth = getattr(process,p)
261 if "electronMergedSeeds" in pth.moduleNames():
262 pth.replace(process.electronMergedSeeds, process.electronMergedSeedsORG*process.electronMergedSeeds)
265 process.generalConversionTrackProducer.TrackProducer = cms.string(
'generalTracksORG')
268 process.uncleanedOnlyGeneralConversionTrackProducer.TrackProducer = cms.string(
'generalTracksORG')
271 process.gsfElectronsORG = process.gsfElectrons.clone()
272 process.gsfElectrons = cms.EDProducer(
"GSFElectronsMixer",
273 col1 = cms.InputTag(
"gsfElectronsORG"),
274 col2 = cms.InputTag(
"gsfElectrons",
"",inputProcess),
276 for p
in process.paths:
277 pth = getattr(process,p)
278 if "gsfElectrons" in pth.moduleNames():
279 pth.replace(process.gsfElectrons, process.gsfElectronsORG*process.gsfElectrons)
281 for p
in process.paths:
282 pth = getattr(process,p)
285 for mod
in pth.moduleNames():
286 if mod.find(
"dedx") != -1:
287 print "Removing", mod
288 module=getattr(process,mod)
292 clConfig = cms.PSet (
293 depsPlus = cms.InputTag(
"anaDeposits",
"plus" ),
294 depsMinus = cms.InputTag(
"anaDeposits",
"minus" ),
295 ZmumuCands = cms.InputTag(
"goldenZmumuCandidatesGe2IsoMuons")
298 cleanerConfigTMVA = clConfig.clone()
300 cleanerConfigTMVA.names = cms.vstring(
"H_Ecal_EcalBarrel",
"H_Ecal_EcalEndcap",
301 "H_Hcal_HcalBarrel",
"H_Hcal_HcalOuter",
"H_Hcal_HcalEndcap" )
304 cleanerConfigTMVA.H_Ecal_EcalBarrel = cms.vstring(
"MLP",
"ToyCalo_MLP_ANN_H_Ecal_EcalBarrel.weights.xml" )
305 cleanerConfigTMVA.H_Ecal_EcalEndcap = cms.vstring(
"MLP",
"ToyCalo_MLP_ANN_H_Ecal_EcalEndcap.weights.xml" )
306 cleanerConfigTMVA.H_Hcal_HcalBarrel = cms.vstring(
"MLP",
"ToyCalo_MLP_ANN_H_Hcal_HcalBarrel.weights.xml" )
307 cleanerConfigTMVA.H_Hcal_HcalOuter = cms.vstring(
"MLP",
"ToyCalo_MLP_ANN_H_Hcal_HcalOuter.weights.xml" )
308 cleanerConfigTMVA.H_Hcal_HcalEndcap = cms.vstring(
"MLP",
"ToyCalo_MLP_ANN_H_Hcal_HcalEndcap.weights.xml" )
311 cleanerConfigConst = clConfig.clone()
312 cleanerConfigConst.names = cms.vstring(
"H_Ecal_EcalBarrel",
"H_Ecal_EcalEndcap",
313 "H_Hcal_HcalBarrel",
"H_Hcal_HcalOuter",
"H_Hcal_HcalEndcap" )
314 cleanerConfigConst.H_Ecal_EcalBarrel = cms.double(0.26)
315 cleanerConfigConst.H_Ecal_EcalEndcap = cms.double(1)
316 cleanerConfigConst.H_Hcal_HcalBarrel = cms.double(2)
317 cleanerConfigConst.H_Hcal_HcalOuter = cms.double(1.16)
318 cleanerConfigConst.H_Hcal_HcalEndcap = cms.double(1.82)
320 cleanerConfigConst.H_Ecal_EcalBarrel = cms.double(0.2)
322 cleanerConfigConst.H_Ecal_EcalEndcap = cms.double(0.0)
323 cleanerConfigConst.H_Hcal_HcalBarrel = cms.double(6)
324 cleanerConfigConst.H_Hcal_HcalOuter = cms.double(6)
325 cleanerConfigConst.H_Hcal_HcalEndcap = cms.double(6)
328 process.castorrecoORG = process.castorreco.clone()
329 process.castorreco = cms.EDProducer(
"CastorRecHitMixer",
330 typeEnergyDepositMap = cms.string(
'absolute'),
331 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuPlus"),
332 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuMinus"),
333 todo = cms.VPSet(cms.PSet(
334 collection2 = cms.InputTag(
"castorrecoORG"),
335 collection1 = cms.InputTag(
"castorreco",
"",
"RECO")
338 for p
in process.paths:
339 pth = getattr(process,p)
340 if "castorreco" in pth.moduleNames():
341 pth.replace(process.castorreco, process.castorrecoORG*process.castorreco)
343 process.ecalPreshowerRecHitORG = process.ecalPreshowerRecHit.clone()
344 process.ecalPreshowerRecHit = cms.EDProducer(
"EcalRecHitMixer",
345 typeEnergyDepositMap = cms.string(
'absolute'),
346 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuPlus"),
347 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuMinus"),
348 todo = cms.VPSet(cms.PSet(
349 collection2 = cms.InputTag(
"ecalPreshowerRecHitORG",
"EcalRecHitsES"),
350 collection1 = cms.InputTag(
"ecalPreshowerRecHit",
"EcalRecHitsES",
"RECO")
353 for p
in process.paths:
354 pth = getattr(process,p)
355 if "ecalPreshowerRecHit" in pth.moduleNames():
356 pth.replace(process.ecalPreshowerRecHit, process.ecalPreshowerRecHitORG*process.ecalPreshowerRecHit)
360 process.ecalRecHitORG = process.ecalRecHit.clone()
361 process.ecalRecHit = cms.EDProducer(
"EcalRecHitMixer",
362 typeEnergyDepositMap = cms.string(
'absolute'),
363 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuPlus"),
364 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuMinus"),
365 todo = cms.VPSet(cms.PSet(
366 collection2 = cms.InputTag(
"ecalRecHitORG",
"EcalRecHitsEB"),
367 collection1 = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEB",
"RECO")
370 collection2 = cms.InputTag(
"ecalRecHitORG",
"EcalRecHitsEE"),
371 collection1 = cms.InputTag(
"ecalRecHit",
"EcalRecHitsEE",
"RECO")
374 for p
in process.paths:
375 pth = getattr(process,p)
376 if "ecalRecHit" in pth.moduleNames():
377 pth.replace(process.ecalRecHit, process.ecalRecHitORG*process.ecalRecHit)
381 process.hbherecoORG = process.hbhereco.clone()
382 process.hbhereco = cms.EDProducer(
"HBHERecHitMixer",
383 typeEnergyDepositMap = cms.string(
'absolute'),
384 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuPlus"),
385 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuMinus"),
386 todo = cms.VPSet(cms.PSet(
387 collection2 = cms.InputTag(
"hbherecoORG"),
388 collection1 = cms.InputTag(
"hbhereco",
"",
"RECO")
391 for p
in process.paths:
392 pth = getattr(process,p)
393 if "hbhereco" in pth.moduleNames():
394 pth.replace(process.hbhereco, process.hbherecoORG*process.hbhereco)
396 process.hfrecoORG = process.hfreco.clone()
397 process.hfreco = cms.EDProducer(
"HFRecHitMixer",
398 typeEnergyDepositMap = cms.string(
'absolute'),
399 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuPlus"),
400 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsAllCrossed",
"energyDepositsMuMinus"),
403 collection1 = cms.InputTag(
"hfreco",
"", inputProcess),
404 collection2 = cms.InputTag(
"hfrecoORG")
408 for p
in process.paths:
409 pth = getattr(process, p)
410 if "hfreco" in pth.moduleNames():
411 pth.replace(process.hfreco, process.hfrecoORG*process.hfreco)
413 process.horecoORG = process.horeco.clone()
414 process.horeco = cms.EDProducer(
"HORecHitMixer",
415 typeEnergyDepositMap = cms.string(
'absolute'),
416 srcEnergyDepositMapMuPlus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuPlus"),
417 srcEnergyDepositMapMuMinus = cms.InputTag(
"muonCaloEnergyDepositsByDistance",
"energyDepositsMuMinus"),
418 todo = cms.VPSet(cms.PSet(
419 collection2 = cms.InputTag(
"horecoORG"),
420 collection1 = cms.InputTag(
"horeco",
"",
"RECO")
423 for p
in process.paths:
424 pth = getattr(process,p)
425 if "horeco" in pth.moduleNames():
426 pth.replace(process.horeco, process.horecoORG*process.horeco)
429 l1ExtraCollections = [
430 [
"L1EmParticle",
"Isolated" ],
431 [
"L1EmParticle",
"NonIsolated" ],
432 [
"L1EtMissParticle",
"MET" ],
433 [
"L1EtMissParticle",
"MHT" ],
434 [
"L1JetParticle",
"Central" ],
435 [
"L1JetParticle",
"Forward" ],
436 [
"L1JetParticle",
"Tau" ],
437 [
"L1MuonParticle",
"" ]
439 l1extraParticleCollections = []
440 for l1ExtraCollection
in l1ExtraCollections:
441 inputType = l1ExtraCollection[0]
443 if inputType ==
"L1EmParticle":
444 pluginType =
"L1ExtraEmParticleMixerPlugin"
445 elif inputType ==
"L1EtMissParticle":
446 pluginType =
"L1ExtraMEtMixerPlugin"
447 elif inputType ==
"L1JetParticle":
448 pluginType =
"L1ExtraJetParticleMixerPlugin"
449 elif inputType ==
"L1MuonParticle":
450 pluginType =
"L1ExtraMuonParticleMixerPlugin"
452 raise ValueError(
"Invalid L1Extra type = %s !!" % inputType)
453 instanceLabel = l1ExtraCollection[1]
454 l1extraParticleCollections.append(cms.PSet(
455 pluginType = cms.string(pluginType),
456 instanceLabel = cms.string(instanceLabel)))
457 process.l1extraParticlesORG = process.l1extraParticles.clone()
458 process.l1extraParticles = cms.EDProducer(
'L1ExtraMixer',
459 src1 = cms.InputTag(
'l1extraParticles::HLT'),
460 src2 = cms.InputTag(
'l1extraParticlesORG'),
461 collections = cms.VPSet(l1extraParticleCollections)
463 for p
in process.paths:
464 pth = getattr(process,p)
465 if "l1extraParticles" in pth.moduleNames():
466 pth.replace(process.l1extraParticles, process.l1extraParticlesORG*process.l1extraParticles)
471 for s
in process.sequences:
472 seq = getattr(process,s)
473 seq.remove(process.offlineBeamSpot)
476 process.metreco.remove(process.BeamHaloId)
481 outputModule = process.output
485 outputModule = getattr(process,str(getattr(process,
list(process.endpaths)[-1])))
489 process.filterEmptyEv.src = cms.untracked.InputTag(
"generator",
"",
"EmbeddedRECO")
492 process.schedule.remove(process.DQM_FEDIntegrity_v3)
496 process.RECOSIMoutput.outputCommands.extend([
'keep *_goldenZmumuCandidatesGe0IsoMuons_*_*'])
497 process.RECOSIMoutput.outputCommands.extend([
'keep *_goldenZmumuCandidatesGe1IsoMuons_*_*'])
498 process.RECOSIMoutput.outputCommands.extend([
'keep *_goldenZmumuCandidatesGe2IsoMuons_*_*'])
501 process.RECOSIMoutput.outputCommands.extend([
'keep *_*ORG_*_*'])
511 if hasattr(process,
"doZmumuSkim"):
512 print "Enabling Zmumu skim"
516 cmssw_ver = os.environ[
"CMSSW_VERSION"]
517 if cmssw_ver.find(
"CMSSW_4_2") != -1:
519 print "Using legacy version of Zmumu skim. Note, that muon isolation is disabled"
521 process.load(
"TauAnalysis/MCEmbeddingTools/ZmumuStandaloneSelectionLegacy_cff")
523 process.RandomNumberGeneratorService.dummy = cms.PSet(
524 initialSeed = cms.untracked.uint32(123456789),
525 engineName = cms.untracked.string(
'HepJamesRandom')
529 process.load(
"TauAnalysis/MCEmbeddingTools/ZmumuStandaloneSelection_cff")
530 process.load(
"TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
533 for path
in process.paths:
534 getattr(process,path)._seq = process.goldenZmumuSelectionSequence * getattr(process,path)._seq
536 process.options = cms.untracked.PSet(
537 wantSummary = cms.untracked.bool(
True)
541 print "Zmumu skim not enabled"
543 print "# ######################################################################################"
544 print " Following parameters can be added before customize function "
545 print " call in order to controll process customization: "
547 print "process.doNotParse = cms.PSet() # disables CL parsing for crab compat"
548 print "process.doZmumuSkim = cms.PSet() # adds Zmumu skimming before embedding is run"
549 print "process.changeBSfromPS = cms.PSet() # overide bs"
550 print "# ######################################################################################"
554 process.castorreco.cleaningAlgo = cms.string("CaloCleanerNone")
555 process.ecalPreshowerRecHit.cleaningAlgo = cms.string("CaloCleanerNone")
556 process.ecalRecHit.cleaningAlgo = cms.string("CaloCleanerNone")
557 process.hbhereco.cleaningAlgo = cms.string("CaloCleanerNone")
558 process.hfreco.cleaningAlgo = cms.string("CaloCleanerNone")
559 process.horeco.cleaningAlgo = cms.string("CaloCleanerNone")
563 print "Cleaning set to all crossed!"
564 process.castorreco.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
565 process.ecalPreshowerRecHit.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
566 process.ecalRecHit.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
567 process.hbhereco.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
568 process.hfreco.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
569 process.horeco.cleaningAlgo = cms.string("CaloCleanerAllCrossed")
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