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

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

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

Definition at line 99 of file MVASteering_cfi.py.

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

MVASteering_cfi.BackgroundFileTrainingGlob

Definition at line 88 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundRootDir

Definition at line 83 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTestingFiles

Definition at line 118 of file MVASteering_cfi.py.

MVASteering_cfi.BackgroundTrainFiles

Definition at line 115 of file MVASteering_cfi.py.

MVASteering_cfi.ExcludePrepassAndPrefail

Definition at line 67 of file MVASteering_cfi.py.

MVASteering_cfi.IsolationCutForTraining

Definition at line 50 of file MVASteering_cfi.py.

MVASteering_cfi.LeadPionRequirementString

Definition at line 72 of file MVASteering_cfi.py.

MVASteering_cfi.listOfMVANames

Definition at line 103 of file MVASteering_cfi.py.

MVASteering_cfi.MVACollections

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

Definition at line 34 of file MVASteering_cfi.py.

MVASteering_cfi.myModules

Definition at line 110 of file MVASteering_cfi.py.

MVASteering_cfi.myTauAlgorithms

Definition at line 53 of file MVASteering_cfi.py.

MVASteering_cfi.name

Definition at line 106 of file MVASteering_cfi.py.

MVASteering_cfi.Project_Area

Definition at line 17 of file MVASteering_cfi.py.

MVASteering_cfi.RequireLeadPionPt

Definition at line 71 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTestingGlob

Definition at line 92 of file MVASteering_cfi.py.

MVASteering_cfi.SignalFileTrainingGlob

Definition at line 87 of file MVASteering_cfi.py.

MVASteering_cfi.SignalRootDir

Definition at line 82 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTestingFiles

Definition at line 117 of file MVASteering_cfi.py.

MVASteering_cfi.SignalTrainFiles

Definition at line 114 of file MVASteering_cfi.py.

MVASteering_cfi.TauTagToolsWorkingDirectory

Definition at line 81 of file MVASteering_cfi.py.

MVASteering_cfi.UseWeights

Definition at line 58 of file MVASteering_cfi.py.

MVASteering_cfi.WeightByIndividualDecayMode

Definition at line 63 of file MVASteering_cfi.py.