CMS 3D CMS Logo

Functions | Variables
MVASteering_cfi Namespace Reference

Functions

def EverythingInItsRightPlace ()
 
def GetTrainingFile (computerName, anAlgo)
 DO NOT MODIFY BELOW THIS LINE (experts only) #############. More...
 

Variables

 BackgroundFileTestingGlob
 
 BackgroundFileTrainingGlob
 
 BackgroundRootDir
 
 BackgroundTestingFiles
 
 BackgroundTrainFiles
 
 ExcludePrepassAndPrefail
 
 IsolationCutForTraining
 
 LeadPionRequirementString
 
 listOfMVANames
 
 MVACollections
 USER PARAMETERS #######################################. More...
 
 myModules
 
 myTauAlgorithms
 
 name
 
 Project_Area
 
 RequireLeadPionPt
 
 SignalFileTestingGlob
 
 SignalFileTrainingGlob
 
 SignalRootDir
 
 SignalTestingFiles
 
 SignalTrainFiles
 
 TauTagToolsWorkingDirectory
 
 UseWeights
 
 WeightByIndividualDecayMode
 

Detailed Description

    MVASteering.py
    Author: Evan K. Friis, UC Davis (friis@physics.ucdavis.edu)

    Define the MVA configurations (ie TaNC) to be used in training/testing
            - which neural net 
            - which algorithms (shrinkingConePFTauDecayModeProducer, etc)
    Define locations of train/test ROOT files

Function Documentation

def MVASteering_cfi.EverythingInItsRightPlace ( )

Definition at line 120 of file MVASteering_cfi.py.

121  if not len(SignalTrainFiles) or not len(BackgroundTrainFiles) or not len(SignalTestingFiles) or not len(BackgroundTestingFiles):
122  raise IOError("The signal/background root file training/testing file list is empty! Check the SignalFileTrainingGlob etc. in MVASteering.py")
123 
124  # Ensure that we have all the necessary XML files
125  for aModule in myModules:
126  computerName = aModule.computerName.value() #conver to python string
127  xmlFileLoc = os.path.join(TauTagToolsWorkingDirectory, "xml", "%s.xml" % computerName)
128  if not os.path.exists(xmlFileLoc):
129  raise IOError("Can't find xml configuration file for %s - please check that %s exists!" % (computerName, xmlFileLoc))
130 
131  if not os.path.exists(SignalRootDir):
132  raise IOError("Signal root file directory (%s) does not exist! Have you created the MVA raw training data?" % SignalRootDir)
133  if not os.path.exists(BackgroundRootDir):
134  raise IOError("Background root file directory (%s) does not exist! Have you created the MVA raw training data?" % BackgroundRootDir)
135 
def EverythingInItsRightPlace()
def MVASteering_cfi.GetTrainingFile (   computerName,
  anAlgo 
)

DO NOT MODIFY BELOW THIS LINE (experts only) #############.

Definition at line 98 of file MVASteering_cfi.py.

98 def GetTrainingFile(computerName, anAlgo):
99  return os.path.join(TauTagToolsWorkingDirectory, "test", "TrainDir_%s_%s" % (computerName, anAlgo), "%s.mva" % computerName)
100 
101 #Find the unique mva types to train
def GetTrainingFile(computerName, anAlgo)
DO NOT MODIFY BELOW THIS LINE (experts only) #############.

Variable Documentation

MVASteering_cfi.BackgroundFileTestingGlob

Definition at line 92 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundFileTrainingGlob

Definition at line 87 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundRootDir

Definition at line 82 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTestingFiles

Definition at line 117 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTrainFiles

Definition at line 114 of file MVASteering_cfi.py.

MVASteering_cfi.ExcludePrepassAndPrefail

Definition at line 66 of file MVASteering_cfi.py.

MVASteering_cfi.IsolationCutForTraining

Definition at line 49 of file MVASteering_cfi.py.

MVASteering_cfi.LeadPionRequirementString

Definition at line 71 of file MVASteering_cfi.py.

MVASteering_cfi.listOfMVANames

Definition at line 102 of file MVASteering_cfi.py.

MVASteering_cfi.MVACollections

USER PARAMETERS #######################################.

Definition at line 33 of file MVASteering_cfi.py.

MVASteering_cfi.myModules

Definition at line 109 of file MVASteering_cfi.py.

MVASteering_cfi.myTauAlgorithms

Definition at line 52 of file MVASteering_cfi.py.

MVASteering_cfi.name

Definition at line 105 of file MVASteering_cfi.py.

MVASteering_cfi.Project_Area

Definition at line 16 of file MVASteering_cfi.py.

MVASteering_cfi.RequireLeadPionPt

Definition at line 70 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTestingGlob

Definition at line 91 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTrainingGlob

Definition at line 86 of file MVASteering_cfi.py.

MVASteering_cfi.SignalRootDir

Definition at line 81 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTestingFiles

Definition at line 116 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTrainFiles

Definition at line 113 of file MVASteering_cfi.py.

MVASteering_cfi.TauTagToolsWorkingDirectory

Definition at line 80 of file MVASteering_cfi.py.

MVASteering_cfi.UseWeights

Definition at line 57 of file MVASteering_cfi.py.

MVASteering_cfi.WeightByIndividualDecayMode

Definition at line 62 of file MVASteering_cfi.py.