A utility class for accumulating beam spot data into TGraphErrors.
Definition at line 688 of file BeamSpotData.py.
◆ __init__()
def python.BeamSpotData.BeamSpotGraph.__init__ |
( |
|
self, |
|
|
|
timeAxis = False , |
|
|
|
bcidAxis = False , |
|
|
|
separationAxis = False |
|
) |
| |
Definition at line 691 of file BeamSpotData.py.
691 def __init__(self, timeAxis = False, bcidAxis = False, separationAxis = False):
692 self.timeAxis = timeAxis
693 self.bcidAxis = bcidAxis
694 self.separationAxis = separationAxis
◆ add()
def python.BeamSpotData.BeamSpotGraph.add |
( |
|
self, |
|
|
|
bs, |
|
|
|
what, |
|
|
|
arescale = 1. |
|
) |
| |
Add element what of BeamSpotValue bs to the graph.
Definition at line 706 of file BeamSpotData.py.
706 def add(self,bs,what,arescale=1.):
707 """Add element what of BeamSpotValue bs to the graph."""
709 y = arescale*getattr(bs,what)
710 ey = arescale*getattr(bs,what+
'Err',0)
711 ex = (bs.lbEnd - bs.lbStart)/2.
712 x = self.xoffset + bs.lbStart + ex
715 ex = (bs.timeEnd - bs.timeStart)/2.
716 x = self.xoffset + bs.timeStart + ex
720 if self.separationAxis:
728 self.xmin =
min(x-ex,self.xmin)
729 self.xmax =
max(x+ex,self.xmax)
730 self.ymin =
min(y-ey,self.ymin)
731 self.ymax =
max(y+ey,self.ymax)
◆ getTGraph()
def python.BeamSpotData.BeamSpotGraph.getTGraph |
( |
|
self, |
|
|
|
name = '' |
|
) |
| |
Definition at line 733 of file BeamSpotData.py.
733 def getTGraph(self,name=''):
735 gr = ROOT.TGraphErrors(len(self.x),self.x,self.y,self.ex,self.ey)
◆ bcidAxis
python.BeamSpotData.BeamSpotGraph.bcidAxis |
◆ ex
python.BeamSpotData.BeamSpotGraph.ex |
◆ ey
python.BeamSpotData.BeamSpotGraph.ey |
◆ separationAxis
python.BeamSpotData.BeamSpotGraph.separationAxis |
◆ timeAxis
python.BeamSpotData.BeamSpotGraph.timeAxis |
◆ what
python.BeamSpotData.BeamSpotGraph.what |
python.BeamSpotData.BeamSpotGraph.x |
◆ xmax
python.BeamSpotData.BeamSpotGraph.xmax |
◆ xmin
python.BeamSpotData.BeamSpotGraph.xmin |
◆ xoffset
python.BeamSpotData.BeamSpotGraph.xoffset |
python.BeamSpotData.BeamSpotGraph.y |
◆ ymax
python.BeamSpotData.BeamSpotGraph.ymax |
◆ ymin
python.BeamSpotData.BeamSpotGraph.ymin |
The documentation for this class was generated from the following file: