CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DigiToRaw_cff.py
Go to the documentation of this file.
2 
3 # This object is used to make changes for different running scenarios. In
4 # this case for Run 2
5 from Configuration.StandardSequences.Eras import eras
6 
15 import EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi
16 ecalPacker = EventFilter.EcalDigiToRaw.ecalDigiToRaw_cfi.ecaldigitorawzerosup.clone()
24 #DigiToRaw = cms.Sequence(csctfpacker*dttfpacker*gctDigiToRaw*l1GtPack*l1GtEvmPack*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*rawDataCollector)
25 DigiToRaw = cms.Sequence(csctfpacker*dttfpacker*gctDigiToRaw*l1GtPack*l1GtEvmPack*siPixelRawData*SiStripDigiToRaw*ecalPacker*esDigiToRaw*hcalRawData*cscpacker*dtpacker*rpcpacker*castorRawData*rawDataCollector)
26 csctfpacker.lctProducer = "simCscTriggerPrimitiveDigis:MPCSORTED"
27 csctfpacker.trackProducer = 'simCsctfTrackDigis'
28 dttfpacker.DTDigi_Source = 'simDtTriggerPrimitiveDigis'
29 dttfpacker.DTTracks_Source = "simDttfDigis:DTTF"
30 gctDigiToRaw.rctInputLabel = 'simRctDigis'
31 gctDigiToRaw.gctInputLabel = 'simGctDigis'
32 # Change only if using the Stage 1 trigger
33 eras.stage1L1Trigger.toModify( gctDigiToRaw, gctInputLabel = 'simCaloStage1LegacyFormatDigis' )
34 
35 l1GtPack.DaqGtInputTag = 'simGtDigis'
36 l1GtPack.MuGmtInputTag = 'simGmtDigis'
37 l1GtEvmPack.EvmGtInputTag = 'simGtDigis'
38 ecalPacker.Label = 'simEcalDigis'
39 ecalPacker.InstanceEB = 'ebDigis'
40 ecalPacker.InstanceEE = 'eeDigis'
41 ecalPacker.labelEBSRFlags = "simEcalDigis:ebSrFlags"
42 ecalPacker.labelEESRFlags = "simEcalDigis:eeSrFlags"
43 
44 ##
45 ## Make changes for Run 2
46 ##
48  """
49  Modifies the DigiToRaw sequence for running in Run 2
50  """
51  theProcess.load("L1Trigger.L1TCommon.l1tDigiToRaw_cfi")
52  # Note that this function is applied before the objects in this file are added
53  # to the process. So things declared in this file should be used "bare", i.e.
54  # not with "theProcess." in front of them. l1tDigiToRaw is an exception because
55  # it is not declared in this file but loaded into the process in the "load"
56  # statement above.
57  l1tDigiToRawSeq = cms.Sequence( gctDigiToRaw + theProcess.l1tDigiToRaw )
58  DigiToRaw.replace( gctDigiToRaw, l1tDigiToRawSeq )
59 
60 # A unique name is required for this object, so I'll call it "modify<python filename>ForRun2_"
61 modifyConfigurationStandardSequencesDigiToRawForRun2_ = eras.stage1L1Trigger.makeProcessModifier( _modifyDigiToRawForStage1L1Trigger )
def _modifyDigiToRawForStage1L1Trigger
Make changes for Run 2.