CMS 3D CMS Logo

Functions
slice_test_customizations_cff Namespace Reference

Functions

def customise_for_slice_test (process, enableDigis, enableTPs)
 

Function Documentation

◆ customise_for_slice_test()

def slice_test_customizations_cff.customise_for_slice_test (   process,
  enableDigis,
  enableTPs 
)

Definition at line 4 of file slice_test_customizations_cff.py.

4 def customise_for_slice_test(process, enableDigis, enableTPs):
5 
6  print("[customise_for_slice_test]: cloning unpacker and DTDigiTask + customising AB7 sequence and TP monitoring")
7 
8  # Firstly, increase the cut on # of digis/chamber
9  # to consider it noisy for the legacy DTDigiTask
10 
11  process.dtDigiMonitor.maxTDCHitsPerChamber = 5000
12 
13  # This is commented out as the AB7 unpacker is not in CMSSW
14  # at present, the following lines need to be uncommented in the P5 setup
15 
16  # from EventFilter.DTRawToDigi.dtab7unpacker_cfi import dtAB7unpacker
17  # process.dtAB7Unpacker = dtAB7unpacker.clone()
18 
19  # Here using the uROS unpacker as proxy, the following lines
20  # need to be commented out in the setup running @ P5
21 
22  from EventFilter.DTRawToDigi.dturosunpacker_cfi import dturosunpacker
23  process.dtAB7Unpacker = dturosunpacker.clone()
24 
25  if hasattr(process,"dtDQMTask"):
26  print("[customise_for_slice_test]: extending dtDQMTask sequence to include AB7 unpacker")
27  process.dtDQMTask.replace(process.dtDigiMonitor, process.dtDigiMonitor
28  + process.dtAB7Unpacker)
29 
30  if enableDigis:
31 
32  from DQM.DTMonitorModule.dtDigiTask_cfi import dtDigiMonitor
33  process.dtAB7DigiMonitor = dtDigiMonitor.clone(
34  dtDigiLabel = "dtAB7Unpacker",
35  sliceTestMode = True,
36  maxTDCHitsPerChamber = 5000
37  )
38 
39  process.dtAB7DigiMonitor.performPerWireT0Calibration = False
40 
41  if hasattr(process,"dtAB7Unpacker"):
42  print("[customise_for_slice_test]: extending dtDQMTask sequence to include AB7 digi monitoring")
43  process.dtDQMTask.replace(process.dtAB7Unpacker, process.dtAB7Unpacker
44  + process.dtAB7DigiMonitor)
45 
46  if enableTPs:
47 
48  print("[customise_for_slice_test]: customise dtTriggerBaseMonitor to include AB7 TP monitoring")
49  process.dtTriggerBaseMonitor.processAB7 = True
50 
51  return process

References print().

slice_test_customizations_cff.customise_for_slice_test
def customise_for_slice_test(process, enableDigis, enableTPs)
Definition: slice_test_customizations_cff.py:4
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
dtDigiTask_cfi