| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Public Attributes

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

## Constructor & Destructor Documentation

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

Definition at line 527 of file pTools.py.

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

## Member Function Documentation

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

Definition at line 544 of file pTools.py.

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

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

Definition at line 533 of file pTools.py.

    00534                       :
            return self.event.is_set()

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

Definition at line 535 of file pTools.py.

    00536                           :
            return self.lastEvent.is_set()

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

Definition at line 540 of file pTools.py.

    00541                         :
            return self.t

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

Definition at line 537 of file pTools.py.

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

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

Definition at line 542 of file pTools.py.

    00543                     :
            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 527 of file pTools.py.

GaudiMP::pTools::SyncMini::t

Definition at line 527 of file pTools.py.

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

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

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