Functions | Variables
generate_CCQE_events Namespace Reference

Functions

def generate_genie_files ()
 

Variables

 mode_prefix = sys.argv[1]
 
list nucZs = [6]
 
list nucAs = [12]
 
string energy = "3.0"
 
string num_ev = "50000"
 
list neut_pdgs = ["14", "-14"]
 
string spline_dir = "../../../../splines/"
 
string spline_suffix = "QE_splines.xml"
 
int start_run = 500000
 
int end_run = 500010
 
string data_dir = "./data/"
 
string spline = spline_dir+mode_prefix+"_"
 
list cmds = []
 
 nucZ = nucZs[i]
 
 nucA = nucAs[i]
 
string folder = data_dir+str(nucZ)+"_"
 
list cmd = ["mkdir", folder]
 
 target = str(1000000000+nucA*10+nucZ*10000)
 
list cmd1
 
list cmd2 = ["gntpc", "-i", "gntp." + str(runnum) + ".ghep.root", "-f", "gst"]
 
int num_threads = 32
 
 mutex = threading.Lock()
 
list threads = []
 
 t = threading.Thread(target=generate_genie_files)
 
 daemon
 

Function Documentation

def generate_CCQE_events.generate_genie_files ( )

Definition at line 55 of file generate_CCQE_events.py.

56  while True:
57  mutex.acquire()
58  if len(cmds) == 0:
59  mutex.release()
60  return
61  cmd = cmds.pop()
62  mutex.release()
63  subprocess.call(cmd[0], cwd = cmd[2])
64  subprocess.call(cmd[1], cwd = cmd[2])
65 

Variable Documentation

list generate_CCQE_events.cmd = ["mkdir", folder]

Definition at line 42 of file generate_CCQE_events.py.

list generate_CCQE_events.cmd1
Initial value:
1 = ["gevgen", "-r", str(runnum), "-n", num_ev, "-p", neut_pdg, "-t", target,"-e", energy,
2  "--cross-sections", spline, "--seed", str(runnum), "--event-generator-list", "CCQE"]
static QCString str

Definition at line 46 of file generate_CCQE_events.py.

list generate_CCQE_events.cmd2 = ["gntpc", "-i", "gntp." + str(runnum) + ".ghep.root", "-f", "gst"]

Definition at line 48 of file generate_CCQE_events.py.

list generate_CCQE_events.cmds = []

Definition at line 29 of file generate_CCQE_events.py.

generate_CCQE_events.daemon

Definition at line 69 of file generate_CCQE_events.py.

string generate_CCQE_events.data_dir = "./data/"

Definition at line 25 of file generate_CCQE_events.py.

int generate_CCQE_events.end_run = 500010

Definition at line 24 of file generate_CCQE_events.py.

string generate_CCQE_events.energy = "3.0"

Definition at line 15 of file generate_CCQE_events.py.

string generate_CCQE_events.folder = data_dir+str(nucZ)+"_"

Definition at line 41 of file generate_CCQE_events.py.

generate_CCQE_events.mode_prefix = sys.argv[1]

Definition at line 7 of file generate_CCQE_events.py.

generate_CCQE_events.mutex = threading.Lock()

Definition at line 53 of file generate_CCQE_events.py.

list generate_CCQE_events.neut_pdgs = ["14", "-14"]

Definition at line 18 of file generate_CCQE_events.py.

generate_CCQE_events.nucA = nucAs[i]

Definition at line 40 of file generate_CCQE_events.py.

list generate_CCQE_events.nucAs = [12]

Definition at line 9 of file generate_CCQE_events.py.

generate_CCQE_events.nucZ = nucZs[i]

Definition at line 39 of file generate_CCQE_events.py.

list generate_CCQE_events.nucZs = [6]

Definition at line 8 of file generate_CCQE_events.py.

string generate_CCQE_events.num_ev = "50000"

Definition at line 17 of file generate_CCQE_events.py.

int generate_CCQE_events.num_threads = 32

Definition at line 51 of file generate_CCQE_events.py.

string generate_CCQE_events.spline = spline_dir+mode_prefix+"_"

Definition at line 27 of file generate_CCQE_events.py.

string generate_CCQE_events.spline_dir = "../../../../splines/"

Definition at line 21 of file generate_CCQE_events.py.

string generate_CCQE_events.spline_suffix = "QE_splines.xml"

Definition at line 22 of file generate_CCQE_events.py.

int generate_CCQE_events.start_run = 500000

Definition at line 23 of file generate_CCQE_events.py.

generate_CCQE_events.t = threading.Thread(target=generate_genie_files)

Definition at line 68 of file generate_CCQE_events.py.

generate_CCQE_events.target = str(1000000000+nucA*10+nucZ*10000)

Definition at line 44 of file generate_CCQE_events.py.

list generate_CCQE_events.threads = []

Definition at line 66 of file generate_CCQE_events.py.