WCSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
MakeKin Namespace Reference

Functions

def eventPrint
 
def partPrint
 
def vertPrint
 
def printTrack
 

Variables

dictionary pid
 
dictionary detectors
 
tuple parser = OptionParser()
 
int optdefault = 1
 
string help = "number of files of particles to produce. Default: %s"
 
string metavar = "#"
 
int verticesPerEventDefault = 1
 
tuple optchoices = list(pid.keys())
 
 choices = optdefault)
 
tuple nfiles = int(options.nfiles)
 
tuple npart = int(options.npart)
 
tuple verticesPerEvent = int(options.verticesPerEvent)
 
tuple energy = float(options.energy)
 
dictionary particle
 
 randvert = False
 
 randdir = False
 
dictionary nu
 
dictionary prot
 
tuple typestr = options.type.replace("+","plus")
 
string filename = "%s_%.0fMeV_%s_%s_%s_%03i.kin"
 
tuple outfile = open(filename, 'w')
 
int numberDone = 0
 
tuple sigma = sqrt(verticesPerEvent)
 
tuple numberToProcess = int(round(random.gauss(verticesPerEvent,sigma)))
 

Function Documentation

def MakeKin.eventPrint (   nv,
  p,
  f,
  recno 
)

Definition at line 160 of file MakeKin.py.

def MakeKin.partPrint (   p,
  f,
  recno 
)

Definition at line 167 of file MakeKin.py.

def MakeKin.printTrack (   p,
  f,
  code = 0 
)

Definition at line 201 of file MakeKin.py.

def MakeKin.vertPrint (   p,
  f,
  recno 
)

Definition at line 172 of file MakeKin.py.

Variable Documentation

MakeKin.choices = optdefault)

Definition at line 58 of file MakeKin.py.

dictionary MakeKin.detectors
Initial value:
1 = {"SuperK":[3368.15/2., 3620.],
2  "Cylinder_60x74_20inchBandL_14perCent":[7400./2., 6000.],
3  "Cylinder_60x74_20inchBandL_40perCent":[7400./2., 6000.],
4  "HyperK":[7080./2., 5480.]}

Definition at line 19 of file MakeKin.py.

tuple MakeKin.energy = float(options.energy)

Definition at line 93 of file MakeKin.py.

string MakeKin.filename = "%s_%.0fMeV_%s_%s_%s_%03i.kin"

Definition at line 209 of file MakeKin.py.

string MakeKin.help = "number of files of particles to produce. Default: %s"

Definition at line 35 of file MakeKin.py.

string MakeKin.metavar = "#"

Definition at line 37 of file MakeKin.py.

tuple MakeKin.nfiles = int(options.nfiles)

Definition at line 90 of file MakeKin.py.

tuple MakeKin.npart = int(options.npart)

Definition at line 91 of file MakeKin.py.

dictionary MakeKin.nu
Initial value:
1 = {"type":pid["numu"], "energy":energy+1000.0,
2  "direction":(1, 0, 0)}

Definition at line 155 of file MakeKin.py.

MakeKin.numberDone = 0

Definition at line 220 of file MakeKin.py.

tuple MakeKin.numberToProcess = int(round(random.gauss(verticesPerEvent,sigma)))

Definition at line 223 of file MakeKin.py.

tuple MakeKin.optchoices = list(pid.keys())

Definition at line 52 of file MakeKin.py.

string MakeKin.optdefault = 1

Definition at line 33 of file MakeKin.py.

tuple MakeKin.outfile = open(filename, 'w')

Definition at line 211 of file MakeKin.py.

tuple MakeKin.parser = OptionParser()

Definition at line 32 of file MakeKin.py.

dictionary MakeKin.particle
Initial value:
1 = {"vertex":(0, 0, 0),
2  "time":0,
3  "type":pid[options.type],
4  "energy":energy,
5  "direction":(1,0,0)}

Definition at line 97 of file MakeKin.py.

dictionary MakeKin.pid
Initial value:
1 = {"pi0":111, "pi+":211, "k0l":130, "k0s":310, "k+":321,
2  "e+":-11, "mu+":-13, "tau+":-15,
3  "nue":12, "nuebar":-12,
4  "numu":14, "numubar":-14,
5  "nutau":16, "nutaubar":-16,
6  "p+":2212, "n0":2112}

Definition at line 11 of file MakeKin.py.

dictionary MakeKin.prot
Initial value:
1 = {"type":pid["p+"], "energy":935.9840,
2  "direction":(0, 0, 1)}

Definition at line 157 of file MakeKin.py.

MakeKin.randdir = False

Definition at line 137 of file MakeKin.py.

MakeKin.randvert = False

Definition at line 104 of file MakeKin.py.

tuple MakeKin.sigma = sqrt(verticesPerEvent)

Definition at line 221 of file MakeKin.py.

tuple MakeKin.typestr = options.type.replace("+","plus")

Definition at line 207 of file MakeKin.py.

tuple MakeKin.verticesPerEvent = int(options.verticesPerEvent)

Definition at line 92 of file MakeKin.py.

int MakeKin.verticesPerEventDefault = 1

Definition at line 43 of file MakeKin.py.