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 
54 tcdsDigis = EventFilter.Utilities.tcdsRawToDigi_cfi.tcdsRawToDigi.clone()
55 
56 RawToDigi = cms.Sequence(csctfDigis
57  +dttfDigis
58  +gctDigis
59  +gtDigis
60  +gtEvmDigis
61  +siPixelDigis
62  +siStripDigis
63  +ecalDigis
64  +ecalPreshowerDigis
65  +hcalDigis
66  +muonCSCDigis
67  +muonDTDigis
68  +muonRPCDigis
69  +castorDigis
70  +scalersRawToDigi
71  +tcdsDigis)
72 
73 RawToDigi_noTk = cms.Sequence(csctfDigis
74  +dttfDigis
75  +gctDigis
76  +gtDigis
77  +gtEvmDigis
78  +ecalDigis
79  +ecalPreshowerDigis
80  +hcalDigis
81  +muonCSCDigis
82  +muonDTDigis
83  +muonRPCDigis
84  +castorDigis
85  +scalersRawToDigi
86  +tcdsDigis)
87 
88 scalersRawToDigi.scalersInputTag = 'rawDataCollector'
89 csctfDigis.producer = 'rawDataCollector'
90 dttfDigis.DTTF_FED_Source = 'rawDataCollector'
91 gctDigis.inputLabel = 'rawDataCollector'
92 gtDigis.DaqGtInputTag = 'rawDataCollector'
93 siPixelDigis.InputLabel = 'rawDataCollector'
94 #false by default anyways ecalDigis.DoRegional = False
95 ecalDigis.InputLabel = 'rawDataCollector'
96 ecalPreshowerDigis.sourceTag = 'rawDataCollector'
97 hcalDigis.InputLabel = 'rawDataCollector'
98 muonCSCDigis.InputObjects = 'rawDataCollector'
99 muonDTDigis.inputLabel = 'rawDataCollector'
100 muonRPCDigis.InputLabel = 'rawDataCollector'
101 gtEvmDigis.EvmGtInputTag = 'rawDataCollector'
102 castorDigis.InputLabel = 'rawDataCollector'
103 
104 ##
105 ## Make changes for Run 2
106 ##
108  """
109  Modifies the RawToDigi sequence if using the Stage 1 L1 trigger
110  """
111  theProcess.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
112  theProcess.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
113  # Note that this function is applied before the objects in this file are added
114  # to the process. So things declared in this file should be used "bare", i.e.
115  # not with "theProcess." in front of them. caloStage1Digis and caloStage1LegacyFormatDigis
116  # are an exception because they are not declared in this file but loaded into the
117  # process in the "load" statements above.
118  L1RawToDigiSeq = cms.Sequence( gctDigis + theProcess.caloStage1Digis + theProcess.caloStage1LegacyFormatDigis)
119  RawToDigi.replace( gctDigis, L1RawToDigiSeq )
120 
121 # A unique name is required for this object, so I'll call it "modify<python filename>ForRun2_"
122 modifyConfigurationStandardSequencesRawToDigiForRun2_ = eras.stage1L1Trigger.makeProcessModifier( _modifyRawToDigiForStage1Trigger )
def _modifyRawToDigiForStage1Trigger
Make changes for Run 2.