CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FullDigisPlusRecHits_cff.py
Go to the documentation of this file.
2 #from FWCore.Modules.printContent_cfi import *
3 
4 # ECAL Trigger Primitives (needed by SRP)
6 
7 #from SimCalorimetry.EcalTrigPrimProducers.ecalTrigPrimESProducer_cff import *
8 # Selective Readout Processor producer
9 
11 # Preshower Zero suppression producer
13 
14 #from SimCalorimetry.Configuration.ecalDigiSequence_cff import *
15 
16 #HCAL
18 hcalSimBlock.hitsProducer = cms.string("famosSimHits")
20 
23 
24 # RCT (Regional Calorimeter Trigger) emulator import for both
26 simRctDigis = L1Trigger.RegionalCaloTrigger.rctDigis_cfi.rctDigis.clone()
27 simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag( 'simEcalTriggerPrimitiveDigis' ) )
28 simRctDigis.hcalDigis = cms.VInputTag( cms.InputTag( 'simHcalTriggerPrimitiveDigis' ) )
29 simRctDigis.useEcal = cms.bool(True)
30 simRctDigis.useHcal = cms.bool(True)
31 
32 #ECAL reconstruction
36 
37 import EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi
38 ecalPacker = EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi.ecaldigitorawzerosup.clone()
39 ecalPacker.Label = 'simEcalDigis'
40 ecalPacker.InstanceEB = 'ebDigis'
41 ecalPacker.InstanceEE = 'eeDigis'
42 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
43 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
44 
46 
47 import EventFilter.EcalRawToDigi.EcalUnpackerData_cfi
48 ecalDigis = EventFilter.EcalRawToDigi.EcalUnpackerData_cfi.ecalEBunpacker.clone()
49 ecalDigis.InputLabel = 'rawDataCollector'
50 
51 
53 #from EventFilter.RawDataCollector.rawDataCollector_cfi import *
54 import EventFilter.ESRawToDigi.esRawToDigi_cfi
55 ecalPreshowerDigis = EventFilter.ESRawToDigi.esRawToDigi_cfi.esRawToDigi.clone()
56 ecalPreshowerDigis.sourceTag = 'rawDataCollector'
57 
59 
60 # HCAL Digi2Raw Raw2Digi
62 #from EventFilter.RawDataCollector.rawDataCollector_cfi import *
63 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
64 hcalDigis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
65 hcalDigis.InputLabel = 'rawDataCollector'
66 
67 ##HcalRecHit
73 
74 #from Validation.HcalDigis.hcalDigisValidationSequence_cff import *
75 dump = cms.EDAnalyzer("EventContentAnalyzer")
76 
77 DigiSequence = cms.Sequence((simHcalTriggerPrimitiveDigis * simHcalDigis*simHcalTTPDigis) + (simEcalTriggerPrimitiveDigis*simEcalDigis*simEcalPreshowerDigis ) # Digi
78  *simRctDigis* # L1Simulation
79  ecalPacker *esDigiToRaw *hcalRawData *rawDataCollector *ecalPreshowerDigis *ecalDigis *hcalDigis #* printContent
80  )
81 
82 # Reconstruction
83 ecalRecHitSequence = cms.Sequence(ecalGlobalUncalibRecHit*ecalDetIdToBeRecovered*ecalRecHit*ecalPreshowerRecHit)
84 hcalRecHitSequence = cms.Sequence((hbheprereco+hfreco+horeco)*hbhereco)
85 
86 TotalDigisPlusRecHitsSequence = cms.Sequence(DigiSequence*ecalRecHitSequence*hcalRecHitSequence)
87