CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
average.Average Class Reference
Inheritance diagram for average.Average:

Public Member Functions

def __add__ (self, other)
 
def __iadd__ (self, other)
 
def __init__ (self, name)
 
def __str__ (self)
 
def add (self, value, weight=1.0)
 
def average (self)
 
def uncertainty (self)
 
def value (self)
 
def variance (self)
 
def write (self, dirname)
 

Public Attributes

 name
 
 sumw
 
 sumwx
 
 sumwx2
 

Detailed Description

Definition at line 8 of file average.py.

Constructor & Destructor Documentation

◆ __init__()

def average.Average.__init__ (   self,
  name 
)

Definition at line 10 of file average.py.

10  def __init__(self, name):
11  self.name = name
12  self.sumw = 0
13  self.sumwx = 0
14  self.sumwx2 = 0
15 

Member Function Documentation

◆ __add__()

def average.Average.__add__ (   self,
  other 
)
Add two averages, merging the two samples.

Definition at line 54 of file average.py.

54  def __add__(self, other):
55  '''Add two averages, merging the two samples.'''
56  self.sumw += other.sumw
57  self.sumwx += other.sumwx
58  self.sumwx2 += other.sumwx2
59  return self
60 

References average.Average.sumw, average.Average.sumwx, and average.Average.sumwx2.

Referenced by counter.Counter.__iadd__(), and average.Average.__iadd__().

◆ __iadd__()

def average.Average.__iadd__ (   self,
  other 
)
Add two averages.

Definition at line 61 of file average.py.

61  def __iadd__(self, other):
62  '''Add two averages.'''
63  return self.__add__(other)
64 

References rltinfo.MyInteger.__add__(), SequenceTypes._Sequenceable.__add__(), GlobalTag.GlobalTag.__add__(), average.Average.__add__(), SequenceTypes._SequenceCollection.__add__(), LumiList.LumiList.__add__(), and Mixins._ValidatingListBase.__add__().

◆ __str__()

def average.Average.__str__ (   self)

Definition at line 75 of file average.py.

75  def __str__(self):
76  ave, unc = self.average()
77  tmp = None
78  if ave is not None:
79  tmp = 'Average {name:<15}: {average: 8.4f} +- {unc:8.4f}'
80  # tmp = 'Average {name:<15}: {average: 8.4f}'
81  tmp = tmp.format( name = self.name,
82  average = ave,
83  unc = unc
84  )
85  else:
86  tmp = 'Average {name:<15}: undefined (call Average.add)'\
87  .format( name = self.name)
88  return tmp
89 
90 
91 

References TSinglePedEntry.average(), Cluster1DCleaner< T >.average(), average.Average.average(), ElectronMVAID.ElectronMVAID.name, DigiComparisonTask.name, TestTask.name, TPComparisonTask.name, HcalOfflineHarvesting.name, HcalOnlineHarvesting.name, HFRaddamTask.name, LaserTask.name, NoCQTask.name, PedestalTask.name, QIE10Task.name, QIE11Task.name, RecHitTask.name, UMNioTask.name, ZDCTask.name, AlignableObjectId::entry.name, RawTask.name, average.Average.name, TPTask.name, DigiTask.name, LEDTask.name, cond::persistency::TAG::NAME.name, TmModule.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, DQMRivetClient::NormOption.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cms::dd::NameValuePair< T >.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::TAG::MODIFICATION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, ParameterSet.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, PixelDCSObject< T >::Item.name, cms::DDSpecPar.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, DQMRivetClient::LumiOption.name, cond::persistency::GTProxyData.name, Barrel.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, cms::DDAlgoArguments.name, SingleObjectCondition.name, cond::TimeTypeSpecs.name, core.autovars.NTupleObjectType.name, perftools::EdmEventSize::BranchRecord.name, MyWatcher.name, edm::PathSummary.name, EcalLogicID.name, lumi::TriggerInfo.name, alignment.Alignment.name, PixelEndcapLinkMaker::Item.name, XMLProcessor::_loaderBaseConfig.name, MEtoEDM< T >::MEtoEDMObject.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, Supermodule.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cond::Tag_t.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, FastHFShowerLibrary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, magneticfield::BaseVolumeHandle.name, emtf::Node.name, cms::DDParsingContext::CompositeMaterial.name, h4DSegm.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.name, DQMGenericClient::CDOption.name, PhysicsTools::Calibration::Variable.name, cond::persistency::PAYLOAD::DATA.name, cond::TagInfo_t.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, TrackerSectorStruct.name, cond::persistency::PAYLOAD::VERSION.name, MuonGeometrySanityCheckPoint.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, FCDTask.name, DQMGenericClient::NoFlowOption.name, CounterChecker.name, Mapper::definition< ScannerT >.name, EDMtoMEConverter.name, classes.MonitorData.name, HistogramManager.name, classes.OutputData.name, Crystal.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, h2DSegm.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, options.HLTProcessOptions.name, DQMNet::WaitObject.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, AlpgenParameterName.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, Capsule.name, core.autovars.NTupleObject.name, Ceramic.name, SiStripMonitorDigi.name, BulkSilicon.name, config.Service.name, APD.name, nanoaod::FlatTable::Column.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, cond::payloadInspector::TagReference.name, BPHRecoBuilder::BPHCompSource.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, InnerLayerVolume.name, personalPlayback.FrameworkJob.name, Grid.name, Grille.name, BackPipe.name, plotscripts.SawTeethFunction.name, PatchPanel.name, BackCoolTank.name, DryAirTube.name, crabFunctions.CrabTask.name, MBCoolTube.name, MBManif.name, cscdqm::ParHistoDef.name, hTMaxCell.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, and BeautifulSoup.SoupStrainer.name.

◆ add()

def average.Average.add (   self,
  value,
  weight = 1.0 
)
Add a new sample to the average.

Definition at line 16 of file average.py.

16  def add(self, value, weight=1.0):
17  """
18  Add a new sample to the average.
19  """
20  value = float(value) # avoids surprising results with integers
21  weight = float(weight)
22  self.sumw += weight
23  self.sumwx += weight * value
24  self.sumwx2 += weight * value * value
25 

References dqmMemoryStats.float, average.Average.sumw, average.Average.sumwx, and average.Average.sumwx2.

Referenced by counter.Counter.register().

◆ average()

def average.Average.average (   self)
Returns: mean value, uncertainty on mean value.

Definition at line 48 of file average.py.

48  def average( self ):
49  """
50  Returns: mean value, uncertainty on mean value.
51  """
52  return self.value(), self.uncertainty()
53 

References SimpleJetCorrectionUncertainty.uncertainty(), average.Average.uncertainty(), CountBits< INDEX >.value, timeout.TimedOutExc.value, TmCcu.value, fftluttypes::EtaFlatteningFactors.value, edmtest::ESTestDataA.value(), GlobalTag.GlobalTagBuilderException.value, python.readProv.filereader.Module.value, CountBits< 0 >.value, funct::Numerical< n >.value, IncompleteGammaComplement.value(), TmModule.value, edm::MergeableCounter.value, TmApvPair.value, HGCalTriggerClusterIdentificationBase.value(), funct::Parametric< F >.value, pat::JetSelection.value, fftluttypes::PileupRhoCalibration.value, TrivialError.value(), CSCCLCTDataWord.value(), BinningPointByMap.value(), TestCUDAAnalyzerGPUKernel.value(), funct::Parametric< Numerical< n > >.value, CalibCoeff.value(), reco::parser::ExpressionNumber.value(), cms::dd::NameValuePair< T >.value, HcalRecAlgosPrivate::IsClassType< T >.value, fftluttypes::PileupRhoEtaDependence.value, edmtest::ESTestDataB.value(), dataset.IntegrityCheckError.value, RPCObImon::I_Item.value, RPCObGasHum::Item.value, SortObject.value, BinomialProbability.value(), reco::parser::CutBinaryOperator< Op >.value(), reco::parser::ExpressionBinaryOperator< Op >.value(), reco::parser::ExpressionQuaterOperator< Op >.value(), reco::parser::ExpressionUnaryOperator< Op >.value(), reco::egamma::mask< L1 >.value, CSCPairConstraint.value(), reco::parser::ExpressionCondition.value(), EcalWeight.value(), ESWeight.value(), cms::DDSpecPar.value(), AlphaT.value(), funct::Parametric< FractionStruct< n, m > >.value, ChiSquared.value(), reco::parser::ExpressionBase.value(), Measurement1DFloat.value(), nanoaod::MergeableCounterTable::SingleColumn< T >.value, CSCDBGasGainCorrection.value(), fftluttypes::LUT0.value, Geom::Theta< T >.value(), trklet::FPGAWord.value(), reco::parser::matches_another_integral_type< T >.value, reco::egamma::mask< 0 >.value, Measurement1D.value(), condex::Efficiency.value(), cms::dd::ValuePair< T, U >.value, entry< T >.value, dbread.value, CSCDBChipSpeedCorrection.value(), pat::LookupTableRecord.value(), DDString.value(), edm::math_private::ieee_float_shape_type.value, PixelDCSObject< T >::Item.value, fftluttypes::LUT1.value, edmtest::ESTestDataC.value(), average.Average.value(), L1GtBoardTypeStringToEnum.value, edm::workerimpl::has_stream_functions< T >.value, magneticfield::UniformMagneticFieldESProducer.value, edm::ProductRegistryHelper::has_donotrecordparents< T >.value, l1t::L1GtBoardTypeStringToEnum.value, Entry< T >.value, edm::FileFormatVersion.value(), DDConstant.value(), edm::detail::has_typedef_value_type< T >.value, fftluttypes::LUT2.value, TauJetCorrector::ParametrizationTauJet.value(), edm::key_traits< K >.value, DDMapper< KeyType, ValueType >.value(), edm::math_private::ieee_double_shape_type.value, HcalRecAlgosPrivate::HasRawEnergySetterHelper< T >.value, Geom::OnePiRange< T >.value(), L1MonitorDigi.value(), edm::workerimpl::has_stream_functions< edm::global::EDProducerBase >.value, gen::Param.value, RPCObVmon::V_Item.value, condex::ParametricEfficiencyInPt.value(), cscdqm::TempMeasType.value, fftcorrtypes::BasicJet.value, JetPartonNamespace::ParametrizationJetParton.value(), L1TUtmCutValue.value, funct::Parametric< AbsStruct< A > >.value, EcalUncalibRecHitRatioMethodAlgo< C >::Ratio.value, funct::Parametric< SgnStruct< A > >.value, fftluttypes::LUT3.value, edm::eventsetup::SimpleStringTag.value(), edmtest::ESTestDataD.value(), funct::Parametric< ExpStruct< A > >.value, OpticalAlignParam.value(), TmPsu.value, HGCalTriggerClusterIdentificationBDT.value(), funct::Parametric< LogStruct< A > >.value, HcalRecAlgosPrivate::HasRawEnergySetter< T, is_class_type >.value, select_size_t_constant< u, ull >.value, edm::workerimpl::has_stream_functions< edm::global::EDFilterBase >.value, funct::Parametric< SinStruct< A > >.value, edm::StreamID.value(), fftcorrtypes::GenJet.value, funct::Parametric< CosStruct< A > >.value, edm::ESProxyIndex.value(), funct::Parametric< TanStruct< A > >.value, EcalUncalibRecHitRatioMethodAlgo< C >::Tmax.value, EcalSrFlag.value(), edm::LuminosityBlockID.value(), fftluttypes::LUT4.value, edm::RunIndex.value(), funct::Parametric< MinusStruct< A > >.value, edm::Timestamp.value(), DDStrVector.value(), DDVector.value(), cms::DDAlgoArguments.value(), edm::eventsetup::heterocontainer::HCTypeTag.value(), TtEvent::HypoClassKeyStringToEnum.value, HcalRecAlgosPrivate::HasRawEnergySetter< T, true >.value, edm::math_private::ieee_long_double_shape_type.value, edm::workerimpl::has_stream_functions< edm::global::EDAnalyzerBase >.value, edm::LuminosityBlockIndex.value(), edm::key_traits< std::pair< U, V > >.value, edm::one::WantsGlobalRunTransitions< VArgs >.value, FWConfiguration.value(), fftcorrtypes::CaloJet.value, L1GctHfBitCountsLut.value(), fftluttypes::LUT5.value, edmtest::ESTestDataE.value(), FWGenericParameter< T >.value(), funct::DefaultVariable.value, funct::Parametric< DefaultVariable >.value, stats_t< T >.value, L1GctJetEtCalibrationLut.value(), edm::workerimpl::has_stream_functions< edm::limited::EDProducerBase >.value, funct::X.value, funct::Parametric< X >.value, CSCPairResidualsConstraint.value(), l1t::L1TGtObjectStringToEnum.value, VFATFrameCollection::Iterator.value, FWProxyBuilderConfiguration.value(), funct::Parametric< SumStruct< A, B > >.value, fftcorrtypes::PFJet.value, funct::Y.value, funct::Parametric< Y >.value, Entry.value(), L1GtObjectStringToEnum.value, reco::parser::ExpressionVar.value(), L1GctUnsignedInt< nBits >.value(), RPCObStatus::S_Item.value, funct::Parametric< ProductStruct< A, B > >.value, edm::has_fillView< edm::SortedCollection< T, SORT > >.value, funct::Z.value, funct::Parametric< Z >.value, fftluttypes::LUT6.value, npstat::Private::AbsHelper< T, Unsigned >.value(), funct::Parametric< RatioStruct< A, B > >.value, edm::one::WantsGlobalLuminosityBlockTransitions< VArgs >.value, HcalUHTRData::const_iterator.value(), funct::Parametric< PowerStruct< A, B > >.value, edm::detail::has_typedef_member_type< T >.value, pos::PixelDACScanRange.value(), edm::workerimpl::has_stream_functions< edm::limited::EDFilterBase >.value, condex::ParametricEfficiencyInEta.value(), fftcorrtypes::TrackJet.value, cms::DDFilter.value(), edm::has_setPtr< edm::SortedCollection< T, SORT > >.value, fftluttypes::LUT7.value, edmtest::ESTestDataF.value(), PhysicsTools::TreeReader::Bool.value, L1GctTwosComplement< nBits >.value(), edm::workerimpl::has_stream_functions< edm::limited::EDAnalyzerBase >.value, fftcorrtypes::JPTJet.value, FWPSetTableManager::PSetData.value, L1GctHtMissLut.value(), edm::key_traits< std::string >.value, muon::SelectionTypeStringToEnum.value, fftluttypes::LUT8.value, npstat::Private::AbsHelper< T, 1 >.value(), edm::eventsetup::produce::ProductHolder< T1, TArgs >.value, edm::one::WantsSerialGlobalRunTransitions< VArgs >.value, cms::detail::is_derived_or_same< BASE, DERIVED >.value, calogeometryDBEPimpl::HasAlignmentRecord< T >.value, reco::parser::ExpressionLazyVar.value(), edm::workerimpl::has_stream_functions< edm::stream::EDProducerAdaptorBase >.value, PhysicsTools::Variable::Value.value, fftcorrtypes::PFCHS0.value, cscdqm::HVVMeasType.value, PhysicsTools::Calibration::Histogram< Value_t, Axis_t >.value(), fftluttypes::LUT9.value, edmtest::ESTestDataG.value(), edm::ESTokenIndex.value(), funct::tmpl::abs< n, positive >.value, L1GtPsbQuadStringToEnum.value, lhef::LHERunInfo::XSec.value(), RPCObTemp::T_Item.value, edm::detail::has_typedef_member_type< std::vector< edm::Ptr< T > > >.value, MuonResidualsTwoBin.value(), edm::one::WantsSerialGlobalLuminosityBlockTransitions< VArgs >.value, PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >.value(), edm::workerimpl::has_stream_functions< edm::stream::EDFilterAdaptorBase >.value, cmsutils::_bqueue_item< T >.value, L1GctLut< NAddressBits, NDataBits >.value(), fftcorrtypes::PFCHS1.value, SimpleSAXParser::Attribute.value, HcalRecAlgosPrivate::HasRawEnergyGetterHelper< T >.value, fftluttypes::LUT10.value, funct::tmpl::abs< n, false >.value, L1GctHfEtSumsLut.value(), Geom::Phi< T1, Range >.value(), edm::soa::ColumnFillers< Args >.value(), edm::workerimpl::has_stream_functions< edm::stream::EDAnalyzerAdaptorBase >.value, edm::fillDetails::has_fillDescriptions_function< T >.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::ValueItem.value, Mapper::definition< ScannerT >.value, fftcorrtypes::PFCHS2.value, HcalRecAlgosPrivate::HasRawEnergyGetter< T, is_class_type >.value, L1GctInternHFData.value(), edmtest::ESTestDataH.value(), fftluttypes::LUT11.value, edm::eventsetup::produce::size< T >.value, edm::detail::has_typedef_member_type< std::vector< std::unique_ptr< T, Deleter > > >.value, dqm::impl::Access.value, HcalRecAlgosPrivate::HasRawEnergyGetter< T, true >.value, edm::eventsetup::produce::size< Null >.value, fftluttypes::LUT12.value, fftcorrtypes::BasicJetSys.value, l1t::GtConditionTypeStringToEnum.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::KeyItem.value, dqm::impl::AccessMut.value, jsoncollector::IntJ.value(), edmtest::ESTestDataI.value(), fftluttypes::LUT13.value, fftcorrtypes::GenJetSys.value, edm::TrieNode< T >.value(), L1GctInternEtSum.value(), edm::eventsetup::produce::ProductHolder< T1 >.value, fftluttypes::LUT14.value, edm::ESRecordIndex.value(), Mixins._SimpleParameterTypeBase.value(), fftcorrtypes::CaloJetSys.value, PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >.value(), edmtest::ESTestDataJ.value(), fftluttypes::LUT15.value, fftcorrtypes::PFJetSys.value, edm::detail::has_mergeProduct_function< T >.value, Types._OptionalParameter.value(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.value, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.value(), edm::fillDetails::has_prevalidate_function< T >.value, l1t::GtConditionCategoryStringToEnum.value, muon::SelectorStringToEnum.value, fftcorrtypes::TrackJetSys.value, Measurement.value(), edmtest::ESTestDataK.value(), fftcorrtypes::JPTJetSys.value, HcalRecAlgosPrivate::HasAuxEnergySetterHelper< T >.value, L1GtConditionTypeStringToEnum.value, fftcorrtypes::PFCHS0Sys.value, edm::has_fillView< T >.value, GenericMVAComputer::TaggingVariableIterator< Iter_t >.value, HcalRecAlgosPrivate::HasAuxEnergySetter< T, is_class_type >.value, edmtest::ESTestDataZ.value(), fftcorrtypes::PFCHS1Sys.value, edm::has_fillView< std::vector< T, A > >.value, HcalRecAlgosPrivate::HasAuxEnergySetter< T, true >.value, fftcorrtypes::PFCHS2Sys.value, edm::has_fillView< std::vector< bool, A > >.value, cscdqm::LVIMeasType.value, edm::WantsGlobalRunTransitions< VArgs >.value, jsoncollector::DoubleJ.value(), edm::eventsetup::produce::find_index< T, FindT >.value, edm::has_fillView< std::list< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod0.value, edm::WantsGlobalLuminosityBlockTransitions< VArgs >.value, edm::has_fillView< std::deque< T, A > >.value, fftcorrtypes::Gen0.value, L1GtConditionCategoryStringToEnum.value, edm::detail::has_isProductEqual_function< T >.value, edm::has_fillView< std::set< T, A > >.value, fftcorrtypes::Gen1.value, edm::WantsStreamRunTransitions< VArgs >.value, funct::SimplSumOrd< F, G, H >::prod1.value, MuonResidualsFitter.value(), fftcorrtypes::Gen2.value, edm::WantsStreamLuminosityBlockTransitions< VArgs >.value, HcalRecAlgosPrivate::HasAuxEnergyGetterHelper< T >.value, fftcorrtypes::PF0.value, cmsBatch.CmsBatchException.value, funct::SimplSumOrd< F, G, H >::prod2.value, reco::IsoDeposit::const_iterator.value(), edm::HasAbilityToProduceInRuns< VArgs >.value, HcalRecAlgosPrivate::HasAuxEnergyGetter< T, is_class_type >.value, fftcorrtypes::PF1.value, edm::has_setPtr< T >.value, jsoncollector::StringJ.value(), HcalRecAlgosPrivate::HasAuxEnergyGetter< T, true >.value, fftcorrtypes::PF2.value, edm::HasAbilityToProduceInBeginRuns< VArgs >.value, edm::has_setPtr< std::vector< T, A > >.value, fftcorrtypes::PF3.value, edm::HasAbilityToProduceInEndRuns< VArgs >.value, edm::has_setPtr< std::vector< bool, A > >.value, funct::RatioP1< F, G, H >::prod0.value, funct::Product< ProductStruct< F, G >, H >::prod0.value, edm::HasAbilityToProduceInLumis< VArgs >.value, fftcorrtypes::PF4.value, edm::JobReport::AtomicLongLong.value(), edm::has_setPtr< std::list< T, A > >.value, fftcorrtypes::Calo0.value, edm::detail::has_swap_function< T >.value, edm::has_setPtr< std::deque< T, A > >.value, edm::HasAbilityToProduceInBeginLumis< VArgs >.value, funct::RatioP1< F, G, H >::prod1.value, fftcorrtypes::Calo1.value, funct::Product< ProductStruct< F, G >, H >::prod1.value, edm::has_setPtr< std::set< T, A > >.value, edm::HasAbilityToProduceInEndLumis< VArgs >.value, fftcorrtypes::Calo2.value, HcalRecAlgosPrivate::HasAuxRecHitGetterHelper< T >.value, funct::RatioP1< F, G, H >::prod2.value, fftcorrtypes::Calo3.value, funct::Product< ProductStruct< F, G >, H >::prod2.value, HcalRecAlgosPrivate::HasAuxRecHitGetter< T, is_class_type >.value, fftcorrtypes::Calo4.value, HcalRecAlgosPrivate::HasAuxRecHitGetter< T, true >.value, npstat::ArrayND< Numeric, StackLen, StackDim >.value(), edm::has_fillView< RefVector< C, T, F > >.value, fftcorrtypes::Gen0Sys.value, edm::has_fillView< PtrVector< T > >.value, fftcorrtypes::Gen1Sys.value, edm::has_fillView< RefToBaseVector< T > >.value, fftcorrtypes::Gen2Sys.value, fftcorrtypes::PF0Sys.value, fftcorrtypes::PF1Sys.value, jsoncollector::HistoJ< T >.value(), fftcorrtypes::PF2Sys.value, fftcorrtypes::PF3Sys.value, funct::RatioP2< F, G, H >::prod0.value, fftcorrtypes::PF4Sys.value, fftcorrtypes::PF5Sys.value, funct::RatioP2< F, G, H >::prod1.value, fftcorrtypes::PF6Sys.value, fftcorrtypes::PF7Sys.value, funct::RatioP2< F, G, H >::prod2.value, fftcorrtypes::PF8Sys.value, fftcorrtypes::PF9Sys.value, fftcorrtypes::Calo0Sys.value, fftcorrtypes::Calo1Sys.value, fftcorrtypes::Calo2Sys.value, fftcorrtypes::Calo3Sys.value, edm::detail::has_postinsert< T >.value, fftcorrtypes::Calo4Sys.value, fftcorrtypes::Calo5Sys.value, funct::RatioSimpl< A, B, C >::ratio1.value, fftcorrtypes::Calo6Sys.value, edm::has_fillView< AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > >.value, funct::RatioSimpl< A, B, C >::ratio2.value, fftcorrtypes::Calo7Sys.value, fftcorrtypes::Calo8Sys.value, fftcorrtypes::Calo9Sys.value, fftcorrtypes::CHS0Sys.value, edm::Worker::TransitionIDValueBase.value(), fftcorrtypes::CHS1Sys.value, edm::Worker::TransitionIDValue< T >.value(), fftcorrtypes::CHS2Sys.value, fftcorrtypes::CHS3Sys.value, fftcorrtypes::CHS4Sys.value, fftcorrtypes::CHS5Sys.value, fftcorrtypes::CHS6Sys.value, fftcorrtypes::CHS7Sys.value, fftcorrtypes::CHS8Sys.value, fftcorrtypes::CHS9Sys.value, edm::has_fillView< edm::DetSetVector< T > >.value, edm::has_fillView< edm::OwnArray< T, M, P > >.value, edm::has_setPtr< edm::OwnArray< T, M, P > >.value, edm::has_fillView< edm::OwnVector< T, P > >.value, edm::has_setPtr< edm::OwnVector< T, P > >.value, Mixins._ValidatingParameterListBase.value(), Types.InputTag.value(), genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.value(), Types.ESInputTag.value(), Types.SecSource.value(), and Types.PSet.value().

Referenced by average.Average.__str__().

◆ uncertainty()

def average.Average.uncertainty (   self)
Uncertainty on the mean value

Definition at line 39 of file average.py.

39  def uncertainty(self):
40  """
41  Uncertainty on the mean value
42  """
43  if self.sumw:
44  return math.sqrt( self.variance() ) / math.sqrt( self.sumw )
45  else:
46  return None
47 

References average.Average.sumw, Accumulator.variance(), average.Average.variance(), FFTJetCorrectorTransient.variance(), LinearFitErrorsIn2Coord.variance(), and AutoCorrMat.variance.

Referenced by average.Average.average().

◆ value()

def average.Average.value (   self)
Mean value

Definition at line 30 of file average.py.

30  def value(self):
31  """
32  Mean value
33  """
34  if self.sumw:
35  return self.sumwx / self.sumw
36  else:
37  return None
38 

References average.Average.sumw, and average.Average.sumwx.

Referenced by average.Average.average().

◆ variance()

def average.Average.variance (   self)

Definition at line 26 of file average.py.

26  def variance(self):
27  return abs( self.sumwx2 / self.sumw - \
28  self.sumwx * self.sumwx / (self.sumw*self.sumw) )
29 

References funct.abs(), average.Average.sumw, average.Average.sumwx, and average.Average.sumwx2.

Referenced by average.Average.uncertainty().

◆ write()

def average.Average.write (   self,
  dirname 
)
Dump the average to a pickle file and to a text file in dirname.

Definition at line 65 of file average.py.

65  def write(self, dirname):
66  '''Dump the average to a pickle file and to a text file in dirname.'''
67  pckfname = '{d}/{f}.pck'.format(d=dirname, f=self.name)
68  pckfile = open( pckfname, 'w' )
69  pickle.dump(self, pckfile)
70  txtfile = open( pckfname.replace('.pck', '.txt'), 'w')
71  txtfile.write( str(self) )
72  txtfile.write( '\n' )
73  txtfile.close()
74 

References ElectronMVAID.ElectronMVAID.name, DigiComparisonTask.name, TestTask.name, TPComparisonTask.name, HcalOfflineHarvesting.name, HFRaddamTask.name, LaserTask.name, HcalOnlineHarvesting.name, PedestalTask.name, QIE10Task.name, NoCQTask.name, QIE11Task.name, RecHitTask.name, UMNioTask.name, ZDCTask.name, AlignableObjectId::entry.name, RawTask.name, average.Average.name, TPTask.name, DigiTask.name, LEDTask.name, cond::persistency::TAG::NAME.name, cond::persistency::GTEditorData.name, TmModule.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, DQMRivetClient::NormOption.name, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cms::dd::NameValuePair< T >.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::TAG::MODIFICATION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, ParameterSet.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, PixelDCSObject< T >::Item.name, cms::DDSpecPar.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, analyzer.Analyzer.name, ParSet.name, MagCylinder.name, DQMRivetClient::LumiOption.name, cond::persistency::GTProxyData.name, Barrel.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, cms::DDAlgoArguments.name, SingleObjectCondition.name, cond::TimeTypeSpecs.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, MyWatcher.name, edm::PathSummary.name, EcalLogicID.name, lumi::TriggerInfo.name, alignment.Alignment.name, PixelEndcapLinkMaker::Item.name, XMLProcessor::_loaderBaseConfig.name, MEtoEDM< T >::MEtoEDMObject.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, Supermodule.name, TreeCrawler.Package.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, genericValidation.GenericValidation.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cond::Tag_t.name, FastHFShowerLibrary.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, emtf::Node.name, h4DSegm.name, cms::DDParsingContext::CompositeMaterial.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, cond::persistency::PAYLOAD::HASH.name, looper.Looper.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, DQMGenericClient::CDOption.name, PhysicsTools::Calibration::Variable.name, cond::persistency::PAYLOAD::DATA.name, cond::TagInfo_t.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, TrackerSectorStruct.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, DQMGenericClient::NoFlowOption.name, FCDTask.name, CounterChecker.name, Mapper::definition< ScannerT >.name, EDMtoMEConverter.name, classes.MonitorData.name, HistogramManager.name, classes.OutputData.name, Crystal.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, h2DSegm.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, options.HLTProcessOptions.name, DQMNet::WaitObject.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, AlpgenParameterName.name, geometry.Structure.name, config.Analyzer.name, core.autovars.NTupleSubObject.name, Capsule.name, core.autovars.NTupleObject.name, Ceramic.name, SiStripMonitorDigi.name, BulkSilicon.name, config.Service.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, cond::payloadInspector::TagReference.name, BPHRecoBuilder::BPHCompSource.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, InnerLayerVolume.name, personalPlayback.FrameworkJob.name, Grid.name, Grille.name, BackPipe.name, plotscripts.SawTeethFunction.name, PatchPanel.name, BackCoolTank.name, DryAirTube.name, crabFunctions.CrabTask.name, MBCoolTube.name, MBManif.name, cscdqm::ParHistoDef.name, hTMaxCell.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, and str.

Member Data Documentation

◆ name

average.Average.name

◆ sumw

average.Average.sumw

◆ sumwx

average.Average.sumwx

◆ sumwx2

average.Average.sumwx2
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
PDRates.average
average
Definition: PDRates.py:139
str
#define str(s)
Definition: TestProcessor.cc:48
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48
relativeConstraints.value
value
Definition: relativeConstraints.py:53
format
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22