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 119 of file MVASteering_cfi.py.

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

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

Definition at line 97 of file MVASteering_cfi.py.

97 def GetTrainingFile(computerName, anAlgo):
98  return os.path.join(TauTagToolsWorkingDirectory, "test", "TrainDir_%s_%s" % (computerName, anAlgo), "%s.mva" % computerName)
99 
100 #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 91 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundFileTrainingGlob

Definition at line 86 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundRootDir

Definition at line 81 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTestingFiles

Definition at line 116 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTrainFiles

Definition at line 113 of file MVASteering_cfi.py.

MVASteering_cfi.ExcludePrepassAndPrefail

Definition at line 65 of file MVASteering_cfi.py.

MVASteering_cfi.IsolationCutForTraining

Definition at line 48 of file MVASteering_cfi.py.

MVASteering_cfi.LeadPionRequirementString

Definition at line 70 of file MVASteering_cfi.py.

MVASteering_cfi.listOfMVANames

Definition at line 101 of file MVASteering_cfi.py.

MVASteering_cfi.MVACollections

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

Definition at line 32 of file MVASteering_cfi.py.

MVASteering_cfi.myModules

Definition at line 108 of file MVASteering_cfi.py.

MVASteering_cfi.myTauAlgorithms

Definition at line 51 of file MVASteering_cfi.py.

MVASteering_cfi.name

Definition at line 104 of file MVASteering_cfi.py.

MVASteering_cfi.Project_Area

Definition at line 15 of file MVASteering_cfi.py.

MVASteering_cfi.RequireLeadPionPt

Definition at line 69 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTestingGlob

Definition at line 90 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTrainingGlob

Definition at line 85 of file MVASteering_cfi.py.

MVASteering_cfi.SignalRootDir

Definition at line 80 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTestingFiles

Definition at line 115 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTrainFiles

Definition at line 112 of file MVASteering_cfi.py.

MVASteering_cfi.TauTagToolsWorkingDirectory

Definition at line 79 of file MVASteering_cfi.py.

MVASteering_cfi.UseWeights

Definition at line 56 of file MVASteering_cfi.py.

MVASteering_cfi.WeightByIndividualDecayMode

Definition at line 61 of file MVASteering_cfi.py.