CMS 3D CMS Logo

List of all members | Public Member Functions
TriggerObject.TriggerObject Class Reference
Inheritance diagram for TriggerObject.TriggerObject:

Public Member Functions

def __str__ (self)
 
def hasPath (self, path)
 

Detailed Description

With a nice printout, and functions to investigate the path and filters in the trigger object.

Definition at line 4 of file TriggerObject.py.

Member Function Documentation

◆ __str__()

def TriggerObject.TriggerObject.__str__ (   self)

Definition at line 17 of file TriggerObject.py.

References join().

17  def __str__(self):
18  base = super(TriggerObject, self).__str__()
19  specific = []
20  theStrs = [base]
21  for name in self.getSelectionNames():
22  hasSel = self.getSelection( name )
23  if hasSel:
24  specific.append( ''.join(['\t', name]) )
25  if len(specific)>0:
26  specific.insert(0,'Paths:')
27  theStrs.extend( specific )
28  return '\n'.join(theStrs)
29 
30 
static std::string join(char **cmd)
Definition: RemoteFile.cc:21

◆ hasPath()

def TriggerObject.TriggerObject.hasPath (   self,
  path 
)
Returns true if this trigger object was used in path
(path can contain a wildcard).

Definition at line 7 of file TriggerObject.py.

7  def hasPath( self, path ):
8  '''Returns true if this trigger object was used in path
9  (path can contain a wildcard).
10  '''
11  selNames = fnmatch.filter( self.getSelectionNames(), path )
12  if len(selNames)>0:
13  return True
14  else:
15  return False
16