Python
RecoSettings.py
Go to the documentation of this file.
1 import ROOT,os,sys,getopt
2 import rootUtils as ut
3 import shipunit as u
4 """
5 Parameter settings for reconstruction
6 """
7 
8 ## min number of hits to produce a track
9 trackMinNofHits = 25
10 trackMinNofStations = 3
11 chi2CutOff = 4.
12 dy = 10.0
13 VertexMaxZcut = 2500*u.cm
14 VertexExtrSteps = 5
15 PDG = ROOT.TDatabasePDG.Instance()
16 
17 def chargePDG(pdg):
18  if not PDG.GetParticle(pdg): return
19  return PDG.GetParticle(pdg).Charge()/(3.)
20 
22  Rsq = (vec.X()/(2.45*u.m) )**2 + (vec.Y()/((dy/2.-0.05)*u.m) )**2
23  return ( Rsq<1 )
def checkEllipticAcc
Definition: RecoSettings.py:21