ATLAS Offline Software
Loading...
Searching...
No Matches
python.BeamSpotData Namespace Reference

Classes

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

Functions

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

Variables

str __author__ = 'Juerg Beringer'
str __version__ = '$Id: BeamSpotData.py 759522 2016-07-04 12:47:58Z amorley $'
dict 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)
dict varDefs = varDefsGen
 data = BeamSpotNt('/afs/cern.ch/user/a/atlidbs/nt/beamspotnt-IndetBeampos-Oct10-Collision_7T_2010_07-v1.root')

Detailed Description

Tools for handling beam spot data in ntuples or in COOL.
For functionality requiring COOL access, you'll probably need to use
Frontier outside of CERN. For example:

setenv FRONTIER_SERVER "(serverurl=http://squid-frontier.usatlas.bnl.gov:23128/frontieratbnl)"

Function Documentation

◆ fmtVal()

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

Definition at line 248 of file BeamSpotData.py.

248def 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()

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

Definition at line 237 of file BeamSpotData.py.

237def 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
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130

Variable Documentation

◆ __author__

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

Definition at line 12 of file BeamSpotData.py.

◆ __version__

str 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

dict python.BeamSpotData.varDefs = varDefsGen

Definition at line 236 of file BeamSpotData.py.

◆ varDefsGen

dict 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.