test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ZmumuStandaloneSelectionAll Namespace Reference

Functions

def customise
 

Function Documentation

def ZmumuStandaloneSelectionAll.customise (   process)

Definition at line 6 of file ZmumuStandaloneSelectionAll.py.

References list().

6 
7 def customise(process):
8 
9  process._Process__name="EmbeddedINPUT"
10 
11  try:
12  outputModule = process.output
13  except:
14  pass
15  try:
16  outputModule = getattr(process, str(getattr(process, list(process.endpaths)[-1])))
17  except:
18  pass
19 
20  outputModule.outputCommands.extend(
21  cms.untracked.vstring("keep *_goodMuons_*_*",
22  "keep *_goodMuonsPFIso_*_*",
23  "keep *_highestPtMuPlus_*_*",
24  "keep *_highestPtMuMinus_*_*",
25  "keep *_highestPtMuPlusPFIso_*_*",
26  "keep *_highestPtMuMinusPFIso_*_*",
27  "keep *_goldenZmumuCandidatesGe0IsoMuons_*_*",
28  "keep *_goldenZmumuCandidatesGe1IsoMuons_*_*",
29  "keep *_goldenZmumuCandidatesGe2IsoMuons_*_*",
30  "keep TH2DMEtoEDM_MEtoEDMConverter_*_*",
31  "drop *_TriggerResults_*_EmbeddedINPUT"))
32 
33  process.load('Configuration.StandardSequences.GeometryDB_cff')
34  process.load('Configuration.StandardSequences.MagneticField_38T_cff')
35  process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
36  process.load("TauAnalysis/MCEmbeddingTools/ZmumuStandaloneSelection_cff")
37 
38  # DQM store output for muon acceptance histograms
39  process.load('DQMServices.Core.DQMStore_cfg')
40 
41  # Define configuration parameter default values
42  from TauAnalysis.MCEmbeddingTools.setDefaults import setDefaults
43  setDefaults(process)
44 
45  # Read configuration parameter values by command-line parsing
46  #from TauAnalysis.MCEmbeddingTools.embeddingCommandLineOptions import parseCommandLineOptions
47  #if process.options['parseCommandLine']:
48  # parseCommandLineOptions(process)
49 
50  process.load('HLTrigger.HLTfilters.triggerResultsFilter_cfi')
51  process.embedTriggerFilter = process.triggerResultsFilter.clone(
52  hltResults = cms.InputTag('TriggerResults', '', 'HLT'),
53  l1tResults = cms.InputTag(''),
54  triggerConditions = cms.vstring('HLT_Mu17_Mu8_v*')
55  )
56 
57  # Add mumu selection to schedule
58  if process.customization_options.isMC.value():
59  process.goldenZmumuFilterPath = cms.Path(process.embedTriggerFilter*process.goldenZmumuFilterSequence)
60  else:
61  process.goldenZmumuFilterPath = cms.Path(process.embedTriggerFilter*process.goldenZmumuFilterSequenceData)
62  process.goldenZmumuFilter.src = process.customization_options.ZmumuCollection
63  process.schedule.insert(0, process.goldenZmumuFilterPath)
64 
65  # Only write out events which have at least one muon pair
66  outputModule.SelectEvents = cms.untracked.PSet(
67  SelectEvents = cms.vstring('goldenZmumuFilterPath'))
68 
69  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