ATLAS Offline Software
Functions | Variables
python.changerun Namespace Reference

Functions

def bscan (b)
 
def adjust_run (x)
 

Variables

 newrun = int (sys.argv[1])
 
 infile = sys.argv[2]
 
 outfile = sys.argv[3]
 
 f1 = ROOT.TFile(infile)
 
 t1 = f1.CollectionTree
 
 m1 = f1.MetaData
 
 cl = ROOT.TClass.GetClass('Analysis::TruthInfo_p1')
 
 f2 = ROOT.TFile(outfile, 'RECREATE')
 
 t2 = t1.CloneTree (0)
 
 m2 = m1.CloneTree (0)
 
list kk = [k.GetName() for k in f1.GetListOfKeys()]
 
 o1 = f1.Get (k)
 
 o2 = o1.CloneTree()
 
 oldrun = None
 
 bn = b.GetName()
 
 pv = getattr (m1, bn).m_payload.m_payloadVec
 
 m_start
 
 m_stop
 
 r = pa.m_range
 

Function Documentation

◆ adjust_run()

def python.changerun.adjust_run (   x)

Definition at line 70 of file changerun.py.

70 def adjust_run (x):
71  xrun = x >> 32
72  if xrun <= 0 or xrun > 1000000: return x
73  return ((xrun-oldrun) + newrun) * (1<<32) + (x & ((1<<32)-1))
74 
75 

◆ bscan()

def python.changerun.bscan (   b)

Definition at line 49 of file changerun.py.

49 def bscan (b):
50  ifo = b.GetInfo()
51  types = ifo.GetTypes()
52  elts = ifo.GetElements()
53  for i in range(ifo.GetNdata()):
54  if elts[i].GetName() == 'm_athenabarcode' and types[i] == 217:
55  types[i] = 17
56  for bb in b.GetListOfBranches():
57  bscan (bb)
58  return

Variable Documentation

◆ bn

python.changerun.bn = b.GetName()

Definition at line 79 of file changerun.py.

◆ cl

python.changerun.cl = ROOT.TClass.GetClass('Analysis::TruthInfo_p1')

Definition at line 34 of file changerun.py.

◆ f1

python.changerun.f1 = ROOT.TFile(infile)

Definition at line 30 of file changerun.py.

◆ f2

python.changerun.f2 = ROOT.TFile(outfile, 'RECREATE')

Definition at line 37 of file changerun.py.

◆ infile

python.changerun.infile = sys.argv[2]

Definition at line 15 of file changerun.py.

◆ kk

list python.changerun.kk = [k.GetName() for k in f1.GetListOfKeys()]

Definition at line 41 of file changerun.py.

◆ m1

python.changerun.m1 = f1.MetaData

Definition at line 32 of file changerun.py.

◆ m2

python.changerun.m2 = m1.CloneTree (0)

Definition at line 39 of file changerun.py.

◆ m_start

python.changerun.m_start

Definition at line 84 of file changerun.py.

◆ m_stop

python.changerun.m_stop

Definition at line 85 of file changerun.py.

◆ newrun

python.changerun.newrun = int (sys.argv[1])

Definition at line 14 of file changerun.py.

◆ o1

python.changerun.o1 = f1.Get (k)

Definition at line 44 of file changerun.py.

◆ o2

python.changerun.o2 = o1.CloneTree()

Definition at line 45 of file changerun.py.

◆ oldrun

python.changerun.oldrun = None

Definition at line 62 of file changerun.py.

◆ outfile

python.changerun.outfile = sys.argv[3]

Definition at line 16 of file changerun.py.

◆ pv

python.changerun.pv = getattr (m1, bn).m_payload.m_payloadVec

Definition at line 81 of file changerun.py.

◆ r

python.changerun.r = pa.m_range

Definition at line 87 of file changerun.py.

◆ t1

python.changerun.t1 = f1.CollectionTree

Definition at line 31 of file changerun.py.

◆ t2

python.changerun.t2 = t1.CloneTree (0)

Definition at line 38 of file changerun.py.

python.changerun.bscan
def bscan(b)
Definition: changerun.py:49
python.changerun.adjust_run
def adjust_run(x)
Definition: changerun.py:70
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195