CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
dtChamberMasker_cff Namespace Reference

Functions

def appendDTChamberMaskerAtHLT
 
def appendDTChamberMaskerAtUnpacking
 
def appendDTChamberMaskerBeforeL1Trigger
 

Function Documentation

def dtChamberMasker_cff.appendDTChamberMaskerAtHLT (   process)

Definition at line 35 of file dtChamberMasker_cff.py.

References print().

35 
36 def appendDTChamberMaskerAtHLT(process):
37 
38  if hasattr(process,'hltMuonDTDigis') and \
39  ( hasattr(process,'HLTMuonLocalRecoSequence') or \
40  hasattr(process,'HLTMuonLocalRecoMeanTimerSequence')) :
41 
42  sys.stderr.write("[appendDTChamberMasker] : Found hltMuonDTDigis, applying filter\n")
43 
44  process.preHltDtDigis = process.hltMuonDTDigis.clone()
45  process.hltMuonDTDigis = _dtChamberMasker.clone()
46 
47  process.hltMuonDTDigis.digiTag = "preHltDtDigis"
48 
49  process.filteredHltDtDigiSequence = cms.Sequence(process.preHltDtDigis + process.hltMuonDTDigis)
50  if hasattr(process,'HLTMuonLocalRecoSequence') :
51  print("1")
52  process.HLTMuonLocalRecoSequence.replace(process.hltMuonDTDigis, process.filteredHltDtDigiSequence)
53  if hasattr(process,'HLTMuonLocalRecoMeanTimerSequence') :
54  print("2")
55  process.HLTMuonLocalRecoMeanTimerSequence.replace(process.hltMuonDTDigis, process.filteredHltDtDigiSequence)
56 
57  process.globalReplace("hltMuonDTDigis",filteredHltDtDigiSequence)
58 
59  if hasattr(process,"RandomNumberGeneratorService") :
60  process.RandomNumberGeneratorService.hltMuonDTDigis = cms.PSet(
61  initialSeed = cms.untracked.uint32(789342)
62  )
63  else :
64  process.RandomNumberGeneratorService = cms.Service(
65  "RandomNumberGeneratorService",
66  hltMuonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
67  )
68 
69  return process
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def dtChamberMasker_cff.appendDTChamberMaskerAtUnpacking (   process)

Definition at line 7 of file dtChamberMasker_cff.py.

Referenced by customiseForMuonAging.enableAgingAtReco().

7 
9 
10  if hasattr(process,'muonDTDigis') and hasattr(process,'RawToDigi'):
11 
12  sys.stderr.write("[appendDTChamberMasker] : Found muonDTDigis, applying filter\n")
13 
14  process.preDtDigis = process.muonDTDigis.clone()
15  process.muonDTDigis = _dtChamberMasker.clone()
16 
17  process.muonDTDigis.digiTag = cms.InputTag('preDtDigis')
18 
19  process.RawToDigiTask.add(process.preDtDigis)
20 
21  if hasattr(process,"dtTriggerEfficiencyMonitor") :
22  process.dtTriggerEfficiencyMonitor.inputTagDDU = 'preDtDigis'
23 
24  if hasattr(process,"RandomNumberGeneratorService") :
25  process.RandomNumberGeneratorService.muonDTDigis = cms.PSet(
26  initialSeed = cms.untracked.uint32(789342)
27  )
28  else :
29  process.RandomNumberGeneratorService = cms.Service(
30  "RandomNumberGeneratorService",
31  muonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
32  )
33 
34  return process
def dtChamberMasker_cff.appendDTChamberMaskerBeforeL1Trigger (   process)

Definition at line 70 of file dtChamberMasker_cff.py.

70 
72 
73  if hasattr(process,'simDtTriggerPrimitiveDigis') and hasattr(process,'SimL1TMuonCommon') :
74 
75  sys.stderr.write("[appendDTChamberMasker] : Found simMuonDtTriggerPrimitivesDigis, applying filter\n")
76 
77  process.preSimDtTriggerDigis = _dtChamberMasker.clone()
78 
79  process.simDtTriggerPrimitiveDigis.digiTag = "preSimDtDigis"
80 
81  process.filteredSimDtTriggerSequence = cms.Sequence(process.preSimDtTriggerDigis + process.simDtTriggerPrimitiveDigis)
82  process.SimL1TMuonCommon.replace(process.simMuonDTDigis, process.filteredSimDtTriggerSequence)
83 
84  if hasattr(process,"RandomNumberGeneratorService") :
85  process.RandomNumberGeneratorService.simMuonDTDigis = cms.PSet(
86  initialSeed = cms.untracked.uint32(789342)
87  )
88  else :
89  process.RandomNumberGeneratorService = cms.Service(
90  "RandomNumberGeneratorService",
91  simMuonDTDigis = cms.PSet(initialSeed = cms.untracked.uint32(789342))
92  )
93 
94  return process