SND@LHC Software
Loading...
Searching...
No Matches
shipRoot_conf Namespace Reference

Functions

 forReadingOldFile ()
 
 pyExit ()
 
 configure (darkphoton=None)
 

Function Documentation

◆ configure()

shipRoot_conf.configure (   darkphoton = None)

Definition at line 67 of file shipRoot_conf.py.

67def configure(darkphoton=None):
68 ROOT.gROOT.ProcessLine('#include "ShipGlobals.h"')
69 pdg = ROOT.TDatabasePDG.Instance()
70 # pythia stuff not known to ROOT
71 pdg.AddParticle('system','system', 0., False, 0., 0., 'XXX', 90)
72 pdg.AddParticle('Pomeron','Pomeron', 0., False, 0., 0., 'Pomeron', 990)
73 pdg.AddParticle('p_diffr+','p_diffr+', 0., False, 0., 0., 'XXX', 9902210)
74 pdg.AddParticle('n_diffr0','n_diffr0', 0., False, 0., 0., 'XXX', 9902110)
75 pdg.AddParticle('J/psi[3PJ(8)]' ,'J/psi[3PJ(8)]' ,3.29692,False,0., 0.,'Meson', 9942003)
76 pdg.AddParticle('J/psi[1S0(8)]' ,'J/psi[1S0(8)]' ,3.29692,False,0., 0.,'Meson', 9941003)
77 pdg.AddParticle('f0(980)' ,'f0(980)' ,1.0, False,0.0, 0.,'Meson', 9010221)
78 pdg.AddParticle('psi(3770)' ,'psi(3770)' ,3.77315,False,0.02720, 0, 'Meson', 30443)
79 pdg.AddParticle('psi(3770)[3PJ(8)]','psi(3770)[3PJ(8)]',3.97315,False,0.0, 0, 'Meson', 9942033)
80 pdg.AddParticle('J/psi[3S1(8)]' ,'J/psi[3S1(8)]' ,3.29692,False,0.0, 0, 'Meson', 9940003)
81 pdg.AddParticle('chi_0c[3S1(8)]' ,'chi_0c[3S1(8)]' ,3.61475,False,0.0, 0, 'Meson', 9940011)
82 pdg.AddParticle('psi(2S)[1S0(8)]' ,'psi(2S)[1S0(8)]' ,3.88611,False,0.0, 0, 'Meson', 9941103)
83 pdg.AddParticle('psi(2S)[3S1(8)]' ,'psi(2S)[3S1(8)]' ,3.88611,False,0.0, 0, 'Meson', 9940103)
84 pdg.AddParticle('psi(2S)[3PJ(8)]' ,'psi(2S)[3PJ(8)]' ,3.88611,False,0.0, 0, 'Meson', 9942103)
85 pdg.AddParticle('chi_1c[3S1(8)]' ,'chi_1c[3S1(8)]' ,3.71066,False,0.0, 0, 'Meson', 9940023)
86 pdg.AddParticle('chi_2c[3S1(8)]' ,'chi_2c[3S1(8)]' ,3.75620,False,0.0, 0, 'Meson', 9940005)
87 pdg.AddParticle('Upsilon[3S1(8)]' ,'Upsilon[3S1(8)]' ,9.66030,False,0.0, 0, 'Meson', 9950003)
88 atexit.register(pyExit)
89 if darkphoton==0: return # will be added by pythia8_conf
90 if (darkphoton):
91 addDPtoROOT()
92 else:
93 addHNLtoROOT()
94

◆ forReadingOldFile()

shipRoot_conf.forReadingOldFile ( )

Definition at line 45 of file shipRoot_conf.py.

45def forReadingOldFile():
46 ROOT.gInterpreter.ProcessLine('typedef double Double32_t')
47
48# -----prepare python exit-----------------------------------------------
49
50

◆ pyExit()

shipRoot_conf.pyExit ( )

Definition at line 51 of file shipRoot_conf.py.

51def pyExit():
52 for module in sys.modules:
53 if "ROOT.genfit" in module:
54 x = sys.modules['__main__']
55 if hasattr(x, 'run'):
56 del x.run
57 print(
58 "make suicid, until better solution found to ROOT/genfit interference")
59 for f in ROOT.gROOT.GetListOfFiles():
60 if f.IsWritable() and f.IsOpen(): f.Close()
61 os.system('kill '+str(os.getpid()))
62 if hasattr(x,'fMan'): del x.fMan
63 if hasattr(x,'fRun'): del x.fRun
64 return
65 print("Exit normally")
66