CMS 3D CMS Logo

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

Public Member Functions

def __add__ (self, other)
 
def __iadd__ (self, other)
 
def __init__ (self, name)
 
def __str__ (self)
 
def inc (self, level, nentries=1)
 
def register (self, level)
 
def write (self, dirname)
 

Public Attributes

 name
 

Detailed Description

Definition at line 8 of file counter.py.

Constructor & Destructor Documentation

◆ __init__()

def counter.Counter.__init__ (   self,
  name 
)

Definition at line 10 of file counter.py.

10  def __init__(self, name):
11  self.name = name
12  super(Counter, self).__init__()
13 

Member Function Documentation

◆ __add__()

def counter.Counter.__add__ (   self,
  other 
)
Add two counters (+).

Definition at line 25 of file counter.py.

25  def __add__(self, other):
26  '''Add two counters (+).'''
27  size = max( len(self), len(other))
28  for i in range(0, size):
29  if i>=len(other):
30  # this line exists only in this counter, leave it as is
31  continue
32  elif i>=len(self):
33  self.register( other[i][0])
34  self.inc( other[i][0], other[i][1] )
35  else:
36  if self[i][0] != other[i][0]:
37  err = ['cannot add these counters:', str(self), str(other)]
38  raise ValueError('\n'.join(err))
39  else:
40  self.inc( other[i][0], other[i][1] )
41  return self
42 

References counter.Counter.inc(), join(), SiStripPI.max, FastTimerService_cff.range, counter.Counter.register(), VarParsing.VarParsing.register(), and str.

Referenced by counter.Counter.__iadd__().

◆ __iadd__()

def counter.Counter.__iadd__ (   self,
  other 
)
Add two counters (+=).

Definition at line 43 of file counter.py.

43  def __iadd__(self, other):
44  '''Add two counters (+=).'''
45  return self.__add__(other)
46 

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

◆ __str__()

def counter.Counter.__str__ (   self)

Definition at line 58 of file counter.py.

58  def __str__(self):
59  retstr = 'Counter %s :\n' % self.name
60  prev = None
61  init = None
62  for level, count in self:
63  if prev == None:
64  prev = count
65  init = count
66  if prev == 0:
67  eff1 = -1.
68  else:
69  eff1 = float(count)/prev
70  if init == 0:
71  eff2 = -1.
72  else:
73  eff2 = float(count)/init
74  retstr += '\t {level:<40} {count:>9} \t {eff1:4.2f} \t {eff2:6.4f}\n'.format(
75  level=level,
76  count=count,
77  eff1=eff1,
78  eff2=eff2 )
79  prev = count
80  return retstr
81 
82 
83 
84 

References dqmMemoryStats.float, ElectronMVAID.ElectronMVAID.name, DigiComparisonTask.name, TPComparisonTask.name, HcalOnlineHarvesting.name, HcalOfflineHarvesting.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, counter.Counter.name, TPTask.name, DigiTask.name, LEDTask.name, cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, TmModule.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.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::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, ParameterSet.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, PixelDCSObject< T >::Item.name, AlignmentConstraint.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, MagCylinder.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, heppy::ParSet.name, cond::persistency::GTProxyData.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, cms::DDAlgoArguments.name, Barrel.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, cms::DDParsingContext::CompositeMaterial.name, Supermodule.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, TreeCrawler.Package.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, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, FastHFShowerLibrary.name, magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::CDOption.name, looper.Looper.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, TrackerSectorStruct.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, CounterChecker.name, FCDTask.name, DQMGenericClient::NoFlowOption.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, cond::persistency::IOV::PAYLOAD_HASH.name, h2DSegm.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, config.Service.name, BulkSilicon.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.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, StraightTrackAlignment::RPSetPlots.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, cond::payloadInspector::TagReference.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.

◆ inc()

def counter.Counter.inc (   self,
  level,
  nentries = 1 
)
increment an existing level

Definition at line 17 of file counter.py.

17  def inc(self, level, nentries=1):
18  '''increment an existing level
19  '''
20  if level not in self.dico:
21  raise ValueError('level', level, 'has not been registered')
22  else:
23  self[level][1] += nentries
24 

References diclist.diclist.dico.

Referenced by counter.Counter.__add__().

◆ register()

def counter.Counter.register (   self,
  level 
)

Definition at line 14 of file counter.py.

14  def register(self, level):
15  self.add( level, [level, 0] )
16 

References CachingSeedCleanerBySharedInput.add(), RedundantSeedCleaner.add(), RPPileUpSignals.add(), OOTPileupCorrectionColl.add(), sistrip::WarningSummary.add(), RPixPileUpSignals.add(), StringMap.add(), diclist.diclist.add(), SimplePlan1RechitCombiner.add(), CSCAnodeDataFormat.add(), btagbtvdeep::DeepBoostedJetFeatures.add(), average.Average.add(), funct::Master< F >.add(), RPCAMCLinkCounters.add(), PuppiAlgo.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), StorableDoubleMap< T >.add(), PileUpFP420.add(), CSCRPCData.add(), RPCLinkSynchroStat.add(), TkTrackingRegionsMargin< T >.add(), TkTrackingRegionsMargin< float >.add(), DDNameFilter.add(), rltinfo.RLTInfo.add(), CompatibleDetToGroupAdder.add(), Majority< T >.add(), KalmanVertexUpdator< N >.add(), KalmanVertexUpdator< 5 >.add(), Majority< int >.add(), edm::ExceptionToActionTable.add(), ForwardDetRingOneZ.add(), materialEffect::Covariance.add(), AbsPlan1RechitCombiner.add(), rpcrawtodigi::EventRecords.add(), SiStripMiscalibrate::Entry.add(), GsfVertexUpdator.add(), CSCAnodeData.add(), sipixelobjects::PixelFEDLink.add(), HcalIndexLookup.add(), ESCrcKchipFast.add(), MTDEtaRange.add(), MuonEtaRange.add(), MuonSeedFromRecHits.add(), VertexUpdator< N >.add(), helper::CandDecayStoreManager.add(), VertexUpdator< 5 >.add(), SiPileUpSignals.add(), ME0Layer.add(), CosmicHitPairGenerator.add(), DigiSimLinkPileUpSignals.add(), ME0Chamber.add(), LinkConnSpec.add(), GenParticleDecaySelector.add(), SiPixelDetSummary.add(), LayerHitMapCache::SimpleCache.add(), PreMixingTrackingParticleWorker.add(), DccSpec.add(), FakeCPE::Map.add(), CosmicHitTripletGenerator.add(), ThirdHitPredictionFromInvLine.add(), DigiCollectionFP420.add(), pos::PixelConfig.add(), CSCCFEBData.add(), DetRodOneR.add(), tracking::TempMeasurements.add(), reco::TrackKinematics.add(), edm::helper::Filler< Association< C > >.add(), edm::helper::Filler< Map >.add(), LinkBoardSpec.add(), RPCLinkSynchroStat::LinkBoard.add(), TriggerBoardSpec.add(), PreMixingCaloParticleWorker.add(), G4SimEvent.add(), GEMRing.add(), fwlite::RunLumiSelector.add(), EcalTDigitizer< Traits >.add(), EcalTDigitizer< ESDigitizerTraits >.add(), GEMRegion.add(), GEMStation.add(), sistrip::LinearFit.add(), RPCChamber.add(), GEMChamber.add(), AutoCorrMat.add(), PixelClusterizerBase::AccretionCluster.add(), HcalSiPMHitResponse.add(), reco::PixelClusterCounts.add(), EBHitResponseImpl< constset >.add(), beamerCreator.Out.add(), EventWithHistory.add(), SiStripPI::Entry.add(), GEMSuperChamber.add(), Averages.add(), RPCReadOutMapping.add(), AlignmentSurfaceDeformations.add(), L1TriggerKey.add(), pat::EventHypothesis.add(), L1TriggerKeyExt.add(), DTChamber.add(), CSCDDUEventData.add(), RPCSeedPattern.add(), CSCAnodeData2007.add(), FWParameterizable.add(), FWTypeToRepresentations.add(), OrderedSet.OrderedSet.add(), CSCComparatorData.add(), FWConfigurationManager.add(), FWViewManagerManager.add(), edm::ConfigurationDescriptions.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), SurfaceDeformation.add(), BowedSurfaceDeformation.add(), SiStripDetSummary.add(), DTKeyedConfig.add(), FiberG4Hit.add(), DTSuperLayer.add(), Hector.add(), BPHPlusMinusCandidate.add(), CSCAnodeData2006.add(), MTDClusterizerBase::AccretionCluster.add(), MTDDetSector.add(), edm::WallclockTimer.add(), CSCDigiToRaw.add(), muonisolation::NominalEfficiencyThresholds.add(), SiStripQuality.add(), EcalHitResponse.add(), TwoBowedSurfacesDeformation.add(), TH1Store.add(), TkHistoMap.add(), pat::PATUserDataHelper< ObjectType >.add(), pat::PATUserDataHelper< pat::GenericParticle >.add(), root::RooFitFunction< X, Expr >.add(), pat::PATUserDataHelper< pat::Muon >.add(), pat::PATUserDataHelper< pat::Jet >.add(), pat::PATUserDataHelper< pat::Tau >.add(), pat::PATUserDataHelper< pat::Electron >.add(), pat::PATUserDataHelper< pat::Photon >.add(), pat::PATUserDataHelper< pat::PFParticle >.add(), pat::PATUserDataHelper< pat::CompositeCandidate >.add(), pat::PATUserDataHelper< pat::MET >.add(), AlignmentParameterBuilder.add(), fit::RootMinuitCommands< Function >.add(), edm::CPUTimer.add(), ME0Geometry.add(), fwlite::EventContainer.add(), DTVDriftCalibration::cellInfo.add(), CaloHitResponse.add(), edm::CountAndLimit.add(), RPCGeometry.add(), sistrip::MeanAndStdDev.add(), FWEventItemsManager.add(), GenLumiInfoProduct::FinalStat.add(), edm::service::ELlimitsTable.add(), BPHRecoCandidate.add(), TTUTrackingAlg::Track.add(), GEMROmap.add(), HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell.add(), EcalTimeMapDigitizer.add(), LayerHitMapCache.add(), reco::fitHelper::Adder< C >.add(), CaloTDigitizer< Traits, runHelper >.add(), amc13::Packet.add(), edm::StatsCount.add(), reco::Vertex.add(), TkGluedMeasurementDet::HitCollectorForRecHits.add(), edm::eventsetup::EventSetupProvider.add(), reco::fitHelper::Adder< edm::OwnVector< T > >.add(), edm::Association< C >::Filler.add(), SiPixelQuality.add(), AlignmentParameterSelector.add(), reco::CastorTower.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserCand >.add(), CSCBaseElectronicsSim.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), lhef::LHERunInfo::Counter.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserFloat >.add(), GEMROMapping.add(), CSCALCTs2006.add(), FastLineRecognition::Cluster.add(), edm::eventsetup::EventSetupRecordProvider.add(), reco::CastorCluster.add(), DTGeometry.add(), BPHRecoBuilder.add(), edm::ParameterSetDescription.add(), GEMGeometry.add(), DTSegmentCand.add(), Chamber_AutoCorrMat.add(), jsoncollector::IntJ.add(), CSCEventData.add(), edm::ReusableObjectHolder< edm::ESProductHost >.add(), CSCTMBHeader.add(), edm::ReusableObjectHolder< HostType >.add(), edm::ReusableObjectHolder< SiPixelTopoFinder >.add(), ReusableObjectHolder< LuminosityBlockPrincipal >.add(), edm::ReusableObjectHolder< T, Deleter >.add(), edm::ReusableObjectHolder< edm::LuminosityBlockPrincipal >.add(), SiPixelCluster.add(), PhysicsTools::Variable::ValueList.add(), Association< C >.add(), edm::Association< C >.add(), pos::PixelConfigList.add(), TkGluedMeasurementDet::HitCollectorForSimpleHits.add(), PrimaryVertexValidation.add(), edm::eventsetup::EventSetupRecordImpl.add(), edm::WaitingTaskList.add(), MicroME.add(), HitDoublets.add(), popcon::PopConSourceHandler< EcalIntercalibConstants >.add(), popcon::PopConSourceHandler< BeamSpotOnlineObjects >.add(), popcon::PopConSourceHandler< DTLVStatus >.add(), popcon::PopConSourceHandler< CastorPedestalWidths >.add(), popcon::PopConSourceHandler< EcalPulseSymmCovariances >.add(), popcon::PopConSourceHandler< RPCStripNoises >.add(), popcon::PopConSourceHandler< RPCObTemp >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.add(), popcon::PopConSourceHandler< EcalTPGSlidingWindow >.add(), popcon::PopConSourceHandler< DTHVStatus >.add(), popcon::PopConSourceHandler< RPCObStatus >.add(), popcon::PopConSourceHandler< HcalZSThresholds >.add(), popcon::PopConSourceHandler< CastorChannelQuality >.add(), popcon::PopConSourceHandler< bool >.add(), popcon::PopConSourceHandler< RPCDCCLinkMap >.add(), popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.add(), popcon::PopConSourceHandler< CastorGains >.add(), popcon::PopConSourceHandler< EcalTPGPedestals >.add(), popcon::PopConSourceHandler< SiPixelDisabledModules >.add(), popcon::PopConSourceHandler< HcalZDCLowGainFractions >.add(), popcon::PopConSourceHandler< FileBlob >.add(), popcon::PopConSourceHandler< SiStripBadStrip >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.add(), popcon::PopConSourceHandler< RPCObGasMix >.add(), popcon::PopConSourceHandler< CastorSaturationCorrs >.add(), popcon::PopConSourceHandler< EcalTPGLutIdMap >.add(), popcon::PopConSourceHandler< RPCObPVSSmap >.add(), popcon::PopConSourceHandler< HcalTimingParams >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBIdMap >.add(), popcon::PopConSourceHandler< HcalPFCorrs >.add(), popcon::PopConSourceHandler< RPCObVmon >.add(), popcon::PopConSourceHandler< HcalMCParams >.add(), popcon::PopConSourceHandler< HcalTimeCorrs >.add(), popcon::PopConSourceHandler< HcalTPParameters >.add(), popcon::PopConSourceHandler< HcalQIETypes >.add(), popcon::PopConSourceHandler< RPCDQMObject >.add(), popcon::PopConSourceHandler< DTT0 >.add(), popcon::PopConSourceHandler< EcalPFRecHitThresholds >.add(), popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.add(), popcon::PopConSourceHandler< T >.add(), popcon::PopConSourceHandler< RunSummary >.add(), popcon::PopConSourceHandler< L1TriggerScaler >.add(), popcon::PopConSourceHandler< RunInfo >.add(), popcon::PopConSourceHandler< HcalDcsMap >.add(), popcon::PopConSourceHandler< HcalSiPMCharacteristics >.add(), popcon::PopConSourceHandler< DQMSummary >.add(), popcon::PopConSourceHandler< HcalFlagHFDigiTimeParams >.add(), popcon::PopConSourceHandler< EcalTPGStripStatus >.add(), popcon::PopConSourceHandler< DTTPGParameters >.add(), popcon::PopConSourceHandler< EcalTPGCrystalStatus >.add(), popcon::PopConSourceHandler< RPCAMCLinkMap >.add(), popcon::PopConSourceHandler< HcalElectronicsMap >.add(), popcon::PopConSourceHandler< RPCLBLinkMap >.add(), popcon::PopConSourceHandler< EcalChannelStatus >.add(), popcon::PopConSourceHandler< HcalGains >.add(), popcon::PopConSourceHandler< HcalFrontEndMap >.add(), popcon::PopConSourceHandler< HcalQIEData >.add(), popcon::PopConSourceHandler< EcalTPGLinearizationConst >.add(), popcon::PopConSourceHandler< HcalRespCorrs >.add(), popcon::PopConSourceHandler< EcalDCSTowerStatus >.add(), popcon::PopConSourceHandler< EcalPulseShapes >.add(), popcon::PopConSourceHandler< HcalSiPMParameters >.add(), popcon::PopConSourceHandler< DTDeadFlag >.add(), popcon::PopConSourceHandler< EcalTPGWeightGroup >.add(), popcon::PopConSourceHandler< HcalValidationCorrs >.add(), popcon::PopConSourceHandler< EcalSRSettings >.add(), popcon::PopConSourceHandler< FillInfo >.add(), popcon::PopConSourceHandler< EcalDAQTowerStatus >.add(), popcon::PopConSourceHandler< DTCCBConfig >.add(), popcon::PopConSourceHandler< HcalPedestals >.add(), popcon::PopConSourceHandler< EcalMappingElectronics >.add(), popcon::PopConSourceHandler< CastorQIEData >.add(), popcon::PopConSourceHandler< LHCInfo >.add(), popcon::PopConSourceHandler< EcalTPGPhysicsConst >.add(), popcon::PopConSourceHandler< SiPixelFedCablingMap >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.add(), popcon::PopConSourceHandler< RPCObImon >.add(), popcon::PopConSourceHandler< L1RPCHwConfig >.add(), popcon::PopConSourceHandler< HcalL1TriggerObjects >.add(), popcon::PopConSourceHandler< CastorGainWidths >.add(), popcon::PopConSourceHandler< EcalTPGTowerStatus >.add(), popcon::PopConSourceHandler< DTReadOutMapping >.add(), popcon::PopConSourceHandler< EcalTPGWeightIdMap >.add(), popcon::PopConSourceHandler< HcalRecoParams >.add(), popcon::PopConSourceHandler< CastorRecoParams >.add(), popcon::PopConSourceHandler< CastorPedestals >.add(), popcon::PopConSourceHandler< DTStatusFlag >.add(), popcon::PopConSourceHandler< EcalTPGSpike >.add(), popcon::PopConSourceHandler< EcalADCToGeVConstant >.add(), popcon::PopConSourceHandler< HcalLongRecoParams >.add(), popcon::PopConSourceHandler< HcalLUTCorrs >.add(), popcon::PopConSourceHandler< RPCObUXC >.add(), popcon::PopConSourceHandler< HcalGainWidths >.add(), popcon::PopConSourceHandler< RPCObGas >.add(), popcon::PopConSourceHandler< Payload >.add(), popcon::PopConSourceHandler< EcalTPGLutGroup >.add(), popcon::PopConSourceHandler< SiStripPedestals >.add(), popcon::PopConSourceHandler< RPCEMap >.add(), popcon::PopConSourceHandler< HcalPedestalWidths >.add(), popcon::PopConSourceHandler< CastorElectronicsMap >.add(), popcon::PopConSourceHandler< SiStripNoises >.add(), popcon::PopConSourceHandler< HcalLutMetadata >.add(), popcon::PopConSourceHandler< DTPerformance >.add(), popcon::PopConSourceHandler< HcalChannelQuality >.add(), popcon::PopConSourceHandler< RPCObFebmap >.add(), popcon::PopConSourceHandler< SiPixelCalibConfiguration >.add(), popcon::PopConSourceHandler< EcalPedestals >.add(), popcon::PopConSourceHandler< DTRangeT0 >.add(), popcon::PopConSourceHandler< HcalDcsValues >.add(), popcon::PopConSourceHandler< HcalTPChannelParameters >.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), CTPPSRPAlignmentCorrectionData.add(), Folder.add(), o2olib.O2OJobMgr.add(), CSCALCTHeader.add(), l1tpf_calo::SingleCaloClusterer.add(), PhysicsTools::Calibration::MVAComputerContainer.add(), edm::ValueMap< edm::Ptr >.add(), edm::ValueMap< T >.add(), ValueMap< T >.add(), edm::ValueMap< int >.add(), ValueMap< DeDxData >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), edm::ValueMap< float >.add(), ValueMap< LorentzVector >.add(), edm::ValueMap< std::pair< float, float > >.add(), vector< reco::PFCandidateRef >.add(), ValueMap< reco::CandidatePtr >.add(), ValueMap< reco::DeDxData >.add(), ValueMap< reco::PFCandidateRef >.add(), Filler.add(), edm::ValueMap< edm::Ref >.add(), hitfit::Fourvec_Event.add(), pat::MET::PackedMETUncertainty.add(), python.rootplot.utilities.HistStack.add(), and SequenceTypes.Task.add().

Referenced by counter.Counter.__add__().

◆ write()

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

Definition at line 47 of file counter.py.

47  def write(self, dirname):
48  '''Dump the counter to a pickle file and to a text file in dirname.'''
49  pckfname = '{d}/{f}.pck'.format(d=dirname, f=self.name)
50  pckfname = pckfname.replace('*','STAR')
51  pckfile = open( pckfname, 'w' )
52  pickle.dump(self, pckfile)
53  txtfile = open( pckfname.replace('.pck', '.txt'), 'w')
54  txtfile.write( str(self) )
55  txtfile.write( '\n' )
56  txtfile.close()
57 

References ElectronMVAID.ElectronMVAID.name, DigiComparisonTask.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, counter.Counter.name, TPTask.name, DigiTask.name, LEDTask.name, cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, TmModule.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.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::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, ParameterSet.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, PixelDCSObject< T >::Item.name, AlignmentConstraint.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, MagCylinder.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, heppy::ParSet.name, cond::persistency::GTProxyData.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, cms::DDAlgoArguments.name, Barrel.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, cms::DDParsingContext::CompositeMaterial.name, Supermodule.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, TreeCrawler.Package.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, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, FastHFShowerLibrary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, magneticfield::BaseVolumeHandle.name, emtf::Node.name, h4DSegm.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, 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, geometry.Structure.name, config.Analyzer.name, core.autovars.NTupleSubObject.name, Capsule.name, core.autovars.NTupleObject.name, Ceramic.name, SiStripMonitorDigi.name, config.Service.name, BulkSilicon.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.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, StraightTrackAlignment::RPSetPlots.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, cond::payloadInspector::TagReference.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

counter.Counter.name
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
str
#define str(s)
Definition: TestProcessor.cc:51
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48
format