CMS 3D CMS Logo

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

Functions

def customise_for_slice_test
 

Function Documentation

def slice_test_customizations_cff.customise_for_slice_test (   process,
  enableDigis,
  enableTPs 
)

Definition at line 4 of file slice_test_customizations_cff.py.

References print().

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