CMS 3D CMS Logo

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.

00010                       :
00011         process._Process__name="OVERLAY"
00012         process.LoadAllDictionaries = cms.Service("LoadAllDictionaries")
00013 
00014         process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
00015         #process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) , Rethrow = cms.untracked.vstring('ProductNotFound') )
00016         
00017         originalEventProcessName = "SELECTION"
00018         newPartialEventProcessName = "TAUSIMU"
00019         recHitCollection = "" # "assocHitsWithHCAL" # "" "assocHitsWithHCAL" "trueHits"
00020         #newPartialEventProcessName = originalEventProcessName
00021         settingForoverlayCompleteSecondEvent = True
00022   
00023         process.overlay = cms.EDProducer('EventMixingModule',
00024                 #       ZS = ZeroSuppressed
00025                 #       PR = ProcessedRaw
00026                 #       VR = VirginRaw
00027                 #       SM = ScopeMode
00028                 #SiStripDigiInput1 = cms.InputTag("siStripDigis","ZeroSuppressed"),
00029                 SiPixelDigiInput1 = cms.InputTag("siPixelDigis","",originalEventProcessName),
00030                 #SiStripDigiInput1 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)),
00031                 SiStripDigiInput1 = cms.VInputTag(
00032                         cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName)
00033                         ,cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName)
00034                         ,cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName)
00035                         ,cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)
00036                 ),              
00037 
00038                 EBDigiInput1 = cms.InputTag("ecalDigis","ebDigis",originalEventProcessName),
00039                 EEDigiInput1 = cms.InputTag("ecalDigis","eeDigis",originalEventProcessName),
00040                 ESDigiInput1 = cms.InputTag("ecalPreshowerDigis","",originalEventProcessName),
00041         
00042                 HBHEDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
00043                 HODigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
00044                 HFDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
00045                 ZDCDigiInput1 = cms.InputTag("hcalDigis","",originalEventProcessName),
00046         
00047                 DTDigiInput1 = cms.InputTag("muonDTDigis","",originalEventProcessName),
00048                 RPCDigiInput1 = cms.InputTag("muonRPCDigis","",originalEventProcessName),
00049                 CSCStripDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",originalEventProcessName),
00050                 CSCWireDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",originalEventProcessName),
00051                 CSCComparatorDigiInput1 = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi",originalEventProcessName),                        
00052         
00053                 ##SiStripDigiInput2 = cms.InputTag("siStripDigis","ZeroSuppressed"),
00054                 SiPixelDigiInput2 = cms.InputTag("siPixelDigis","",newPartialEventProcessName),
00055                 #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",newPartialEventProcessName)),
00056 
00057                 #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",newPartialEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",newPartialEventProcessName)),              
00058                 SiStripDigiInput2 = cms.VInputTag(
00059                         cms.InputTag("siStripDigis","ZeroSuppressed",newPartialEventProcessName)
00060                         ,cms.InputTag("siStripZeroSuppression","VirginRaw",process._Process__name)
00061                         ,cms.InputTag("siStripZeroSuppression","ProcessedRaw",process._Process__name)
00062                         ,cms.InputTag("siStripZeroSuppression","ScopeMode",process._Process__name)
00063                 ),
00064                                 
00065                 EBDigiInput2 = cms.InputTag("ecalDigis","ebDigis",newPartialEventProcessName),
00066                 EEDigiInput2 = cms.InputTag("ecalDigis","eeDigis",newPartialEventProcessName),
00067                 ESDigiInput2 = cms.InputTag("ecalPreshowerDigis","",newPartialEventProcessName),
00068         
00069                 HBHEDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
00070                 HODigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
00071                 HFDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
00072                 ZDCDigiInput2 = cms.InputTag("hcalDigis","",newPartialEventProcessName),
00073         
00074                 DTDigiInput2 = cms.InputTag("muonDTDigis","",newPartialEventProcessName),
00075                 RPCDigiInput2 = cms.InputTag("muonRPCDigis","",newPartialEventProcessName),
00076                 CSCStripDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",newPartialEventProcessName),
00077                 CSCWireDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",newPartialEventProcessName),
00078                 CSCComparatorDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi",newPartialEventProcessName),
00079                  
00080                 ##SiStripDigiInput2 = cms.InputTag("siStripDigis","ZeroSuppressed"),
00081                 #SiPixelDigiInput2 = cms.InputTag("siPixelDigis","",originalEventProcessName),
00082                 #SiStripDigiInput2 = cms.VInputTag(cms.InputTag("siStripDigis","ZeroSuppressed",originalEventProcessName),cms.InputTag("siStripZeroSuppression","VirginRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ProcessedRaw",originalEventProcessName),cms.InputTag("siStripZeroSuppression","ScopeMode",originalEventProcessName)),
00083                 
00084                 #EBDigiInput2 = cms.InputTag("ecalDigis","ebDigis",originalEventProcessName),
00085                 #EEDigiInput2 = cms.InputTag("ecalDigis","eeDigis",originalEventProcessName),
00086                 #ESDigiInput2 = cms.InputTag("ecalPreshowerDigis","",originalEventProcessName),
00087         
00088                 #HBHEDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
00089                 #HODigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
00090                 #HFDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
00091                 #ZDCDigiInput2 = cms.InputTag("hcalDigis","",originalEventProcessName),
00092         
00093                 #DTDigiInput2 = cms.InputTag("muonDTDigis","",originalEventProcessName),
00094                 #RPCDigiInput2 = cms.InputTag("muonRPCDigis","",originalEventProcessName),
00095                 #CSCStripDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCStripDigi",originalEventProcessName),
00096                 #CSCWireDigiInput2 = cms.InputTag("muonCSCDigis","MuonCSCWireDigi",originalEventProcessName),
00097         
00098                  
00099                 DTDigiOutputProdInstanceLabel = cms.string('muonDTDigisDM'),
00100                 RPCDigiOutputProdInstanceLabel = cms.string('muonRPCDigisDM'),
00101                 CSCStripDigiOutputProdInstanceLabel = cms.string('MuonCSCStripDigisDM'),
00102                 CSCWireDigiOutputProdInstanceLabel = cms.string('MuonCSCWireDigisDM'),
00103                 CSCComparatorDigiOutputProdInstanceLabel = cms.string('MuonCSCComparatorDigisDM'),
00104                  
00105                 SiPixelDigiOutputProdInstanceLabel = cms.string('siPixelDigisDM'),
00106                 #SiStripDigiOutputProdInstanceLabel = cms.string('siStripDigisDM'),      
00107         
00108                 HBHEDigiOutputProdInstanceLabel = cms.string('HBHEDigiCollectionDM'),
00109                 HODigiOutputProdInstanceLabel = cms.string('HODigiCollectionDM'),
00110                 HFDigiOutputProdInstanceLabel = cms.string('HFDigiCollectionDM'),
00111                 ZDCDigiOutputProdInstanceLabel = cms.string('ZDCDigiCollectionDM'),
00112                 EBDigiOutputProdInstanceLabel = cms.string('EBDigiCollectionDM'),
00113                 EEDigiOutputProdInstanceLabel = cms.string('EEDigiCollectionDM'),
00114                 ESDigiOutputProdInstanceLabel = cms.string('ESDigiCollectionDM'),
00115 
00116                 SiStripDigiOutputProdInstanceLabel = cms.vstring('siStripDigisZSDM','siStripDigisVRDM','siStripDigisPRDM','siStripDigisSMDM'),
00117                  
00118                 #hitCollection1 = cms.InputTag("selectMuonHits","",originalEventProcessName),
00119                 #hitCollection2 = cms.InputTag("selectMuonHits","",originalEventProcessName),
00120                 hitCollection1 = cms.InputTag("selectMuons",recHitCollection,"SELECTION"),      # GRIDJOB
00121                 hitCollection2 = cms.InputTag("selectMuons",recHitCollection,"SELECTION"), # irrelevant, OVERLAYSTANDALONE
00122 
00123                 overlayCompleteSecondEvent = cms.untracked.bool(settingForoverlayCompleteSecondEvent),
00124                 Label = cms.string('')
00125         )
00126 
00127         process.load("RecoLocalTracker.SiStripZeroSuppression.DefaultAlgorithms_cff")
00128         process.siStripZeroSuppression = cms.EDFilter("SiStripZeroSuppression",
00129                 Algorithms = process.DefaultAlgorithms,
00130                 RawDigiProducersList = cms.VInputTag(
00131                         cms.InputTag('siStripDigis','VirginRaw'),
00132                         cms.InputTag('siStripDigis','ProcessedRaw'),
00133                         cms.InputTag('siStripDigis','ScopeMode')
00134                 )
00135         )
00136         
00137         process.overlayPath = cms.Path(process.siStripZeroSuppression*process.overlay)
00138 
00139         process.output.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('overlayPath'))
00140         process.schedule = cms.Schedule(process.overlayPath, process.L1simulation_step, process.out_step)
00141 
00142         if runOnTheGrid:
00143                 process.source.fileNames=cms.untracked.vstring(__FILE_NAMES__)
00144                 process.source.skipEvents=cms.untracked.uint32(__SKIP_EVENTS__)
00145                 process.maxEvents.input = cms.untracked.int32(__MAX_EVENTS__)
00146                 process.output.fileName = cms.untracked.string("output.root")
00147 
00148         #process.output.SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('filterNumHepMCEventsPath'))
00149         
00150         process.output.outputCommands = cms.untracked.vstring(
00151                "drop *_*_*_*","keep edmHepMCProduct_*_*_*",
00152                "keep *_*_*_OVERLAY",
00153                "drop *_siStripZeroSuppression_*_OVERLAY",
00154                "keep uints_*_*_*",
00155                "keep FEDRawDataCollection_*_*_*"
00156         )
00157         print process.schedule
00158         return(process)
00159 

Variable Documentation

12_customise_overlay_both_events::runOnTheGrid = False

Definition at line 6 of file 12_customise_overlay_both_events.py.