| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GaudiMP.pTools.SyncMini Class Reference
Inheritance diagram for GaudiMP.pTools.SyncMini:
[legend]
Collaboration diagram for GaudiMP.pTools.SyncMini:
[legend]

## Public Member Functions
def | __init__
def | check
def | checkLast
def | reset
def | getTime
def | set
def | __repr__

## Public Attributes
| event
| t
| lastEvent

## Detailed Description

Definition at line 538 of file pTools.py.

## Constructor & Destructor Documentation

def GaudiMP.pTools.SyncMini.__init__ | ( |  | self,
|  |  | event,
|  |  | lastEvent = `None`
| ) |  |

Definition at line 539 of file pTools.py.

539
540 def __init__( self, event, lastEvent=None ) :
541 self.event = event
542 self.t = 0.0
543 self.lastEvent = None
544 if lastEvent :
self.lastEvent = lastEvent

## Member Function Documentation

def GaudiMP.pTools.SyncMini.__repr__ | ( |  | self | ) |

Definition at line 556 of file pTools.py.

556
557 def __repr__( self ) :
558 s = "---------- SyncMini --------------\n"
559 s += " Status : %s\n"%(self.event.is_set())
560 s += " t : %5.2f\n"%(self.t)
561 if self.lastEvent :
562 s += "Last Event : %s\n"%(self.lastEvent.is_set())
563 s += "----------------------------------\n"
564 return s
565
566 # =============================================================================

def GaudiMP.pTools.SyncMini.check | ( |  | self | ) |

Definition at line 545 of file pTools.py.

545
546 def check( self ) :
return self.event.is_set()

def GaudiMP.pTools.SyncMini.checkLast | ( |  | self | ) |

Definition at line 547 of file pTools.py.

547
548 def checkLast( self ) :
return self.lastEvent.is_set()

def GaudiMP.pTools.SyncMini.getTime | ( |  | self | ) |

Definition at line 552 of file pTools.py.

552
553 def getTime( self ) :
return self.t

def GaudiMP.pTools.SyncMini.reset | ( |  | self | ) |

Definition at line 549 of file pTools.py.

549
550 def reset( self ) :
551 self.event.clear()
self.t = time.time()

def GaudiMP.pTools.SyncMini.set | ( |  | self | ) |

Definition at line 554 of file pTools.py.

554
555 def set( self ) :
self.event.set()

## Member Data Documentation

GaudiMP.pTools.SyncMini.event

Definition at line 540 of file pTools.py.

GaudiMP.pTools.SyncMini.lastEvent

Definition at line 542 of file pTools.py.

GaudiMP.pTools.SyncMini.t

Definition at line 541 of file pTools.py.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiMP/python/GaudiMP/pTools.py