Classes | |
class | MyPythonAlg |
class | DecayEnergy |
Functions | |
def | pdgid2name |
def | configure |
def | run |
def GenDecay::Histogram::pdgid2name | ( | idn | ) |
Definition at line 56 of file Histogram.py.
00056 : 00057 _pdgid2name = { 00058 11: "e-", 00059 -11: "e+", 00060 22: "gamma", 00061 1000020040: "alpha", 00062 1000802060: "Hg-206", 00063 1000812060: "Tl-206", 00064 1000822060: "Pb-206", 00065 1000812080: "Tl-208", 00066 1000822080: "Pb-208", 00067 1000812100: "Tl-210", 00068 1000822100: "Pb-210", 00069 1000832100: "Bi-210", 00070 1000842100: "Po-210", 00071 1000822120: "Pb-212", 00072 1000832120: "Bi-212", 00073 1000842120: "Po-212", 00074 1000822140: "Pb-214", 00075 1000832140: "Bi-214", 00076 1000842140: "Po-214", 00077 1000842160: "Po-216", 00078 1000842180: "Po-218", 00079 1000862200: "Rn-220", 00080 1000862220: "Rn-222", 00081 1000882240: "Ra-224", 00082 1000882260: "Ra-226", 00083 1000882280: "Ra-228", 00084 1000892280: "Ac-228", 00085 1000902280: "Th-228", 00086 1000902300: "Th-230", 00087 1000902320: "Th-232", 00088 1000902340: "Th-234", 00089 1000912340: "Pa-234", 00090 1000922340: "U-234", 00091 1000922380: "U-238", 00092 } 00093 try: 00094 return _pdgid2name[idn] 00095 except KeyError: 00096 return str(idn) 00097 00098 00099 class DecayEnergy(MyPythonAlg):
def GenDecay::Histogram::configure | ( | argv = [] |
) |
Definition at line 295 of file Histogram.py.
00295 : 00296 try: 00297 histfile = argv[0] 00298 except IndexError: 00299 histfile="gendecay.root" 00300 00301 from StatisticsSvc.StatisticsSvcConf import StatisticsSvc 00302 statsSvc = StatisticsSvc() 00303 statsSvc.Output ={"file1":histfile} 00304 return 00305 def run(app):
def GenDecay::Histogram::run | ( | app | ) |
Definition at line 306 of file Histogram.py.
00306 : 00307 app.ExtSvc += ["StaticCableSvc", "StatisticsSvc"] 00308 00309 dke = DecayEnergy("DecayEnergy","Chain") 00310 app.addAlgorithm(dke) 00311 return return