| The Gaudi Framework v32r1 (f65d50dc)

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__ (self, event, lastEvent=None)
def | check (self)
def | checkLast (self)
def | reset (self)
def | getTime (self)
def | set (self)
def | __repr__ (self)

## Public Attributes
| event
| t
| lastEvent

## Detailed Description

Definition at line 554 of file pTools.py.

## Constructor & Destructor Documentation

## ◆ __init__()

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

Definition at line 555 of file pTools.py.

555 def __init__(self, event, lastEvent=None):
556 self.event = event
557 self.t = 0.0
558 self.lastEvent = None
559 if lastEvent:
560 self.lastEvent = lastEvent
561

## Member Function Documentation

## ◆ __repr__()

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

Definition at line 578 of file pTools.py.

578 def __repr__(self):
579 s = "---------- SyncMini --------------\n"
580 s += " Status : %s\n" % (self.event.is_set())
581 s += " t : %5.2f\n" % (self.t)
582 if self.lastEvent:
583 s += "Last Event : %s\n" % (self.lastEvent.is_set())
584 s += "----------------------------------\n"
585 return s
586
587
588 # =============================================================================
589
590
GaudiPython.HistoUtils.__repr__
__repr__
Definition: HistoUtils.py:508

## ◆ check()

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

Definition at line 562 of file pTools.py.

562 def check(self):
563 return self.event.is_set()
564

## ◆ checkLast()

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

Definition at line 565 of file pTools.py.

565 def checkLast(self):
566 return self.lastEvent.is_set()
567

## ◆ getTime()

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

Definition at line 572 of file pTools.py.

572 def getTime(self):
573 return self.t
574

## ◆ reset()

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

Definition at line 568 of file pTools.py.

568 def reset(self):
569 self.event.clear()
570 self.t = time.time()
571

## ◆ set()

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

Definition at line 575 of file pTools.py.

575 def set(self):
576 self.event.set()
577

## Member Data Documentation

## ◆ event

GaudiMP.pTools.SyncMini.event

Definition at line 556 of file pTools.py.

## ◆ lastEvent

GaudiMP.pTools.SyncMini.lastEvent

Definition at line 558 of file pTools.py.

## ◆ t

GaudiMP.pTools.SyncMini.t

Definition at line 557 of file pTools.py.

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

- GaudiMP/python/GaudiMP/pTools.py