HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AddMVATrainingToTrees_Wrapper Namespace Reference

Functions

def setInputFilenames
 

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
tuple fileOptionsGroup = parser.add_argument_group("File options")
 
string help = "Input root files or folders."
 
tuple configOptionsGroup = parser.add_argument_group("Config options")
 
list default = ["tt", "mt", "et", "em", "mm", "ee"]
 
tuple runningOptionsGroup = parser.add_argument_group("Running options")
 
tuple args = parser.parse_args()
 
tuple ProjectPath = os.path.expandvars(args.work)
 
dictionary gridControlInputFiles = {}
 
tuple dbsFileContent = tools.write_dbsfile(gridControlInputFiles)
 
string dbsFileBasename = "datasets.dbs"
 
tuple dbsFileBasepath = os.path.join(ProjectPath, dbsFileBasename)
 
tuple gcConfigFilePath = os.path.expandvars(args.gc_config)
 
tuple gcConfigFile = open(gcConfigFilePath,"r")
 
tuple gcConfigFileContent = gcConfigFile.readlines()
 
string tmpGcConfigFileBasename = "grid-control_config.conf"
 
tuple tmpGcConfigFileBasepath = os.path.join(ProjectPath, tmpGcConfigFileBasename)
 
tuple tmpGcConfigFile = open(tmpGcConfigFileBasepath,"w")
 
tuple sepathRaw = os.path.join(ProjectPath, "output")
 
string epilogArguments = r"epilog arguments ="
 
string workdir = "workdir = "
 
tuple backend = open(os.path.expandvars("$CMSSW_BASE/src/Artus/Configuration/data/grid-control_backend_naf.conf"), 'r')
 
tuple replacingDict
 
int exitCode = 0
 
string command = "go.py "
 

Function Documentation

def AddMVATrainingToTrees_Wrapper.setInputFilenames (   filelist,
  filedict 
)

Variable Documentation

tuple AddMVATrainingToTrees_Wrapper.args = parser.parse_args()
tuple AddMVATrainingToTrees_Wrapper.backend = open(os.path.expandvars("$CMSSW_BASE/src/Artus/Configuration/data/grid-control_backend_naf.conf"), 'r')
string AddMVATrainingToTrees_Wrapper.command = "go.py "
tuple AddMVATrainingToTrees_Wrapper.configOptionsGroup = parser.add_argument_group("Config options")
string AddMVATrainingToTrees_Wrapper.dbsFileBasename = "datasets.dbs"
tuple AddMVATrainingToTrees_Wrapper.dbsFileBasepath = os.path.join(ProjectPath, dbsFileBasename)
tuple AddMVATrainingToTrees_Wrapper.dbsFileContent = tools.write_dbsfile(gridControlInputFiles)
list AddMVATrainingToTrees_Wrapper.default = ["tt", "mt", "et", "em", "mm", "ee"]
string AddMVATrainingToTrees_Wrapper.epilogArguments = r"epilog arguments ="
tuple AddMVATrainingToTrees_Wrapper.exitCode = 0
tuple AddMVATrainingToTrees_Wrapper.fileOptionsGroup = parser.add_argument_group("File options")
tuple AddMVATrainingToTrees_Wrapper.gcConfigFile = open(gcConfigFilePath,"r")
tuple AddMVATrainingToTrees_Wrapper.gcConfigFileContent = gcConfigFile.readlines()
tuple AddMVATrainingToTrees_Wrapper.gcConfigFilePath = os.path.expandvars(args.gc_config)
dictionary AddMVATrainingToTrees_Wrapper.gridControlInputFiles = {}
string AddMVATrainingToTrees_Wrapper.help = "Input root files or folders."
tuple AddMVATrainingToTrees_Wrapper.log = logging.getLogger(__name__)
tuple AddMVATrainingToTrees_Wrapper.parser
Initial value:
1 = argparse.ArgumentParser(parents=[logger.loggingParser],
2  description="Wrapper for AddMVATrainingToTrees.py used on the batch system. Parents are liable for their children!")
tuple AddMVATrainingToTrees_Wrapper.ProjectPath = os.path.expandvars(args.work)
tuple AddMVATrainingToTrees_Wrapper.replacingDict
Initial value:
1 = dict(
2  include = ("include = " + " ".join(args.gc_config_includes) if args.gc_config_includes else ""),
3  epilogexecutable = "epilog executable = AddMVATrainingToTrees.py",
4  sepath = "se path = " + sepathRaw,
5  workdir = workdir,
6  jobs = "",
7  inputfiles = "input files = \n\t" + os.path.expandvars(os.path.join("$CMSSW_BASE/bin/$SCRAM_ARCH", "AddMVATrainingToTrees.py")),
8  filesperjob = "files per job = " + str(args.files_per_job),
9  areafiles = "",
10  walltime = "wall time = " + args.wall_time,
11  memory = "memory = " + str(args.memory),
12  cmdargs = "cmdargs = " + args.cmdargs,
13  dataset = "dataset = \n\t:ListProvider:" + dbsFileBasepath,
14  epilogarguments = epilogArguments,
15 
16  seoutputfiles = "",#"se output files = " if args.log_to_se else "se output files = *.log",
17  backend = backend,
18  partitionlfnmodifier = "partition lfn modifier = "
19  )
tuple AddMVATrainingToTrees_Wrapper.runningOptionsGroup = parser.add_argument_group("Running options")
tuple AddMVATrainingToTrees_Wrapper.sepathRaw = os.path.join(ProjectPath, "output")
tuple AddMVATrainingToTrees_Wrapper.tmpGcConfigFile = open(tmpGcConfigFileBasepath,"w")
string AddMVATrainingToTrees_Wrapper.tmpGcConfigFileBasename = "grid-control_config.conf"
tuple AddMVATrainingToTrees_Wrapper.tmpGcConfigFileBasepath = os.path.join(ProjectPath, tmpGcConfigFileBasename)
string AddMVATrainingToTrees_Wrapper.workdir = "workdir = "