CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawToDigi_cff.py
Go to the documentation of this file.
2 
3 # This object is used to selectively make changes for different running
4 # scenarios. In this case it makes changes for Run 2.
5 from Configuration.StandardSequences.Eras import eras
6 
8 
9 import EventFilter.CSCTFRawToDigi.csctfunpacker_cfi
10 csctfDigis = EventFilter.CSCTFRawToDigi.csctfunpacker_cfi.csctfunpacker.clone()
11 
13 dttfDigis = EventFilter.DTTFRawToDigi.dttfunpacker_cfi.dttfunpacker.clone()
14 
15 import EventFilter.GctRawToDigi.l1GctHwDigis_cfi
16 gctDigis = EventFilter.GctRawToDigi.l1GctHwDigis_cfi.l1GctHwDigis.clone()
17 
18 import EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi
19 gtDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtUnpack_cfi.l1GtUnpack.clone()
20 
21 import EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi
22 gtEvmDigis = EventFilter.L1GlobalTriggerRawToDigi.l1GtEvmUnpack_cfi.l1GtEvmUnpack.clone()
23 
25 
27 
29 
30 import EventFilter.EcalRawToDigi.EcalUnpackerData_cfi
31 ecalDigis = EventFilter.EcalRawToDigi.EcalUnpackerData_cfi.ecalEBunpacker.clone()
32 
34 ecalPreshowerDigis = EventFilter.ESRawToDigi.esRawToDigi_cfi.esRawToDigi.clone()
35 
36 import EventFilter.HcalRawToDigi.HcalRawToDigi_cfi
37 hcalDigis = EventFilter.HcalRawToDigi.HcalRawToDigi_cfi.hcalDigis.clone()
38 
40 muonCSCDigis = EventFilter.CSCRawToDigi.cscUnpacker_cfi.muonCSCDigis.clone()
41 
43 muonDTDigis = EventFilter.DTRawToDigi.dtunpacker_cfi.muonDTDigis.clone()
44 
46 muonRPCDigis = EventFilter.RPCRawToDigi.rpcUnpacker_cfi.rpcunpacker.clone()
47 
49 castorDigis = EventFilter.CastorRawToDigi.CastorRawToDigi_cfi.castorDigis.clone( FEDs = cms.untracked.vint32(690,691,692) )
50 
52 
53 RawToDigi = cms.Sequence(csctfDigis
54  +dttfDigis
55  +gctDigis
56  +gtDigis
57  +gtEvmDigis
58  +siPixelDigis
59  +siStripDigis
60  +ecalDigis
61  +ecalPreshowerDigis
62  +hcalDigis
63  +muonCSCDigis
64  +muonDTDigis
65  +muonRPCDigis
66  +castorDigis
67  +scalersRawToDigi)
68 
69 RawToDigi_noTk = cms.Sequence(csctfDigis
70  +dttfDigis
71  +gctDigis
72  +gtDigis
73  +gtEvmDigis
74  +ecalDigis
75  +ecalPreshowerDigis
76  +hcalDigis
77  +muonCSCDigis
78  +muonDTDigis
79  +muonRPCDigis
80  +castorDigis
81  +scalersRawToDigi)
82 
83 scalersRawToDigi.scalersInputTag = 'rawDataCollector'
84 csctfDigis.producer = 'rawDataCollector'
85 dttfDigis.DTTF_FED_Source = 'rawDataCollector'
86 gctDigis.inputLabel = 'rawDataCollector'
87 gtDigis.DaqGtInputTag = 'rawDataCollector'
88 siPixelDigis.InputLabel = 'rawDataCollector'
89 #false by default anyways ecalDigis.DoRegional = False
90 ecalDigis.InputLabel = 'rawDataCollector'
91 ecalPreshowerDigis.sourceTag = 'rawDataCollector'
92 hcalDigis.InputLabel = 'rawDataCollector'
93 muonCSCDigis.InputObjects = 'rawDataCollector'
94 muonDTDigis.inputLabel = 'rawDataCollector'
95 muonRPCDigis.InputLabel = 'rawDataCollector'
96 gtEvmDigis.EvmGtInputTag = 'rawDataCollector'
97 castorDigis.InputLabel = 'rawDataCollector'
98 
99 ##
100 ## Make changes for Run 2
101 ##
103  """
104  Modifies the RawToDigi sequence if using the Stage 1 L1 trigger
105  """
106  theProcess.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
107  theProcess.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
108  # Note that this function is applied before the objects in this file are added
109  # to the process. So things declared in this file should be used "bare", i.e.
110  # not with "theProcess." in front of them. caloStage1Digis and caloStage1LegacyFormatDigis
111  # are an exception because they are not declared in this file but loaded into the
112  # process in the "load" statements above.
113  L1RawToDigiSeq = cms.Sequence( gctDigis + theProcess.caloStage1Digis + theProcess.caloStage1LegacyFormatDigis)
114  RawToDigi.replace( gctDigis, L1RawToDigiSeq )
115 
116 # A unique name is required for this object, so I'll call it "modify<python filename>ForRun2_"
117 modifyConfigurationStandardSequencesRawToDigiForRun2_ = eras.stage1L1Trigger.makeProcessModifier( _modifyRawToDigiForStage1Trigger )
def _modifyRawToDigiForStage1Trigger
Make changes for Run 2.