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 | Static Private Attributes
trigTools.SwitchOnTriggerMatchingStandAlone Class Reference
Inheritance diagram for trigTools.SwitchOnTriggerMatchingStandAlone:

Public Member Functions

def __call__
 
def __init__
 
def getDefaultParameters
 
def toolCode
 

Private Attributes

 _comment
 
 _parameters
 

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
 
string _label = 'switchOnTriggerMatchingStandAlone'
 

Detailed Description

Enables trigger matching in PAT
SwitchOnTriggerMatchingStandAlone( [cms.Process], triggerMatchers = [default list], triggerProducer = 'patTrigger', sequence = 'patDefaultSequence', hltProcess = 'HLT', outputModule = 'out' )
- [cms.Process]  : the 'cms.Process'
- triggerMatchers: PAT trigger matcher module labels (list)
                   optional; default: defined in 'triggerMatchingDefaultSequence'
                   (s. PhysicsTools/PatAlgos/python/triggerLayer1/triggerMatcher_cfi.py)
- triggerProducer: PATTriggerProducer module label;
                   optional, default: 'patTrigger'
- sequence       : name of sequence to use;
                   optional, default: 'patDefaultSequence'
- hltProcess     : HLT process name;
                   optional, default: 'HLT'
- outputModule   : output module label;
                   empty label indicates no output;
                   optional, default: 'out'
Using None as any argument restores its default value.

Definition at line 427 of file trigTools.py.

Constructor & Destructor Documentation

def trigTools.SwitchOnTriggerMatchingStandAlone.__init__ (   self)

Definition at line 448 of file trigTools.py.

References electronTools.AddElectronUserIsolation._defaultParameters, photonTools.AddPhotonUserIsolation._defaultParameters, python.editorTools.UserCodeTool._defaultParameters, muonTools.AddMuonUserIsolation._defaultParameters, metTools.AddTcMET._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RestrictInputToAOD._defaultParameters, jetTools.RunBTagging._defaultParameters, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, python.editorTools.ChangeSource._defaultParameters, metTools.AddPfMET._defaultParameters, coreTools.RunOnData._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, cmsswVersionTools.RunBTagging35X._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, jetTools.AddJetCollection._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, coreTools.RemoveAllPATObjectsBut._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, coreTools.RemoveSpecificPATObjects._defaultParameters, cmsswVersionTools.AddJetCollection35X._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, coreTools.RemoveCleaning._defaultParameters, coreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, cmsswVersionTools.SwitchJetCollection35X._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, root::helper::RootFunctionAdapter< F, args >.addParameter(), root::helper::RootFunctionHelper< F, args, Tag >.addParameter(), ParameterMgr.addParameter(), fit::RootMinuit< Function >.addParameter(), PythonParameterSet.addParameter(), LutXml.addParameter(), python.ConfigToolBase.ConfigToolBase.addParameter(), and edm::ParameterSet.addParameter().

449  def __init__( self ):
450  ConfigToolBase.__init__( self )
451  self.addParameter( self._defaultParameters, 'triggerMatchers', _defaultTriggerMatchers, _defaultTriggerMatchersComment )
452  self.addParameter( self._defaultParameters, 'triggerProducer', _defaultTriggerProducer, _defaultTriggerProducerComment )
453  self.addParameter( self._defaultParameters, 'sequence' , _defaultSequence , _defaultSequenceComment )
454  self.addParameter( self._defaultParameters, 'hltProcess' , _defaultHltProcess , _defaultHltProcessComment )
455  self.addParameter( self._defaultParameters, 'outputModule' , _defaultOutputModule , _defaultOutputModuleComment )
456  self._parameters = copy.deepcopy( self._defaultParameters )
457  self._comment = ""

Member Function Documentation

def trigTools.SwitchOnTriggerMatchingStandAlone.__call__ (   self,
  process,
  triggerMatchers = None,
  triggerProducer = None,
  sequence = None,
  hltProcess = None,
  outputModule = None 
)

Definition at line 467 of file trigTools.py.

References electronTools.AddElectronUserIsolation._defaultParameters, photonTools.AddPhotonUserIsolation._defaultParameters, metTools.AddTcMET._defaultParameters, muonTools.AddMuonUserIsolation._defaultParameters, python.editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RestrictInputToAOD._defaultParameters, jetTools.RunBTagging._defaultParameters, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, python.editorTools.ChangeSource._defaultParameters, metTools.AddPfMET._defaultParameters, coreTools.RunOnData._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, cmsswVersionTools.RunBTagging35X._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, jetTools.AddJetCollection._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, coreTools.RemoveAllPATObjectsBut._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, coreTools.RemoveSpecificPATObjects._defaultParameters, cmsswVersionTools.AddJetCollection35X._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, coreTools.RemoveCleaning._defaultParameters, coreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, cmsswVersionTools.SwitchJetCollection35X._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, cmsswVersionTools.PickRelValInputFiles._defaultParameters, SignedImpactParameter3D.apply(), SignedTransverseImpactParameter.apply(), SignedDecayLength3D.apply(), SurveyParameters.apply(), gen::PhotosInterface.apply(), FWPSetCellEditor.apply(), FWGUIEventFilter.apply(), DeviationsFromFileSensor2D.apply(), jetTools.RunBTagging.apply(), BeamSpotAlignmentParameters.apply(), RigidBodyAlignmentParameters.apply(), python.ConfigToolBase.ConfigToolBase.apply(), AlignmentParameters.apply(), BowedSurfaceAlignmentParameters.apply(), python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.apply(), python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.apply(), TwoBowedSurfacesAlignmentParameters.apply(), python.Vispa.Gui.BoxContentDialog.BoxContentDialog.apply(), reco::modules::TrackerTrackHitFilter::Rule.apply(), python.Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog.apply(), reco::Add< T >.apply(), reco::Sub< T >.apply(), reco::Mul< T >.apply(), reco::Div< T >.apply(), reco::And< bool >.apply(), cmsswVersionTools.RunBTagging35X.apply(), reco::Or< bool >.apply(), reco::Less< T >.apply(), reco::LessEqual< T >.apply(), reco::More< T >.apply(), reco::MoreEqual< T >.apply(), reco::Equal< T >.apply(), cmsswVersionTools.PickRelValInputFiles.apply(), PedeReader.setParameter(), fit::RootMinuit< Function >.setParameter(), and python.ConfigToolBase.ConfigToolBase.setParameter().

Referenced by trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters().

468  ):
469  if triggerMatchers is None:
470  triggerMatchers = self._defaultParameters[ 'triggerMatchers' ].value
471  if triggerProducer is None:
472  triggerProducer = self._defaultParameters[ 'triggerProducer' ].value
473  if sequence is None:
474  sequence = self._defaultParameters[ 'sequence' ].value
475  if hltProcess is None:
476  hltProcess = self._defaultParameters[ 'hltProcess' ].value
477  if outputModule is None:
478  outputModule = self._defaultParameters[ 'outputModule' ].value
479  self.setParameter( 'triggerMatchers', triggerMatchers )
480  self.setParameter( 'triggerProducer', triggerProducer )
481  self.setParameter( 'sequence' , sequence )
482  self.setParameter( 'hltProcess' , hltProcess )
483  self.setParameter( 'outputModule' , outputModule )
484  self.apply( process )
def trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters (   self)

Definition at line 458 of file trigTools.py.

References trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), electronTools.AddElectronUserIsolation._defaultParameters, photonTools.AddPhotonUserIsolation._defaultParameters, metTools.AddTcMET._defaultParameters, muonTools.AddMuonUserIsolation._defaultParameters, python.editorTools.UserCodeTool._defaultParameters, trackTools.MakeAODTrackCandidates._defaultParameters, heavyIonTools.ConfigureHeavyIons._defaultParameters, coreTools.RestrictInputToAOD._defaultParameters, jetTools.RunBTagging._defaultParameters, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._defaultParameters, heavyIonTools.ProductionDefaults._defaultParameters, python.editorTools.ChangeSource._defaultParameters, metTools.AddPfMET._defaultParameters, coreTools.RunOnData._defaultParameters, trackTools.MakePATTrackCandidates._defaultParameters, trigTools.SwitchOnTrigger._defaultParameters, coreTools.RemoveMCMatching._defaultParameters, cmsswVersionTools.RunBTagging35X._defaultParameters, heavyIonTools.SelectionDefaults._defaultParameters, heavyIonTools.DisbaleMonteCarloDeps._defaultParameters, jetTools.AddJetCollection._defaultParameters, trigTools.SwitchOnTriggerStandAlone._defaultParameters, coreTools.RemoveAllPATObjectsBut._defaultParameters, trackTools.MakeTrackCandidates._defaultParameters, coreTools.RemoveSpecificPATObjects._defaultParameters, cmsswVersionTools.AddJetCollection35X._defaultParameters, tauTools.AddTauCollection._defaultParameters, trigTools.SwitchOnTriggerMatching._defaultParameters, coreTools.RemoveCleaning._defaultParameters, coreTools.AddCleaning._defaultParameters, trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters, jetTools.SwitchJetCollection._defaultParameters, cmsswVersionTools.SwitchJetCollection35X._defaultParameters, jetTools.AddJetID._defaultParameters, jetTools.SetTagInfos._defaultParameters, and cmsswVersionTools.PickRelValInputFiles._defaultParameters.

Referenced by trigTools.SwitchOnTriggerMatchingStandAlone.toolCode().

459  def getDefaultParameters( self ):
460  return self._defaultParameters
def trigTools.SwitchOnTriggerMatchingStandAlone.toolCode (   self,
  process 
)

Definition at line 485 of file trigTools.py.

References trigTools._addEventContent(), electronTools.AddElectronUserIsolation._label, photonTools.AddPhotonUserIsolation._label, python.editorTools.UserCodeTool._label, metTools.AddTcMET._label, muonTools.AddMuonUserIsolation._label, trackTools.MakeAODTrackCandidates._label, heavyIonTools.ConfigureHeavyIons._label, coreTools.RestrictInputToAOD._label, MagneticFieldMapESProducer._label, TrackerInteractionGeometryESProducer._label, jetTools.RunBTagging._label, python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder._label, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._label, heavyIonTools.ProductionDefaults._label, python.ConfigToolBase.ConfigToolBase._label, python.editorTools.ChangeSource._label, metTools.AddPfMET._label, coreTools.RunOnData._label, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool._label, trackTools.MakePATTrackCandidates._label, trigTools.SwitchOnTrigger._label, coreTools.RemoveMCMatching._label, cmsswVersionTools.RunBTagging35X._label, heavyIonTools.SelectionDefaults._label, heavyIonTools.DisbaleMonteCarloDeps._label, jetTools.AddJetCollection._label, trigTools.SwitchOnTriggerStandAlone._label, coreTools.RemoveAllPATObjectsBut._label, trackTools.MakeTrackCandidates._label, coreTools.RemoveSpecificPATObjects._label, cmsswVersionTools.AddJetCollection35X._label, tauTools.AddTauCollection._label, trigTools.SwitchOnTriggerMatching._label, coreTools.RemoveCleaning._label, coreTools.AddCleaning._label, trigTools.SwitchOnTriggerMatchingStandAlone._label, jetTools.SwitchJetCollection._label, cmsswVersionTools.SwitchJetCollection35X._label, jetTools.AddJetID._label, jetTools.SetTagInfos._label, cmsswVersionTools.PickRelValInputFiles._label, python.Vispa.Views.LineDecayView.DecayLine._label, trigTools._modulesInSequence(), photonTools.AddPhotonUserIsolation._parameters, python.editorTools.UserCodeTool._parameters, electronTools.AddElectronUserIsolation._parameters, muonTools.AddMuonUserIsolation._parameters, heavyIonTools.ConfigureHeavyIons._parameters, metTools.AddTcMET._parameters, coreTools.RestrictInputToAOD._parameters, trackTools.MakeAODTrackCandidates._parameters, python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigFolder._parameters, jetTools.RunBTagging._parameters, python.Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool._parameters, heavyIonTools.ProductionDefaults._parameters, python.ConfigToolBase.ConfigToolBase._parameters, python.editorTools.ChangeSource._parameters, TAbsFitConstraint._parameters, metTools.AddPfMET._parameters, TAbsFitParticle._parameters, coreTools.RunOnData._parameters, trackTools.MakePATTrackCandidates._parameters, trigTools.SwitchOnTrigger._parameters, coreTools.RemoveMCMatching._parameters, cmsswVersionTools.RunBTagging35X._parameters, heavyIonTools.SelectionDefaults._parameters, heavyIonTools.DisbaleMonteCarloDeps._parameters, jetTools.AddJetCollection._parameters, coreTools.RemoveAllPATObjectsBut._parameters, trigTools.SwitchOnTriggerStandAlone._parameters, trackTools.MakeTrackCandidates._parameters, coreTools.RemoveSpecificPATObjects._parameters, cmsswVersionTools.AddJetCollection35X._parameters, tauTools.AddTauCollection._parameters, trigTools.SwitchOnTriggerMatching._parameters, coreTools.RemoveCleaning._parameters, coreTools.AddCleaning._parameters, trigTools.SwitchOnTriggerMatchingStandAlone._parameters, jetTools.SwitchJetCollection._parameters, cmsswVersionTools.SwitchJetCollection35X._parameters, jetTools.AddJetID._parameters, jetTools.SetTagInfos._parameters, cmsswVersionTools.PickRelValInputFiles._parameters, photonTools.AddPhotonUserIsolation.getDefaultParameters(), electronTools.AddElectronUserIsolation.getDefaultParameters(), muonTools.AddMuonUserIsolation.getDefaultParameters(), heavyIonTools.ConfigureHeavyIons.getDefaultParameters(), metTools.AddTcMET.getDefaultParameters(), coreTools.RestrictInputToAOD.getDefaultParameters(), trackTools.MakeAODTrackCandidates.getDefaultParameters(), jetTools.RunBTagging.getDefaultParameters(), heavyIonTools.ProductionDefaults.getDefaultParameters(), python.editorTools.ChangeSource.getDefaultParameters(), metTools.AddPfMET.getDefaultParameters(), coreTools.RunOnData.getDefaultParameters(), trackTools.MakePATTrackCandidates.getDefaultParameters(), trigTools.SwitchOnTrigger.getDefaultParameters(), coreTools.RemoveMCMatching.getDefaultParameters(), cmsswVersionTools.RunBTagging35X.getDefaultParameters(), heavyIonTools.SelectionDefaults.getDefaultParameters(), heavyIonTools.DisbaleMonteCarloDeps.getDefaultParameters(), jetTools.AddJetCollection.getDefaultParameters(), coreTools.RemoveAllPATObjectsBut.getDefaultParameters(), trigTools.SwitchOnTriggerStandAlone.getDefaultParameters(), trackTools.MakeTrackCandidates.getDefaultParameters(), coreTools.RemoveSpecificPATObjects.getDefaultParameters(), cmsswVersionTools.AddJetCollection35X.getDefaultParameters(), tauTools.AddTauCollection.getDefaultParameters(), trigTools.SwitchOnTriggerMatching.getDefaultParameters(), coreTools.RemoveCleaning.getDefaultParameters(), coreTools.AddCleaning.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), jetTools.SwitchJetCollection.getDefaultParameters(), cmsswVersionTools.SwitchJetCollection35X.getDefaultParameters(), jetTools.AddJetID.getDefaultParameters(), jetTools.SetTagInfos.getDefaultParameters(), cmsswVersionTools.PickRelValInputFiles.getDefaultParameters(), and trigTools.switchOnTriggerStandAlone.

486  def toolCode( self, process ):
487  triggerMatchers = self._parameters[ 'triggerMatchers' ].value
488  triggerProducer = self._parameters[ 'triggerProducer' ].value
489  sequence = self._parameters[ 'sequence' ].value
490  hltProcess = self._parameters[ 'hltProcess' ].value
491  outputModule = self._parameters[ 'outputModule' ].value
492 
493  # Load default producers from existing config file, if needed
494  if not hasattr( process, 'triggerMatchingDefaultSequence' ):
495  for matcher in triggerMatchers:
496  if matcher in self.getDefaultParameters()[ 'triggerMatchers' ].value:
497  process.load( "PhysicsTools.PatAlgos.triggerLayer1.triggerMatcher_cfi" )
498  break
499 
500  # Switch on PAT trigger information if needed
501  if triggerProducer not in _modulesInSequence( process, sequence ):
502  print '%s():'%( self._label )
503  print ' PAT trigger production switched on automatically using'
504  print ' switchOnTriggerStandAlone( process, %s, %s, %s, %s )'%( hltProcess, triggerProducer, sequence, outputModule )
505  print _longLine
506  switchOnTriggerStandAlone( process, triggerProducer, sequence, hltProcess, outputModule )
507 
508  # Maintain configurations
509  for matcher in triggerMatchers:
510  trigMchMod = getattr( process, matcher )
511  trigMchMod.matched = triggerProducer
512  if matcher in _modulesInSequence( process, sequence ):
513  print '%s():'%( self._label )
514  print ' PAT trigger matcher %s exists already in sequence %s'%( matcher, sequence )
515  print ' ==> entry re-used'
516  print _longLine
517  else:
518  # Sequence arithmetics for PAT trigger matcher modules
519  process.patTriggerSequence *= trigMchMod
520 
521  # Add event content
522  if outputModule is not '':
523  patTriggerEventContent = []
524  for matcher in triggerMatchers:
525  patTriggerEventContent += [ 'keep patTriggerObjectStandAlonesedmAssociation_%s_*_%s'%( matcher, process.name_() )
526  , 'keep *_%s_*_*'%( getattr( process, matcher ).src.value() )
527  ]
528  getattr( process, outputModule ).outputCommands = _addEventContent( getattr( process, outputModule ).outputCommands, patTriggerEventContent )
tuple switchOnTriggerStandAlone
Definition: trigTools.py:284
def _modulesInSequence
Definition: trigTools.py:30
def _addEventContent
Definition: trigTools.py:34

Member Data Documentation

trigTools.SwitchOnTriggerMatchingStandAlone._comment
private

Definition at line 456 of file trigTools.py.

tuple trigTools.SwitchOnTriggerMatchingStandAlone._defaultParameters = dicttypes.SortedKeysDict()
staticprivate

Definition at line 446 of file trigTools.py.

Referenced by HiCoreTools.RestrictInputToAOD.__call__(), HiCoreTools.RemoveMCMatching.__call__(), HiCoreTools.RemoveAllPATObjectsBut.__call__(), HiCoreTools.RemoveSpecificPATObjects.__call__(), HiCoreTools.RemoveCleaning.__call__(), HiCoreTools.AddCleaning.__call__(), trigTools.SwitchOnTriggerMatchingStandAlone.__call__(), trigTools.SwitchOnTriggerMatchEmbedding.__call__(), trigTools.RemoveCleaningFromTriggerMatching.__call__(), HiCoreTools.RestrictInputToAOD.__init__(), HiCoreTools.RemoveMCMatching.__init__(), HiCoreTools.RemoveAllPATObjectsBut.__init__(), HiCoreTools.RemoveSpecificPATObjects.__init__(), HiCoreTools.RemoveCleaning.__init__(), HiCoreTools.AddCleaning.__init__(), trigTools.SwitchOnTriggerMatchingStandAlone.__init__(), trigTools.SwitchOnTriggerMatchEmbedding.__init__(), trigTools.RemoveCleaningFromTriggerMatching.__init__(), python.ConfigToolBase.ConfigToolBase.getAllowedValues(), HiCoreTools.RestrictInputToAOD.getDefaultParameters(), HiCoreTools.RemoveMCMatching.getDefaultParameters(), HiCoreTools.RemoveAllPATObjectsBut.getDefaultParameters(), HiCoreTools.RemoveSpecificPATObjects.getDefaultParameters(), HiCoreTools.RemoveCleaning.getDefaultParameters(), HiCoreTools.AddCleaning.getDefaultParameters(), trigTools.SwitchOnTriggerMatchingStandAlone.getDefaultParameters(), trigTools.SwitchOnTriggerMatchEmbedding.getDefaultParameters(), trigTools.RemoveCleaningFromTriggerMatching.getDefaultParameters(), python.ConfigToolBase.ConfigToolBase.reset(), and python.ConfigToolBase.ConfigToolBase.setParameter().

string trigTools.SwitchOnTriggerMatchingStandAlone._label = 'switchOnTriggerMatchingStandAlone'
staticprivate

Definition at line 445 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), and trigTools.RemoveCleaningFromTriggerMatching.toolCode().

trigTools.SwitchOnTriggerMatchingStandAlone._parameters
private

Definition at line 455 of file trigTools.py.

Referenced by HiCoreTools.RestrictInputToAOD.toolCode(), HiCoreTools.RemoveMCMatching.toolCode(), HiCoreTools.RemoveAllPATObjectsBut.toolCode(), HiCoreTools.RemoveSpecificPATObjects.toolCode(), HiCoreTools.RemoveCleaning.toolCode(), HiCoreTools.AddCleaning.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), and trigTools.RemoveCleaningFromTriggerMatching.toolCode().