CMS 3D CMS Logo

Functions
customizeForNoTrackerDCS Namespace Reference

Functions

def producers_by_type (process, types)
 
def removeDCSChecks (process, acceptedParts)
 
def removePixelDCSChecks (process)
 
def removeStripDCSChecks (process)
 
def removeTrackerDCSChecks (process)
 

Detailed Description

Module to remove SiStrip DCS checks in Strip and Tracking Monitors

Function Documentation

◆ producers_by_type()

def customizeForNoTrackerDCS.producers_by_type (   process,
  types 
)

◆ removeDCSChecks()

def customizeForNoTrackerDCS.removeDCSChecks (   process,
  acceptedParts 
)

Definition at line 10 of file customizeForNoTrackerDCS.py.

References print(), and producers_by_type().

Referenced by removePixelDCSChecks(), removeStripDCSChecks(), and removeTrackerDCSChecks().

10 def removeDCSChecks(process, acceptedParts):
11  print('WARNING: removing SiStrip DCS Checks in Strip and Tracking Monitors')
12 
13  for producerType in ['SiStripMonitorTrack', 'SiStripMonitorCluster']:
14  for producer in producers_by_type(process, producerType):
15  producer.UseDCSFiltering = cms.bool(False)
16 
17  for producer in producers_by_type(process, 'SiStripMonitorCluster'):
18  producer.StripDCSfilter.dcsPartitions = cms.vint32(acceptedParts)
19 
20  for producer in producers_by_type(process, 'TrackingMonitor'):
21  producer.genericTriggerEventPSet.dcsPartitions = cms.vint32(acceptedParts)
22 
23  return process
24 
def producers_by_type(process, types)
def removeDCSChecks(process, acceptedParts)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ removePixelDCSChecks()

def customizeForNoTrackerDCS.removePixelDCSChecks (   process)

Definition at line 29 of file customizeForNoTrackerDCS.py.

References removeDCSChecks().

29 def removePixelDCSChecks(process):
30  removeDCSChecks(process, [24, 25, 26, 27]) # keep 24-27: strip
31  return process
32 
def removeDCSChecks(process, acceptedParts)

◆ removeStripDCSChecks()

def customizeForNoTrackerDCS.removeStripDCSChecks (   process)

Definition at line 25 of file customizeForNoTrackerDCS.py.

References removeDCSChecks().

25 def removeStripDCSChecks(process):
26  removeDCSChecks(process, [28, 29]) # keep 28-29: pixel
27  return process
28 
def removeDCSChecks(process, acceptedParts)

◆ removeTrackerDCSChecks()

def customizeForNoTrackerDCS.removeTrackerDCSChecks (   process)

Definition at line 33 of file customizeForNoTrackerDCS.py.

References removeDCSChecks().

33 def removeTrackerDCSChecks(process):
34  removeDCSChecks(process, []) # do not keep anything
35  return process
36 
def removeDCSChecks(process, acceptedParts)