original_docstring: Draws an ATLAS stamp on the plot, with an optional categorization
          label.
  
          It is recommended that you construct the Plot with plot_header = True
          in order to make space for the label.
  
          Args:
              luminosity: The integrated luminosity, in pb^-1
              label:      The label to put after 'ATLAS', None to exclude the 'ATLAS'
                          categorization entirely
              custom_label: Additional text to put on the plot  
              sqrt_s:     The center of mass energy, in TeV
          
docstring: Draws an ATLAS stamp on the plot, with an optional categorization
  label.
  
  It is recommended that you construct the Plot with plot_header = True
  in order to make space for the label.
docstring_tokens: Draws an ATLAS stamp on the plot with an optional categorization label . It is recommended that you construct the Plot with plot_header = True in order to make space for the label .
code: def draw_atlas_label(self,
                           luminosity,
                           atlas_label = None,
                           custom_label = None,
                           #ks_test = None,
                           sqrt_s = 13):
          """Draws an ATLAS stamp on the plot, with an optional categorization
          label.
  
          It is recommended that you construct the Plot with plot_header = True
          in order to make space for the label.
  
          Args:
              luminosity: The integrated luminosity, in pb^-1
              label:      The label to put after 'ATLAS', None to exclude the 'ATLAS'
                          categorization entirely
              custom_label: Additional text to put on the plot  
              sqrt_s:     The center of mass energy, in TeV
          """
          # Change context to the plot pad
          self._plot.cd()
  
          # Create the latex object
          stamp = TLatex()
  
          # Style it
          stamp.SetTextColor(self.PLOT_ATLAS_STAMP_TEXT_COLOR)
          stamp.SetTextFont(self.PLOT_ATLAS_STAMP_TEXT_FONT)
          stamp.SetNDC()
  
          # Draw the luminosity and COM
          stamp.SetTextSize((self.PLOT_ATLAS_STAMP_LUMINOSITY_SIZE_WITH_RATIO
                             if self._ratio_plot
                             else self.PLOT_ATLAS_STAMP_LUMINOSITY_SIZE))
          text = '#sqrt{s} = 13 TeV'+', {0:.1f} fb^{{#minus1}}'.format(luminosity / 1000.0)
          #text = 'L_{int} ='+' {0:.1f} fb^{{#minus1}}, 13 TeV'.format(luminosity / 1000.0)
          stamp.DrawLatex(
              self.PLOT_ATLAS_STAMP_LUMINOSITY_LEFT,
              (self.PLOT_ATLAS_STAMP_LUMINOSITY_TOP_WITH_RATIO
               if self._ratio_plot
               else self.PLOT_ATLAS_STAMP_LUMINOSITY_TOP),
              text
          )
  
  
          # If requested, draw the custom label or the 'ATLAS' label,
          # preferring the former
          #print 'Custom label:',custom_label
          if custom_label is not None:
              # Draw the label
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT,
                  (self.PLOT_ATLAS_STAMP_ADDITIONAL_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_ADDITIONAL_TOP),
                  custom_label
              )
  
          # Draw "ATLAS" label with e.g. "Internal"
          if atlas_label is not None:
              # Draw the "Internal" part 
              stamp.SetTextSize((self.PLOT_ATLAS_STAMP_TITLE_SIZE_WITH_RATIO
                                 if self._ratio_plot
                                 else self.PLOT_ATLAS_STAMP_TITLE_SIZE))
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT + (
                      self.PLOT_ATLAS_STAMP_LABEL_LEFT_ADDITION_WITH_RATIO
                      if self._ratio_plot
                      else self.PLOT_ATLAS_STAMP_LABEL_LEFT_ADDITION
                  ),
                  (self.PLOT_ATLAS_STAMP_ATLAS_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_ATLAS_TOP),
                  atlas_label
              )
  
              # Draw the 'ATLAS' part 
              stamp.SetTextFont(self.PLOT_ATLAS_STAMP_ATLAS_TEXT_FONT)
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT,
                  (self.PLOT_ATLAS_STAMP_ATLAS_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_ATLAS_TOP),
                  'ATLAS'
              )
  
          '''
          # Draw the result of the KS-test, if requested
          if ks_test is not None:
              text = ', KS = {0:.2f}'.format(ks_test)
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT,
                  (self.PLOT_ATLAS_STAMP_SQRT_S_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_SQRT_S_TOP),
                  text
              )
          '''
  
          self._atlas_label_drawn = True
code_tokens: def draw_atlas_label ( self , luminosity , atlas_label = None , custom_label = None , sqrt_s = 13 ) : self . _plot . cd ( ) stamp = TLatex ( ) stamp . SetTextColor ( self . PLOT_ATLAS_STAMP_TEXT_COLOR ) stamp . SetTextFont ( self . PLOT_ATLAS_STAMP_TEXT_FONT ) stamp . SetNDC ( ) stamp . SetTextSize ( ( self . PLOT_ATLAS_STAMP_LUMINOSITY_SIZE_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_LUMINOSITY_SIZE ) ) text = '#sqrt{s} = 13 TeV' + ', {0:.1f} fb^{{#minus1}}' . format ( luminosity / 1000.0 ) stamp . DrawLatex ( self . PLOT_ATLAS_STAMP_LUMINOSITY_LEFT , ( self . PLOT_ATLAS_STAMP_LUMINOSITY_TOP_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_LUMINOSITY_TOP ) , text ) if custom_label is not None : stamp . DrawLatex ( self . PLOT_ATLAS_STAMP_LEFT , ( self . PLOT_ATLAS_STAMP_ADDITIONAL_TOP_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_ADDITIONAL_TOP ) , custom_label ) if atlas_label is not None : stamp . SetTextSize ( ( self . PLOT_ATLAS_STAMP_TITLE_SIZE_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_TITLE_SIZE ) ) stamp . DrawLatex ( self . PLOT_ATLAS_STAMP_LEFT + ( self . PLOT_ATLAS_STAMP_LABEL_LEFT_ADDITION_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_LABEL_LEFT_ADDITION ) , ( self . PLOT_ATLAS_STAMP_ATLAS_TOP_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_ATLAS_TOP ) , atlas_label ) stamp . SetTextFont ( self . PLOT_ATLAS_STAMP_ATLAS_TEXT_FONT ) stamp . DrawLatex ( self . PLOT_ATLAS_STAMP_LEFT , ( self . PLOT_ATLAS_STAMP_ATLAS_TOP_WITH_RATIO if self . _ratio_plot else self . PLOT_ATLAS_STAMP_ATLAS_TOP ) , 'ATLAS' ) '''
          # Draw the result of the KS-test, if requested
          if ks_test is not None:
              text = ', KS = {0:.2f}'.format(ks_test)
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT,
                  (self.PLOT_ATLAS_STAMP_SQRT_S_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_SQRT_S_TOP),
                  text
              )
          ''' self . _atlas_label_drawn = True
short_docstring: Draws an ATLAS stamp on the plot, with an optional categorization
  label.
short_docstring_tokens: Draws an ATLAS stamp on the plot with an optional categorization label .
comment: #ks_test = None,$SEP$"""Draws an ATLAS stamp on the plot, with an optional categorization
          label.
  
          It is recommended that you construct the Plot with plot_header = True
          in order to make space for the label.
  
          Args:
              luminosity: The integrated luminosity, in pb^-1
              label:      The label to put after 'ATLAS', None to exclude the 'ATLAS'
                          categorization entirely
              custom_label: Additional text to put on the plot  
              sqrt_s:     The center of mass energy, in TeV
          """$SEP$# Change context to the plot pad$SEP$# Create the latex object$SEP$# Style it$SEP$# Draw the luminosity and COM$SEP$#text = 'L_{int} ='+' {0:.1f} fb^{{#minus1}}, 13 TeV'.format(luminosity / 1000.0)$SEP$# If requested, draw the custom label or the 'ATLAS' label,$SEP$# preferring the former$SEP$#print 'Custom label:',custom_label$SEP$# Draw the label$SEP$# Draw "ATLAS" label with e.g. "Internal"$SEP$# Draw the "Internal" part $SEP$# Draw the 'ATLAS' part $SEP$'''
          # Draw the result of the KS-test, if requested
          if ks_test is not None:
              text = ', KS = {0:.2f}'.format(ks_test)
              stamp.DrawLatex(
                  self.PLOT_ATLAS_STAMP_LEFT,
                  (self.PLOT_ATLAS_STAMP_SQRT_S_TOP_WITH_RATIO
                   if self._ratio_plot
                   else self.PLOT_ATLAS_STAMP_SQRT_S_TOP),
                  text
              )
          '''