ATLAS Offline Software
Classes | Functions
CaloSwPhimod_v4data Namespace Reference

Classes

class  CaloSwPhimod_v4data_parms
 

Functions

def _flip_phi3 (eta, p0, p1, p2, p3)
 
def _flip_phi2 (corr2)
 
def _flip_phi1 (corr1)
 
def _flip_phi (corr)
 
def _copy_parms (src, dst)
 

Function Documentation

◆ _copy_parms()

def CaloSwPhimod_v4data._copy_parms (   src,
  dst 
)
private

Definition at line 37 of file CaloSwPhimod_v4data.py.

37 def _copy_parms (src, dst):
38  for (k, v) in src.__dict__.items():
39  if k[0] == '_': continue
40  if k == 'correction':
41  v = _flip_phi (v)
42  setattr (dst, k, v)
43  return
44 
45 

◆ _flip_phi()

def CaloSwPhimod_v4data._flip_phi (   corr)
private

Definition at line 33 of file CaloSwPhimod_v4data.py.

33 def _flip_phi (corr):
34  return dict([[k, _flip_phi1(v)] for k,v in corr.items()])
35 
36 

◆ _flip_phi1()

def CaloSwPhimod_v4data._flip_phi1 (   corr1)
private

Definition at line 31 of file CaloSwPhimod_v4data.py.

31 def _flip_phi1 (corr1):
32  return [_flip_phi2(c) for c in corr1]

◆ _flip_phi2()

def CaloSwPhimod_v4data._flip_phi2 (   corr2)
private

Definition at line 29 of file CaloSwPhimod_v4data.py.

29 def _flip_phi2 (corr2):
30  return [_flip_phi3(eta,p0,p1,p2,p3) for (eta,p0,p1,p2,p3) in corr2]

◆ _flip_phi3()

def CaloSwPhimod_v4data._flip_phi3 (   eta,
  p0,
  p1,
  p2,
  p3 
)
private

Definition at line 24 of file CaloSwPhimod_v4data.py.

24 def _flip_phi3 (eta, p0, p1, p2, p3):
25  if abs(eta) < 1.5:
26  p1 = -p1
27  p3 = -p3
28  return [eta, p0, p1, p2, p3]
CaloSwPhimod_v4data._flip_phi2
def _flip_phi2(corr2)
Definition: CaloSwPhimod_v4data.py:29
CaloSwPhimod_v4data._flip_phi
def _flip_phi(corr)
Definition: CaloSwPhimod_v4data.py:33
CaloSwPhimod_v4data._copy_parms
def _copy_parms(src, dst)
Definition: CaloSwPhimod_v4data.py:37
CaloSwPhimod_v4data._flip_phi1
def _flip_phi1(corr1)
Definition: CaloSwPhimod_v4data.py:31
CaloSwPhimod_v4data._flip_phi3
def _flip_phi3(eta, p0, p1, p2, p3)
Definition: CaloSwPhimod_v4data.py:24