|
SND@LHC Software
|
Functions | |
| getMasssq (pid) | |
Variables | |
| int | nJob = 1 |
| int | nMult = 1000 |
| str | muonIn = '/media/Data/HNL/muVetoDIS/muDISVetoCounter.root' |
| PDG = ROOT.TDatabasePDG.Instance() | |
| dict | masssq = {} |
| fout = ROOT.TFile('muonEm_'+str(nJob)+'.root','recreate') | |
| dTree = ROOT.TNtuple("pythia8-Geant4","muons for EM studies","id:px:py:pz:x:y:z:ox:oy:oz:pythiaid:parentid:ecut:w") | |
| fin = ROOT.TFile(muonIn) | |
| sTree = fin.muons | |
| rc = sTree.GetEvent(k) | |
| px | |
| py | |
| pz | |
| x | |
| y | |
| z | |
| pid | |
| w | |
| p = ROOT.TMath.Sqrt(px*px+py*py+pz*pz) | |
| E = ROOT.TMath.Sqrt(getMasssq(pid)+p*p) | |
| mu = array('d',[pid,px,py,pz,E,x,y,z,w]) | |
| muPart = ROOT.TVectorD(9,mu) | |
| m = array('d',[pid,px,py,pz,E]) | |
| part = ROOT.TVectorD(5,m) | |
| nPart = dPart.GetEntries() | |
| makeMuonEM.getMasssq | ( | pid | ) |
Definition at line 12 of file makeMuonEM.py.
| makeMuonEM.dTree = ROOT.TNtuple("pythia8-Geant4","muons for EM studies","id:px:py:pz:x:y:z:ox:oy:oz:pythiaid:parentid:ecut:w") |
Definition at line 24 of file makeMuonEM.py.
| makeMuonEM.fin = ROOT.TFile(muonIn) |
Definition at line 27 of file makeMuonEM.py.
| makeMuonEM.fout = ROOT.TFile('muonEm_'+str(nJob)+'.root','recreate') |
Definition at line 23 of file makeMuonEM.py.
| dict makeMuonEM.masssq = {} |
Definition at line 10 of file makeMuonEM.py.
| str makeMuonEM.muonIn = '/media/Data/HNL/muVetoDIS/muDISVetoCounter.root' |
Definition at line 5 of file makeMuonEM.py.
| makeMuonEM.muPart = ROOT.TVectorD(9,mu) |
Definition at line 39 of file makeMuonEM.py.
| int makeMuonEM.nJob = 1 |
Definition at line 3 of file makeMuonEM.py.
| int makeMuonEM.nMult = 1000 |
Definition at line 4 of file makeMuonEM.py.
| makeMuonEM.nPart = dPart.GetEntries() |
Definition at line 47 of file makeMuonEM.py.
| makeMuonEM.part = ROOT.TVectorD(5,m) |
Definition at line 45 of file makeMuonEM.py.
| makeMuonEM.PDG = ROOT.TDatabasePDG.Instance() |
Definition at line 9 of file makeMuonEM.py.
| makeMuonEM.pid |
Definition at line 35 of file makeMuonEM.py.
| makeMuonEM.px |
Definition at line 33 of file makeMuonEM.py.
| makeMuonEM.py |
Definition at line 33 of file makeMuonEM.py.
| makeMuonEM.pz |
Definition at line 33 of file makeMuonEM.py.
| makeMuonEM.rc = sTree.GetEvent(k) |
Definition at line 31 of file makeMuonEM.py.
| makeMuonEM.sTree = fin.muons |
Definition at line 28 of file makeMuonEM.py.
| makeMuonEM.w |
Definition at line 35 of file makeMuonEM.py.
| makeMuonEM.x |
Definition at line 34 of file makeMuonEM.py.
| makeMuonEM.y |
Definition at line 34 of file makeMuonEM.py.
| makeMuonEM.z |
Definition at line 34 of file makeMuonEM.py.