Example #1
0
for PerhapsFile in os.listdir(VTagger.GetApplicationDirectory().Data()):
    if os.path.isfile(VTagger.GetApplicationDirectory().Data() + "/" + PerhapsFile):
        print "Applying BDT to " + VTagger.GetApplicationDirectory().Data() + "/" + PerhapsFile
        ROOT.applyBDT(
            str(VTagger.GetApplicationDirectory()) + "/" + PerhapsFile,
            str(VTagger.GetConfigFile()),
            str(VTagger.GetApplicationTree()),
            str(VTagger.GetWeightsFile()),
            str(VTagger.GetApplicationOutput()) + "/BDTOut_" + PerhapsFile,
            VTagger.GetOutputName(),
            VTagger.GetMethodName(),
            VTagger.GetUniformVariable(),
            VTagger.GetWeight(),
            45,
            10,
            190,
            10000,
        )
        ROOT.merge1(
            str(VTagger.GetApplicationDirectory()) + "/" + PerhapsFile,
            str(VTagger.GetConfigFile()),
            str(VTagger.GetApplicationOutput()) + "/BDTOut_" + PerhapsFile,
            str(VTagger.GetApplicationTree()),
        )

# VTagger.Apply(45,10,190,10000)
VTagger.Apply()

del VTagger