| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# GaudiMP::pTools::SyncMini Class Reference

List of all members.

## 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 525 of file pTools.py.

## Member Function Documentation

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

Definition at line 526 of file pTools.py.

    00527                                                 :
    00528         self.event  = event
    00529         self.t      = 0.0
    00530         self.lastEvent = None
    00531         if lastEvent :
                self.lastEvent = lastEvent

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

Definition at line 543 of file pTools.py.

    00544                          :
    00545         s  = "---------- SyncMini --------------\n"
    00546         s += "    Status : %s\n"%(self.event.is_set())
    00547         s += "         t : %5.2f\n"%(self.t)
    00548         if self.lastEvent :
    00549             s += "Last Event : %s\n"%(self.lastEvent.is_set())
    00550         s += "----------------------------------\n"
    00551         return s
    00552
    00553 # =============================================================================

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

Definition at line 532 of file pTools.py.

    00533                       :
            return self.event.is_set()

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

Definition at line 534 of file pTools.py.

    00535                           :
            return self.lastEvent.is_set()

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

Definition at line 539 of file pTools.py.

    00540                         :
            return self.t

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

Definition at line 536 of file pTools.py.

    00537                       :
    00538         self.event.clear()
            self.t = time.time()

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

Definition at line 541 of file pTools.py.

    00542                     :
            self.event.set()

## Member Data Documentation

GaudiMP::pTools::SyncMini::event

Definition at line 527 of file pTools.py.

GaudiMP::pTools::SyncMini::lastEvent

Definition at line 529 of file pTools.py.

GaudiMP::pTools::SyncMini::t

Definition at line 528 of file pTools.py.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines