RunRunSensitivity.py
Go to the documentation of this file.
1 import sys,os
2 
3 if len(sys.argv)<5:
4  print "Usage:",sys.argv[0]," <macro> <version> <proton_energy_in_GeV> <user_who_made_the_flux>"
5  sys.exit()
6 
7 macro = sys.argv[1]
8 version = sys.argv[2]
9 energy = sys.argv[3]
10 user = sys.argv[4]
11 
12 fhc_file = "/dune/data/users/"+user+"/fluxfiles/g4lbne/"+version+"/QGSP_BERT/"+macro+"/neutrino/flux/histos_g4lbne_"+version+"_QGSP_BERT_"+macro+"_neutrino_LBNEFD_globes_flux.txt"
13 rhc_file = "/dune/data/users/"+user+"/fluxfiles/g4lbne/"+version+"/QGSP_BERT/"+macro+"/antineutrino/flux/histos_g4lbne_"+version+"_QGSP_BERT_"+macro+"_antineutrino_LBNEFD_globes_flux.txt"
14 
15 pwd = os.getenv("PWD")
16 
17 os.system("cd /dune/app/users/ljf26/lblpwgtools/code/sensitivity; ./RunSensitivity.sh -n "+macro+" -f "+fhc_file+" -r "+rhc_file+" -m "+energy+" -s 1; cd "+pwd)
18