SND@LHC Software
|
Functions | |
getMasssq (pid) | |
rotate (ctheta, stheta, cphi, sphi, px, py, pz) | |
Variables | |
int | nJob = 2 |
int | nMult = 10 |
str | muonIn = '$SHIPSOFT/data/muConcrete.root' |
int | nPerJob = 20000 |
PDG = ROOT.TDatabasePDG.Instance() | |
myPythia = ROOT.TPythia6() | |
kc = myPythia.Pycomp(kf) | |
dict | masssq = {} |
R = int(time.time()%900000000) | |
dict | mutype = {-13:'gamma/mu+',13:'gamma/mu-'} |
fout = ROOT.TFile('muonDis_'+str(nJob)+'.root','recreate') | |
dTree = ROOT.TTree('DIS','muon DIS') | |
iMuon = ROOT.TClonesArray("TVectorD") | |
iMuonBranch = dTree.Branch("InMuon",iMuon,32000,-1) | |
dPart = ROOT.TClonesArray("TVectorD") | |
dPartBranch = dTree.Branch("Particles",dPart,32000,-1) | |
fin = ROOT.TFile(muonIn) | |
sTree = fin.muons | |
nTOT = sTree.GetEntries() | |
int | nStart = nPerJob*nJob |
nEnd = min(nTOT,nStart + nPerJob) | |
int | nMade = 0 |
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) | |
theta = ROOT.TMath.ACos(pz/p) | |
phi = ROOT.TMath.ATan2(py,px) | |
ctheta | |
stheta | |
cphi | |
sphi | |
mu = array('d',[pid,px,py,pz,E,x,y,z,w]) | |
muPart = ROOT.TVectorD(9,mu) | |
did = myPythia.GetK(itrk,2) | |
dpx | |
dpy | |
dpz | |
int | psq = dpx**2+dpy**2+dpz**2 |
m = array('d',[did,dpx,dpy,dpz,E]) | |
part = ROOT.TVectorD(5,m) | |
nPart = dPart.GetEntries() | |
makeMuonDIS.getMasssq | ( | pid | ) |
Definition at line 25 of file makeMuonDIS.py.
makeMuonDIS.rotate | ( | ctheta, | |
stheta, | |||
cphi, | |||
sphi, | |||
px, | |||
py, | |||
pz | |||
) |
Definition at line 49 of file makeMuonDIS.py.
makeMuonDIS.cphi |
Definition at line 82 of file makeMuonDIS.py.
makeMuonDIS.ctheta |
Definition at line 81 of file makeMuonDIS.py.
makeMuonDIS.did = myPythia.GetK(itrk,2) |
Definition at line 94 of file makeMuonDIS.py.
makeMuonDIS.dPart = ROOT.TClonesArray("TVectorD") |
Definition at line 42 of file makeMuonDIS.py.
makeMuonDIS.dPartBranch = dTree.Branch("Particles",dPart,32000,-1) |
Definition at line 43 of file makeMuonDIS.py.
makeMuonDIS.dpx |
Definition at line 95 of file makeMuonDIS.py.
makeMuonDIS.dpy |
Definition at line 95 of file makeMuonDIS.py.
makeMuonDIS.dpz |
Definition at line 95 of file makeMuonDIS.py.
makeMuonDIS.dTree = ROOT.TTree('DIS','muon DIS') |
Definition at line 39 of file makeMuonDIS.py.
makeMuonDIS.fin = ROOT.TFile(muonIn) |
Definition at line 46 of file makeMuonDIS.py.
makeMuonDIS.fout = ROOT.TFile('muonDis_'+str(nJob)+'.root','recreate') |
Definition at line 38 of file makeMuonDIS.py.
makeMuonDIS.iMuon = ROOT.TClonesArray("TVectorD") |
Definition at line 40 of file makeMuonDIS.py.
makeMuonDIS.iMuonBranch = dTree.Branch("InMuon",iMuon,32000,-1) |
Definition at line 41 of file makeMuonDIS.py.
makeMuonDIS.kc = myPythia.Pycomp(kf) |
Definition at line 20 of file makeMuonDIS.py.
dict makeMuonDIS.masssq = {} |
Definition at line 23 of file makeMuonDIS.py.
makeMuonDIS.muonIn = '$SHIPSOFT/data/muConcrete.root' |
Definition at line 5 of file makeMuonDIS.py.
makeMuonDIS.muPart = ROOT.TVectorD(9,mu) |
Definition at line 84 of file makeMuonDIS.py.
Definition at line 33 of file makeMuonDIS.py.
makeMuonDIS.myPythia = ROOT.TPythia6() |
Definition at line 16 of file makeMuonDIS.py.
Definition at line 61 of file makeMuonDIS.py.
makeMuonDIS.nJob = 2 |
Definition at line 3 of file makeMuonDIS.py.
int makeMuonDIS.nMade = 0 |
Definition at line 69 of file makeMuonDIS.py.
makeMuonDIS.nMult = 10 |
Definition at line 4 of file makeMuonDIS.py.
makeMuonDIS.nPart = dPart.GetEntries() |
Definition at line 101 of file makeMuonDIS.py.
makeMuonDIS.nPerJob = 20000 |
Definition at line 6 of file makeMuonDIS.py.
Definition at line 60 of file makeMuonDIS.py.
makeMuonDIS.nTOT = sTree.GetEntries() |
Definition at line 58 of file makeMuonDIS.py.
makeMuonDIS.part = ROOT.TVectorD(5,m) |
Definition at line 99 of file makeMuonDIS.py.
makeMuonDIS.PDG = ROOT.TDatabasePDG.Instance() |
Definition at line 15 of file makeMuonDIS.py.
Definition at line 80 of file makeMuonDIS.py.
makeMuonDIS.pid |
Definition at line 75 of file makeMuonDIS.py.
Definition at line 96 of file makeMuonDIS.py.
makeMuonDIS.px |
Definition at line 73 of file makeMuonDIS.py.
makeMuonDIS.py |
Definition at line 73 of file makeMuonDIS.py.
makeMuonDIS.pz |
Definition at line 73 of file makeMuonDIS.py.
makeMuonDIS.R = int(time.time()%900000000) |
Definition at line 31 of file makeMuonDIS.py.
makeMuonDIS.rc = sTree.GetEvent(k) |
Definition at line 71 of file makeMuonDIS.py.
makeMuonDIS.sphi |
Definition at line 82 of file makeMuonDIS.py.
makeMuonDIS.stheta |
Definition at line 81 of file makeMuonDIS.py.
makeMuonDIS.sTree = fin.muons |
Definition at line 47 of file makeMuonDIS.py.
Definition at line 79 of file makeMuonDIS.py.
makeMuonDIS.w |
Definition at line 75 of file makeMuonDIS.py.
makeMuonDIS.x |
Definition at line 74 of file makeMuonDIS.py.
makeMuonDIS.y |
Definition at line 74 of file makeMuonDIS.py.
makeMuonDIS.z |
Definition at line 74 of file makeMuonDIS.py.