Simple algorithm which manipulates with counters
Definition at line 49 of file Counter.py.
◆ __init__()
def Counter.Counter.__init__ |
( |
|
self, |
|
|
|
name = "Counter" |
|
) |
| |
Constructor
Definition at line 52 of file Counter.py.
52 def __init__(self, name="Counter"):
54 GaudiAlgo.__init__(self, name)
◆ execute()
def Counter.Counter.execute |
( |
|
self | ) |
|
The major method 'execute', it is invoked for each event
Definition at line 56 of file Counter.py.
57 """The major method 'execute', it is invoked for each event"""
59 executed = self.counter(
"executed")
68 g1 = self.counter(
"gauss")
69 g2 = self.counter(
"g2")
75 gp = self.counter(
"Gpos")
78 gn = self.counter(
"Gneg")
81 stat1 = self.counter(
"NG")
82 stat2 = self.counter(
"G")
83 for i
in range(0, int(poisson())):
87 stat3 = self.counter(
"eff")
91 executed = self.counter(
"executed")
92 prnt = int(executed.flag())
94 six.print_(
" Event number %s " % prnt, flush=
True)
95 bc = self.counter(
"eff")
96 line =
"(%.12g += %.12g)%s" % (bc.eff() * 100, bc.effErr() * 100,
"%")
97 six.print_(
' Efficiency (binomial counter "eff"): %s' % line, flush=
True)
The documentation for this class was generated from the following file: