CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZmumuStandaloneSelectionAll.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 import FWCore.ParameterSet.Config as cms
3 import os
4 
5 def customise(process):
6 
7  process._Process__name="EmbeddedINPUT"
8 
9  try:
10  outputModule = process.output
11  except:
12  pass
13  try:
14  outputModule = getattr(process,str(getattr(process,list(process.endpaths)[-1])))
15  except:
16  pass
17 
18  outputModule.outputCommands.extend(
19  cms.untracked.vstring("keep *_goldenZmumuCandidatesGe0IsoMuons_*_*",
20  "keep *_goldenZmumuCandidatesGe1IsoMuons_*_*",
21  "keep *_goldenZmumuCandidatesGe2IsoMuons_*_*"))
22 
23  process.load('Configuration.StandardSequences.GeometryDB_cff')
24  process.load('Configuration.StandardSequences.MagneticField_38T_cff')
25  process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
26  process.load("TauAnalysis/MCEmbeddingTools/ZmumuStandalonSelection_cff")
27 
28  # Add mumu selection to schedule
29  process.goldenZmumuSkimPath = cms.Path(process.goldenZmumuSelectionSequence)
30  process.schedule.insert(0, process.goldenZmumuSkimPath)
31 
32  # Only write out events which have at least one muon pair
33  outputModule.SelectEvents = cms.untracked.PSet(
34  SelectEvents = cms.vstring('goldenZmumuSkimPath'))
35 
36  return(process)
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