ATLAS Offline Software
Classes | Functions | Variables
python.BeamSpotData Namespace Reference

Classes

class  BeamSpotAverage
 
class  BeamSpotContainer
 
class  BeamSpotCOOL
 
class  BeamSpotCSV
 
class  BeamSpotFinderNt
 
class  BeamSpotGraph
 
class  BeamSpotNt
 
class  BeamSpotValue
 

Functions

def varDef (var, property, default='', useAlternate=False, override=None)
 
def fmtVal (var, value, strip=False, useAlternate=False)
 

Variables

string __author__ = 'Juerg Beringer'
 
string __version__ = '$Id: BeamSpotData.py 759522 2016-07-04 12:47:58Z amorley $'
 
dictionary varDefsGen
 
 varDefsTable = copy.deepcopy(varDefsGen)
 
 varDefsRun1 = copy.deepcopy(varDefsGen)
 
 varDefsRun1VtxPaper = copy.deepcopy(varDefsGen)
 
 varDefsMC14 = copy.deepcopy(varDefsGen)
 
 varDefsMC14Profile = copy.deepcopy(varDefsGen)
 
 varDefsTruthCorr = copy.deepcopy(varDefsGen)
 
dictionary varDefs = varDefsGen
 
 data = BeamSpotNt('/afs/cern.ch/user/a/atlidbs/nt/beamspotnt-IndetBeampos-Oct10-Collision_7T_2010_07-v1.root')
 

Function Documentation

◆ fmtVal()

def python.BeamSpotData.fmtVal (   var,
  value,
  strip = False,
  useAlternate = False 
)

Definition at line 248 of file BeamSpotData.py.

248 def fmtVal(var,value,strip=False,useAlternate=False):
249  fmt = varDef(var,'fmt','%s')
250  if useAlternate:
251  value *= varDef(var,'altfactor',1.)
252  fmt = varDef(var,'altfmt',fmt)
253  s = fmt % value
254  if strip:
255  return s.strip()
256  else:
257  return s
258 
259 
260 

◆ varDef()

def python.BeamSpotData.varDef (   var,
  property,
  default = '',
  useAlternate = False,
  override = None 
)

Definition at line 237 of file BeamSpotData.py.

237 def varDef(var,property,default='',useAlternate=False,override=None):
238  if override:
239  return override
240  try:
241  v = varDefs[var].get(property,default)
242  if useAlternate:
243  v = varDefs[var].get('alt'+property,v)
244  return v
245  except Exception:
246  return default
247 

Variable Documentation

◆ __author__

string python.BeamSpotData.__author__ = 'Juerg Beringer'
private

Definition at line 12 of file BeamSpotData.py.

◆ __version__

string python.BeamSpotData.__version__ = '$Id: BeamSpotData.py 759522 2016-07-04 12:47:58Z amorley $'
private

Definition at line 13 of file BeamSpotData.py.

◆ data

python.BeamSpotData.data = BeamSpotNt('/afs/cern.ch/user/a/atlidbs/nt/beamspotnt-IndetBeampos-Oct10-Collision_7T_2010_07-v1.root')

Definition at line 1270 of file BeamSpotData.py.

◆ varDefs

dictionary python.BeamSpotData.varDefs = varDefsGen

Definition at line 236 of file BeamSpotData.py.

◆ varDefsGen

dictionary python.BeamSpotData.varDefsGen

Definition at line 31 of file BeamSpotData.py.

◆ varDefsMC14

python.BeamSpotData.varDefsMC14 = copy.deepcopy(varDefsGen)

Definition at line 137 of file BeamSpotData.py.

◆ varDefsMC14Profile

python.BeamSpotData.varDefsMC14Profile = copy.deepcopy(varDefsGen)

Definition at line 167 of file BeamSpotData.py.

◆ varDefsRun1

python.BeamSpotData.varDefsRun1 = copy.deepcopy(varDefsGen)

Definition at line 112 of file BeamSpotData.py.

◆ varDefsRun1VtxPaper

python.BeamSpotData.varDefsRun1VtxPaper = copy.deepcopy(varDefsGen)

Definition at line 128 of file BeamSpotData.py.

◆ varDefsTable

python.BeamSpotData.varDefsTable = copy.deepcopy(varDefsGen)

Definition at line 100 of file BeamSpotData.py.

◆ varDefsTruthCorr

python.BeamSpotData.varDefsTruthCorr = copy.deepcopy(varDefsGen)

Definition at line 197 of file BeamSpotData.py.

python.BeamSpotData.fmtVal
def fmtVal(var, value, strip=False, useAlternate=False)
Definition: BeamSpotData.py:248
python.BeamSpotData.varDef
def varDef(var, property, default='', useAlternate=False, override=None)
Definition: BeamSpotData.py:237
get
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition: hcg.cxx:127