Functions | Variables
make_template_knob_config Namespace Reference

Functions

def setknob (knobname, value)
 

Variables

string default_dataset = 'prod_caf_R17-03-01-prod3reco.d_nd_genie_nonswap_fhc_nova_v08_full_v1'
 
 parser = argparse.ArgumentParser(description='script to make a template configuration file of all tunable GENIE knobs pertaining to the tag release indicated by the SAM definition name used for producing the files')
 
 type
 
 str
 
 default
 
 dest
 
 action
 
 printout
 
 args = parser.parse_args()
 
bool tag_found = False
 
string found_tag = ''
 
 stdout
 
 stderr
 
 shell
 
 True
 
 envdict = dict()
 
list knoblist = []
 
 tfilepn = stdout.rstrip('\n')
 
 tfile = TFile.Open(tfilepn)
 
 recTree = tfile.Get('recTree')
 
int nknobs = 0
 
 kconf = collections.OrderedDict()
 
string outfilename = 'knob_config.txt'
 knobs that need extra care More...
 

Function Documentation

def make_template_knob_config.setknob (   knobname,
  value 
)

Definition at line 15 of file make_template_knob_config.py.

15 def setknob(knobname, value):
16  if knobname in kconf:
17  kconf[knobname] = value
18 
19 # use production 3 ND MC as the default dataset

Variable Documentation

make_template_knob_config.action

Definition at line 25 of file make_template_knob_config.py.

make_template_knob_config.args = parser.parse_args()

Definition at line 28 of file make_template_knob_config.py.

make_template_knob_config.default

Definition at line 24 of file make_template_knob_config.py.

string make_template_knob_config.default_dataset = 'prod_caf_R17-03-01-prod3reco.d_nd_genie_nonswap_fhc_nova_v08_full_v1'

Definition at line 20 of file make_template_knob_config.py.

make_template_knob_config.dest

Definition at line 25 of file make_template_knob_config.py.

make_template_knob_config.envdict = dict()

Definition at line 56 of file make_template_knob_config.py.

make_template_knob_config.found_tag = ''

Definition at line 40 of file make_template_knob_config.py.

make_template_knob_config.kconf = collections.OrderedDict()

Definition at line 95 of file make_template_knob_config.py.

list make_template_knob_config.knoblist = []

Definition at line 61 of file make_template_knob_config.py.

make_template_knob_config.nknobs = 0

Definition at line 88 of file make_template_knob_config.py.

string make_template_knob_config.outfilename = 'knob_config.txt'
make_template_knob_config.parser = argparse.ArgumentParser(description='script to make a template configuration file of all tunable GENIE knobs pertaining to the tag release indicated by the SAM definition name used for producing the files')

Definition at line 23 of file make_template_knob_config.py.

make_template_knob_config.printout

Definition at line 27 of file make_template_knob_config.py.

make_template_knob_config.recTree = tfile.Get('recTree')
make_template_knob_config.shell

Definition at line 41 of file make_template_knob_config.py.

make_template_knob_config.stderr
make_template_knob_config.stdout

Definition at line 41 of file make_template_knob_config.py.

Referenced by dump_event(), dump_lib(), and ana::Progress.SetProgress().

make_template_knob_config.str

Definition at line 24 of file make_template_knob_config.py.

bool make_template_knob_config.tag_found = False

Definition at line 39 of file make_template_knob_config.py.

make_template_knob_config.tfile = TFile.Open(tfilepn)
make_template_knob_config.tfilepn = stdout.rstrip('\n')

Definition at line 76 of file make_template_knob_config.py.

make_template_knob_config.True

Definition at line 41 of file make_template_knob_config.py.

make_template_knob_config.type

Definition at line 24 of file make_template_knob_config.py.