CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
12_customise_overlay_both_events Namespace Reference

Functions

def customise
 

Variables

 runOnTheGrid = False
 

Function Documentation

def 12_customise_overlay_both_events.customise (   process)

Definition at line 9 of file 12_customise_overlay_both_events.py.

References mathSSE.return().

9 
10 def customise(process):
11  process._Process__name="OVERLAY"
12  process.LoadAllDictionaries = cms.Service("LoadAllDictionaries")
13 
14  process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
15  #process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) , Rethrow = cms.untracked.vstring('ProductNotFound') )
16 
17  originalEventProcessName = "SELECTION"
18  newPartialEventProcessName = "TAUSIMU"
19  recHitCollection = "" # "assocHitsWithHCAL" # "" "assocHitsWithHCAL" "trueHits"
20  #newPartialEventProcessName = originalEventProcessName
21  settingForoverlayCompleteSecondEvent = True
22 
23  process.overlay = cms.EDProducer('EventMixingModule',
24  # ZS = ZeroSuppressed
25  # PR = ProcessedRaw
26  # VR = VirginRaw
27  # SM = ScopeMode
28  #SiStripDigiInput1 = cms.InputTag("siStripDigis","ZeroSuppressed"),
29  SiPixelDigiInput1 = cms.InputTag("siPixelDigis","",originalEventProcessName),
30  #SiStripDigiInput1 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)),
31  SiStripDigiInput1 = cms.VInputTag(
32  cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName)
33  ,cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName)
34  ,cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName)
35  ,cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)
36  ),
37 
38  EBDigiInput1 = cms.InputTag("ecalDigis","ebDigis",originalEventProcessName),
39  EEDigiInput1 = cms.InputTag("ecalDigis","eeDigis",originalEventProcessName),
40  ESDigiInput1 = cms.InputTag("ecalPreshowerDigis","",originalEventProcessName),
41 
42  HBHEDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
43  HODigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
44  HFDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
45  ZDCDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
46 
47  DTDigiInput1 = cms.InputTag("muonDTDigis","",originalEventProcessName),
48  RPCDigiInput1 = cms.InputTag("muonRPCDigis","",originalEventProcessName),
49  CSCStripDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",originalEventProcessName),
50  CSCWireDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",originalEventProcessName),
51  CSCComparatorDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi",originalEventProcessName),
52 
53  ##SiStripDigiInput2 = cms.InputTag("siStripDigis","ZeroSuppressed"),
54  SiPixelDigiInput2 = cms.InputTag("siPixelDigis","",newPartialEventProcessName),
55  #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",newPartialEventProcessName)),
56 
57  #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",newPartialEventProcessName)),
58  SiStripDigiInput2 = cms.VInputTag(
59  cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName)
60  ,cms.InputTag("siStripZeroSuppression","VirginRaw",process._Process__name)
61  ,cms.InputTag("siStripZeroSuppression","ProcessedRaw",process._Process__name)
62  ,cms.InputTag("siStripZeroSuppression","ScopeMode",process._Process__name)
63  ),
64 
65  EBDigiInput2 = cms.InputTag("ecalDigis","ebDigis",newPartialEventProcessName),
66  EEDigiInput2 = cms.InputTag("ecalDigis","eeDigis",newPartialEventProcessName),
67  ESDigiInput2 = cms.InputTag("ecalPreshowerDigis","",newPartialEventProcessName),
68 
69  HBHEDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
70  HODigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
71  HFDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
72  ZDCDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
73 
74  DTDigiInput2 = cms.InputTag("muonDTDigis","",newPartialEventProcessName),
75  RPCDigiInput2 = cms.InputTag("muonRPCDigis","",newPartialEventProcessName),
76  CSCStripDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",newPartialEventProcessName),
77  CSCWireDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",newPartialEventProcessName),
78  CSCComparatorDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi",newPartialEventProcessName),
79 
80  ##SiStripDigiInput2 = cms.InputTag("siStripDigis","ZeroSuppressed"),
81  #SiPixelDigiInput2 = cms.InputTag("siPixelDigis","",originalEventProcessName),
82  #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)),
83 
84  #EBDigiInput2 = cms.InputTag("ecalDigis","ebDigis",originalEventProcessName),
85  #EEDigiInput2 = cms.InputTag("ecalDigis","eeDigis",originalEventProcessName),
86  #ESDigiInput2 = cms.InputTag("ecalPreshowerDigis","",originalEventProcessName),
87 
88  #HBHEDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
89  #HODigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
90  #HFDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
91  #ZDCDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
92 
93  #DTDigiInput2 = cms.InputTag("muonDTDigis","",originalEventProcessName),
94  #RPCDigiInput2 = cms.InputTag("muonRPCDigis","",originalEventProcessName),
95  #CSCStripDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",originalEventProcessName),
96  #CSCWireDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",originalEventProcessName),
97 
98 
99  DTDigiOutputProdInstanceLabel = cms.string('muonDTDigisDM'),
100  RPCDigiOutputProdInstanceLabel = cms.string('muonRPCDigisDM'),
101  CSCStripDigiOutputProdInstanceLabel = cms.string('MuonCSCStripDigisDM'),
102  CSCWireDigiOutputProdInstanceLabel = cms.string('MuonCSCWireDigisDM'),
103  CSCComparatorDigiOutputProdInstanceLabel = cms.string('MuonCSCComparatorDigisDM'),
104 
105  SiPixelDigiOutputProdInstanceLabel = cms.string('siPixelDigisDM'),
106  #SiStripDigiOutputProdInstanceLabel = cms.string('siStripDigisDM'),
107 
108  HBHEDigiOutputProdInstanceLabel = cms.string('HBHEDigiCollectionDM'),
109  HODigiOutputProdInstanceLabel = cms.string('HODigiCollectionDM'),
110  HFDigiOutputProdInstanceLabel = cms.string('HFDigiCollectionDM'),
111  ZDCDigiOutputProdInstanceLabel = cms.string('ZDCDigiCollectionDM'),
112  EBDigiOutputProdInstanceLabel = cms.string('EBDigiCollectionDM'),
113  EEDigiOutputProdInstanceLabel = cms.string('EEDigiCollectionDM'),
114  ESDigiOutputProdInstanceLabel = cms.string('ESDigiCollectionDM'),
115 
116  SiStripDigiOutputProdInstanceLabel = cms.vstring('siStripDigisZSDM','siStripDigisVRDM','siStripDigisPRDM','siStripDigisSMDM'),
117 
118  #hitCollection1 = cms.InputTag("selectMuonHits","",originalEventProcessName),
119  #hitCollection2 = cms.InputTag("selectMuonHits","",originalEventProcessName),
120  hitCollection1 = cms.InputTag("selectMuons",recHitCollection,"SELECTION"), # GRIDJOB
121  hitCollection2 = cms.InputTag("selectMuons",recHitCollection,"SELECTION"), # irrelevant, OVERLAYSTANDALONE
122 
123  overlayCompleteSecondEvent = cms.untracked.bool(settingForoverlayCompleteSecondEvent),
124  Label = cms.string('')
125  )
126 
127  process.load("RecoLocalTracker.SiStripZeroSuppression.DefaultAlgorithms_cff")
128  process.siStripZeroSuppression = cms.EDFilter("SiStripZeroSuppression",
129  Algorithms = process.DefaultAlgorithms,
130  RawDigiProducersList = cms.VInputTag(
131  cms.InputTag('siStripDigis','VirginRaw'),
132  cms.InputTag('siStripDigis','ProcessedRaw'),
133  cms.InputTag('siStripDigis','ScopeMode')
134  )
135  )
136 
137  process.overlayPath = cms.Path(process.siStripZeroSuppression*process.overlay)
138 
139  process.output.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('overlayPath'))
140  process.schedule = cms.Schedule(process.overlayPath, process.L1simulation_step, process.out_step)
141 
142  if runOnTheGrid:
143  process.source.fileNames=cms.untracked.vstring(__FILE_NAMES__)
144  process.source.skipEvents=cms.untracked.uint32(__SKIP_EVENTS__)
145  process.maxEvents.input = cms.untracked.int32(__MAX_EVENTS__)
146  process.output.fileName = cms.untracked.string("output.root")
147 
148  #process.output.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('filterNumHepMCEventsPath'))
149 
150  process.output.outputCommands = cms.untracked.vstring(
151  "drop *_*_*_*","keep edmHepMCProduct_*_*_*",
152  "keep *_*_*_OVERLAY",
153  "drop *_siStripZeroSuppression_*_OVERLAY",
154  "keep uints_*_*_*",
155  "keep FEDRawDataCollection_*_*_*"
156  )
157  print process.schedule
158  return(process)
159 
return((rh^lh)&mask)

Variable Documentation

12_customise_overlay_both_events.runOnTheGrid = False

Definition at line 6 of file 12_customise_overlay_both_events.py.