CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config.ProcessModifier Class Reference
Inheritance diagram for Config.ProcessModifier:

Public Member Functions

def __init__ (self, modifier, func)
 
def apply (self, process)
 

Private Attributes

 __func
 
 __modifier
 
 __seenProcesses
 

Detailed Description

A class used by a Modifier to affect an entire Process instance.
When a Process 'loads' a module containing a ProcessModifier, that
ProcessModifier will be applied to the Process if and only if the 
Modifier passed to the constructor has been chosen.

Definition at line 1967 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config.ProcessModifier.__init__ (   self,
  modifier,
  func 
)

Definition at line 1973 of file Config.py.

1973  def __init__(self, modifier, func):
1974  self.__modifier = modifier
1975  self.__func = func
1976  self.__seenProcesses = set()
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ apply()

def Config.ProcessModifier.apply (   self,
  process 
)

Definition at line 1977 of file Config.py.

References Config.ProcessModifier.__func, Config.ProcessModifier.__modifier, Config.ProcessModifier.__seenProcesses, and PVValHelper.add().

Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties.__call__(), heavyIonTools.SelectionDefaults.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), tauTools.AddTauCollection.__call__(), trackTools.MakeTrackCandidates.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.AddJetCollection.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.UpdateJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__call__().

1977  def apply(self,process):
1978  if self.__modifier._isChosen():
1979  if process not in self.__seenProcesses:
1980  self.__func(process)
1981  self.__seenProcesses.add(process)
1982 
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
Vec apply(Vec v, F f)
Definition: ExtVec.h:77

Member Data Documentation

◆ __func

Config.ProcessModifier.__func
private

Definition at line 1975 of file Config.py.

Referenced by Config.ProcessModifier.apply().

◆ __modifier

Config.ProcessModifier.__modifier
private

Definition at line 1974 of file Config.py.

Referenced by Config.ProcessModifier.apply().

◆ __seenProcesses

Config.ProcessModifier.__seenProcesses
private

Definition at line 1976 of file Config.py.

Referenced by Config.ProcessModifier.apply().