CMS 3D CMS Logo

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

Public Member Functions

def __str__
 
def hasPath
 

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

def TriggerObject.TriggerObject.__str__ (   self)

Definition at line 17 of file TriggerObject.py.

References join().

17 
18  def __str__(self):
19  base = super(TriggerObject, self).__str__()
20  specific = []
21  theStrs = [base]
22  for name in self.getSelectionNames():
23  hasSel = self.getSelection( name )
24  if hasSel:
25  specific.append( ''.join(['\t', name]) )
26  if len(specific)>0:
27  specific.insert(0,'Paths:')
28  theStrs.extend( specific )
29  return '\n'.join(theStrs)
30 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
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 
8  def hasPath( self, path ):
9  '''Returns true if this trigger object was used in path
10  (path can contain a wildcard).
11  '''
12  selNames = fnmatch.filter( self.getSelectionNames(), path )
13  if len(selNames)>0:
14  return True
15  else:
16  return False