CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
genericValidation.ValidationWithPlotsSummaryBase.SummaryItem Class Reference
Inheritance diagram for genericValidation.ValidationWithPlotsSummaryBase.SummaryItem:

Public Member Functions

def __init__ (self, name, values, format=None, latexname=None, latexformat=None)
 
def format (self, value, latex=False)
 
def name (self, latex=False)
 
def value (self, i, latex)
 
def values (self, latex=False)
 

Private Attributes

 __format
 
 __latexformat
 
 __latexname
 
 __name
 
 __values
 

Detailed Description

Definition at line 638 of file genericValidation.py.

Constructor & Destructor Documentation

◆ __init__()

def genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__init__ (   self,
  name,
  values,
  format = None,
  latexname = None,
  latexformat = None 
)
name:        name of the summary item, goes on top of the column
values:      value for each alignment (in order of rows)
format:      python format string (default: {:.3g}, meaning up to 3 significant digits)
latexname:   name in latex form, e.g. if name=sigma you might want latexname=\sigma (default: name)
latexformat: format for latex (default: format)

Definition at line 639 of file genericValidation.py.

639  def __init__(self, name, values, format=None, latexname=None, latexformat=None):
640  """
641  name: name of the summary item, goes on top of the column
642  values: value for each alignment (in order of rows)
643  format: python format string (default: {:.3g}, meaning up to 3 significant digits)
644  latexname: name in latex form, e.g. if name=sigma you might want latexname=\sigma (default: name)
645  latexformat: format for latex (default: format)
646  """
647  if format is None: format = "{:.3g}"
648  if latexname is None: latexname = name
649  if latexformat is None: latexformat = format
650 
651  self.__name = name
652  self.__values = values
653  self.__format = format
654  self.__latexname = latexname
655  self.__latexformat = latexformat
656 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ format()

def genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.format (   self,
  value,
  latex = False 
)

Definition at line 663 of file genericValidation.py.

References genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__format, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__latexformat, and dqmMemoryStats.float.

Referenced by genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.values().

663  def format(self, value, latex=False):
664  if latex:
665  fmt = self.__latexformat
666  else:
667  fmt = self.__format
668  if re.match(".*[{][^}]*[fg][}].*", fmt):
669  value = float(value)
670  return fmt.format(value)
671 

◆ name()

def genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name (   self,
  latex = False 
)

Definition at line 657 of file genericValidation.py.

References genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__latexname, dataset.Dataset.__name, and genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__name.

Referenced by config.CFG.__str__(), validation.Sample.digest(), and VIDSelectorBase.VIDSelectorBase.initialize().

657  def name(self, latex=False):
658  if latex:
659  return self.__latexname
660  else:
661  return self.__name
662 

◆ value()

def genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.value (   self,
  i,
  latex 
)

Definition at line 676 of file genericValidation.py.

References EcalPulseCovariancesGPU::Product.values, EcalPulseShapesGPU::Product.values, HcalMahiPulseOffsetsGPU::Product.values, EcalIntercalibConstantsGPU::Product.values, EcalLaserAPDPNRatiosRefGPU::Product.values, HcalGainsGPU::Product.values, HcalPedestalsGPU::Product.values, HcalQIETypesGPU::Product.values, EcalLaserAlphasGPU::Product.values, HcalRespCorrsGPU::Product.values, EcalTimeCalibConstantsGPU::Product.values, HcalConvertedPedestalsGPU::Product.values, HGCalHistoSeedingImpl::Bin.values, HcalConvertedPedestalWidthsGPU::Product.values, AlpgenParTokens.values, BlobComplexData.values, UETable.values, SiStripNoises::ratioData.values, FWTriggerTableView::Column.values, edmtest::ThinningDSVTestAnalyzer::DSContent.values, MagFieldConfig.values, nanoaod::MergeableCounterTable::VectorColumn< T >.values, LeaderLookup.values, SiStripCorrelateNoise::Data.values, PhysicsTools::TreeReader.values, svgfig.SVG.values(), PhysicsTools::VarProcessor::ValueIterator.values, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.values(), and Config.TestMakePSet.values.

Referenced by Types.int32.__nonzero__(), Types.uint32.__nonzero__(), Types.int64.__nonzero__(), Types.uint64.__nonzero__(), Types.double.__nonzero__(), Types.bool.__nonzero__(), Types.string.__nonzero__(), average.Average.average(), Types.string.configValue(), Types.FileInPath.configValue(), Mixins.UsingBlock.dumpPython(), Mixins.UsingBlock.insertInto(), Types.int32.insertInto(), Types.uint32.insertInto(), Types.int64.insertInto(), Types.uint64.insertInto(), Types.double.insertInto(), Types.bool.insertInto(), Types.string.insertInto(), Types.FileInPath.insertInto(), Types.vint32.insertInto(), Types.vuint32.insertInto(), Types.vint64.insertInto(), Types.vuint64.insertInto(), Types.vdouble.insertInto(), Types.vbool.insertInto(), and Types.vstring.insertInto().

676  def value(self, i, latex):
677  return self.values(latex)[i]
678 
679  @abstractmethod

◆ values()

def genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.values (   self,
  latex = False 
)

Member Data Documentation

◆ __format

genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__format
private

◆ __latexformat

genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__latexformat
private

◆ __latexname

genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__latexname
private

◆ __name

genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__name
private

◆ __values

genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.__values
private