CMS 3D CMS Logo

List of all members | Public Member Functions
upgradeWorkflowComponents.UpgradeWorkflowPatatrack Class Reference
Inheritance diagram for upgradeWorkflowComponents.UpgradeWorkflowPatatrack:
upgradeWorkflowComponents.UpgradeWorkflow upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyGPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_HCALOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_HCALOnlyGPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyGPU

Public Member Functions

def condition (self, fragment, stepList, key, hasHarvest)
 
def condition_ (self, fragment, stepList, key, hasHarvest)
 
- Public Member Functions inherited from upgradeWorkflowComponents.UpgradeWorkflow
def __init__ (self, steps, PU, suffix, offset)
 
def init (self, stepDict)
 
def setup (self, stepDict, k, properties)
 
def setup_ (self, step, stepName, stepDict, k, properties)
 
def workflow (self, workflows, num, fragment, stepList, key, hasHarvest)
 
def workflow_ (self, workflows, num, fragment, stepList)
 

Additional Inherited Members

- Public Attributes inherited from upgradeWorkflowComponents.UpgradeWorkflow
 offset
 
 PU
 
 steps
 
 suffix
 

Detailed Description

Definition at line 292 of file upgradeWorkflowComponents.py.

Member Function Documentation

◆ condition()

def upgradeWorkflowComponents.UpgradeWorkflowPatatrack.condition (   self,
  fragment,
  stepList,
  key,
  hasHarvest 
)

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 293 of file upgradeWorkflowComponents.py.

293  def condition(self, fragment, stepList, key, hasHarvest):
294  is_2018_ttbar = ('2018' in key and fragment=="TTbar_13")
295  is_2021_ttbar = ('2021' in key and fragment=="TTbar_14TeV")
296  is_2018_zmumu = ('2018' in key and fragment=="ZMM_13")
297  is_2021_zmumu = ('2021' in key and fragment=="ZMM_14")
298  result = any((is_2018_ttbar, is_2021_ttbar, is_2018_zmumu, is_2021_zmumu)) and hasHarvest and self.condition_(fragment, stepList, key, hasHarvest)
299  if result:
300  # skip ALCA and Nano
301  skipList = [s for s in stepList if (("ALCA" in s) or ("Nano" in s))]
302  for skip in skipList:
303  stepList.remove(skip)
304  return result

References any(), upgradeWorkflowComponents.UpgradeWorkflowTracking.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingRun2.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingOnlyRun2.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingLowPU.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_pixelTrackingOnly.condition_(), timestudy::SleepingServer.condition_, upgradeWorkflowComponents.UpgradeWorkflow_trackingMkFit.condition_(), and upgradeWorkflowComponents.UpgradeWorkflowPatatrack.condition_().

◆ condition_()

def upgradeWorkflowComponents.UpgradeWorkflowPatatrack.condition_ (   self,
  fragment,
  stepList,
  key,
  hasHarvest 
)
any
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:34
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37