CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Config.ProcessModifier Class Reference
Inheritance diagram for Config.ProcessModifier:

Public Member Functions

def __init__
 
def apply
 

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 1143 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 1149 of file Config.py.

1150  def __init__(self, modifier, func):
1151  self.__modifier = modifier
1152  self.__func = func
self.__seenProcesses = set()

Member Function Documentation

def Config.ProcessModifier.apply (   self,
  process 
)

Definition at line 1153 of file Config.py.

References Config.ProcessModifier.__func, and Config.ProcessModifier.__seenProcesses.

Referenced by heavyIonTools.ConfigureHeavyIons.__call__(), editorTools.UserCodeTool.__call__(), HiCoreTools.RestrictInputToAOD.__call__(), coreTools.RunOnData.__call__(), trackTools.MakeAODTrackCandidates.__call__(), runJetUncertainties.RunJetUncertainties.__call__(), metTools.AddMETCollection.__call__(), heavyIonTools.ProductionDefaults.__call__(), editorTools.ChangeSource.__call__(), HiCoreTools.RemoveMCMatching.__call__(), cmsswVersionTools.PickRelValInputFiles.__call__(), coreTools.RemoveMCMatching.__call__(), trackTools.MakePATTrackCandidates.__call__(), trigTools.SwitchOnTrigger.__call__(), jetTools.AddJetCollection.__call__(), heavyIonTools.SelectionDefaults.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), heavyIonTools.DisbaleMonteCarloDeps.__call__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), trigTools.SwitchOnTriggerStandAlone.__call__(), trackTools.MakeTrackCandidates.__call__(), runMVAMEtUncertainties.RunMVAMEtUncertainties.__call__(), tauTools.AddTauCollection.__call__(), trigTools.SwitchOnTriggerMatching.__call__(), HiCoreTools.RemoveCleaning.__call__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties.__call__(), HiCoreTools.AddCleaning.__call__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), jetTools.SwitchJetCollection.__call__(), jetTools.AddJetID.__call__(), and jetTools.SetTagInfos.__call__().

1154  def apply(self,process):
1155  if self.__modifier.isChosen():
1156  if process not in self.__seenProcesses:
1157  self.__func(process)
1158  self.__seenProcesses.add(process)

Member Data Documentation

Config.ProcessModifier.__func
private

Definition at line 1151 of file Config.py.

Referenced by Config.ProcessModifier.apply().

Config.ProcessModifier.__modifier
private

Definition at line 1150 of file Config.py.

Config.ProcessModifier.__seenProcesses
private

Definition at line 1152 of file Config.py.

Referenced by Config.ProcessModifier.apply().