parameters: (analyzer, discriminatorLabel=None)
return_statement: return first+"ID"+last+"Efficiencies"
docstring: NameVariable(analyzer, discriminatorLabel)\n
      returns a string with the name of the pset created by CreatePlotEntry
docstring_summary: NameVariable(analyzer, discriminatorLabel)\n
      returns a string with the name of the pset created by CreatePlotEntry
docstring_tokens: NameVariable ( analyzer discriminatorLabel ) \ n returns a string with the name of the pset created by CreatePlotEntry
function: def NameVariable(analyzer, discriminatorLabel=None):
      """NameVariable(analyzer, discriminatorLabel)\n
      returns a string with the name of the pset created by CreatePlotEntry"""
      #This part is messy, there is no way to directly link the producer and the name of the variable. There are more exception than rules! IF THE DISCRIMINATOR NAME CHANGES YOU HAVE TO CHANHE IT HERE TOO!
      if analyzer.TauProducer.pythonValue()[1:-1] == 'shrinkingConePFTauProducer':
          if analyzer.ExtensionName.pythonValue()[1:-1] == 'Tanc':
              first='ShrinkingConeTanc'
          elif analyzer.ExtensionName.pythonValue()[1:-1] == 'LeadingPion':
              first='PFTauHighEfficiencyLeadingPion'
          elif analyzer.ExtensionName.pythonValue()[1:-1] == "":
              first='PFTauHighEfficiency'
          else:
              #print 'Case not found check the available cases in Validation/RecoTau/python/ValidationUtils.py -- NameVariable'
              first=analyzer.TauProducer.pythonValue()[1:-1]+analyzer.ExtensionName.pythonValue()[1:-1]
      elif analyzer.TauProducer.pythonValue()[1:-1] == 'hpsPFTauProducer':
          first='HPS'
      elif analyzer.TauProducer.pythonValue()[1:-1] == 'hpsTancTaus':
          first='HPSTanc'+analyzer.ExtensionName.value()
      else:
          #print 'Case not found check the available cases in Validation/RecoTau/python/ValidationUtils.py -- NameVariable'
          first=analyzer.TauProducer.pythonValue()[1:-1]+analyzer.ExtensionName.pythonValue()[1:-1]
      
      if discriminatorLabel == None:
          last = 'Matching'
      else:
          if discriminatorLabel.find('DiscriminationBy') != -1:
              last = discriminatorLabel[(discriminatorLabel.find('DiscriminationBy')+len('DiscriminationBy')):]
              if last.find('TaNCfr') != -1:
                  last = last[len('TaNCfr'):]
          else:
              last = discriminatorLabel[(discriminatorLabel.find('DiscriminationAgainst')+len('DiscriminationAgainst')):]+"Rejection"
  
      return first+"ID"+last+"Efficiencies"
function_tokens: def NameVariable ( analyzer , discriminatorLabel = None ) : #This part is messy, there is no way to directly link the producer and the name of the variable. There are more exception than rules! IF THE DISCRIMINATOR NAME CHANGES YOU HAVE TO CHANHE IT HERE TOO! if analyzer . TauProducer . pythonValue ( ) [ 1 : - 1 ] == 'shrinkingConePFTauProducer' : if analyzer . ExtensionName . pythonValue ( ) [ 1 : - 1 ] == 'Tanc' : first = 'ShrinkingConeTanc' elif analyzer . ExtensionName . pythonValue ( ) [ 1 : - 1 ] == 'LeadingPion' : first = 'PFTauHighEfficiencyLeadingPion' elif analyzer . ExtensionName . pythonValue ( ) [ 1 : - 1 ] == "" : first = 'PFTauHighEfficiency' else : #print 'Case not found check the available cases in Validation/RecoTau/python/ValidationUtils.py -- NameVariable' first = analyzer . TauProducer . pythonValue ( ) [ 1 : - 1 ] + analyzer . ExtensionName . pythonValue ( ) [ 1 : - 1 ] elif analyzer . TauProducer . pythonValue ( ) [ 1 : - 1 ] == 'hpsPFTauProducer' : first = 'HPS' elif analyzer . TauProducer . pythonValue ( ) [ 1 : - 1 ] == 'hpsTancTaus' : first = 'HPSTanc' + analyzer . ExtensionName . value ( ) else : #print 'Case not found check the available cases in Validation/RecoTau/python/ValidationUtils.py -- NameVariable' first = analyzer . TauProducer . pythonValue ( ) [ 1 : - 1 ] + analyzer . ExtensionName . pythonValue ( ) [ 1 : - 1 ] if discriminatorLabel == None : last = 'Matching' else : if discriminatorLabel . find ( 'DiscriminationBy' ) != - 1 : last = discriminatorLabel [ ( discriminatorLabel . find ( 'DiscriminationBy' ) + len ( 'DiscriminationBy' ) ) : ] if last . find ( 'TaNCfr' ) != - 1 : last = last [ len ( 'TaNCfr' ) : ] else : last = discriminatorLabel [ ( discriminatorLabel . find ( 'DiscriminationAgainst' ) + len ( 'DiscriminationAgainst' ) ) : ] + "Rejection" return first + "ID" + last + "Efficiencies"