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, HcalOfflineHarvesting.name, HcalOnlineHarvesting.name, LaserTask.name, NoCQTask.name, PedestalTask.name, QIE10Task.name, QIE11Task.name, HFRaddamTask.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::TAG::TIME_TYPE.name, cond::persistency::RUN_INFO::START_TIME.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, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::DESCRIPTION.name, cms::dd::NameValuePair< T >.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.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, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.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, FWTableViewManager::TableEntry.name, MEtoEDM< T >::MEtoEDMObject.name, PixelBarrelLinkMaker::Item.name, ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, cms::DDParsingContext::CompositeMaterial.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, h4DSegm.name, emtf::Node.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, looper.Looper.name, DQMGenericClient::CDOption.name, cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, cond::persistency::PAYLOAD::HASH.name, FCDTask.name, DQMGenericClient::NoFlowOption.name, CounterChecker.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::DATA.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, classes.MonitorData.name, HistogramManager.name, classes.OutputData.name, Crystal.name, h2DSegm.name, options.HLTProcessOptions.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.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, config.Service.name, BulkSilicon.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, cond::payloadInspector::TagReference.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, 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 MAGNITUDE.add, CachingSeedCleanerBySharedInput.add(), RedundantSeedCleaner.add(), RPPileUpSignals.add(), OOTPileupCorrectionColl.add(), sistrip::WarningSummary.add(), RPixPileUpSignals.add(), StringMap.add(), CSCAnodeDataFormat.add(), diclist.diclist.add(), SimplePlan1RechitCombiner.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(), KalmanVertexUpdator< N >.add(), KalmanVertexUpdator< 5 >.add(), Majority< int >.add(), Majority< T >.add(), edm::ExceptionToActionTable.add(), ForwardDetRingOneZ.add(), materialEffect::Covariance.add(), SiStripMiscalibrate::Entry.add(), AbsPlan1RechitCombiner.add(), rpcrawtodigi::EventRecords.add(), GsfVertexUpdator.add(), CSCAnodeData.add(), sipixelobjects::PixelFEDLink.add(), ESCrcKchipFast.add(), MuonEtaRange.add(), MuonSeedFromRecHits.add(), HcalIndexLookup.add(), VertexUpdator< N >.add(), helper::CandDecayStoreManager.add(), VertexUpdator< 5 >.add(), SiPileUpSignals.add(), ME0Layer.add(), CosmicHitPairGenerator.add(), DigiSimLinkPileUpSignals.add(), ME0Chamber.add(), LinkConnSpec.add(), SiPixelDetSummary.add(), GenParticleDecaySelector.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(), RPCLinkSynchroStat::LinkBoard.add(), LinkBoardSpec.add(), TriggerBoardSpec.add(), fwlite::RunLumiSelector.add(), G4SimEvent.add(), PreMixingCaloParticleWorker.add(), GEMRing.add(), EcalTDigitizer< Traits >.add(), EcalTDigitizer< ESDigitizerTraits >.add(), GEMRegion.add(), GEMStation.add(), sistrip::LinearFit.add(), reco::PixelClusterCounts.add(), RPCChamber.add(), GEMChamber.add(), AutoCorrMat.add(), HcalSiPMHitResponse.add(), beamerCreator.Out.add(), EBHitResponseImpl< constset >.add(), EventWithHistory.add(), SiStripPI::Entry.add(), GEMSuperChamber.add(), Averages.add(), RPCReadOutMapping.add(), AlignmentSurfaceDeformations.add(), pat::EventHypothesis.add(), L1TriggerKey.add(), L1TriggerKeyExt.add(), DTChamber.add(), CSCDDUEventData.add(), RPCSeedPattern.add(), CSCAnodeData2007.add(), FWParameterizable.add(), FWTypeToRepresentations.add(), OrderedSet.OrderedSet.add(), CSCComparatorData.add(), PixelClusterizerBase::AccretionCluster.add(), edm::ConfigurationDescriptions.add(), FWConfigurationManager.add(), FWViewManagerManager.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), SurfaceDeformation.add(), BowedSurfaceDeformation.add(), DTKeyedConfig.add(), SiStripDetSummary.add(), FiberG4Hit.add(), DTSuperLayer.add(), CSCAnodeData2006.add(), Hector.add(), BPHPlusMinusCandidate.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< pat::Photon >.add(), pat::PATUserDataHelper< ObjectType >.add(), root::RooFitFunction< X, Expr >.add(), AlignmentParameterBuilder.add(), pat::PATUserDataHelper< pat::Jet >.add(), pat::PATUserDataHelper< pat::Tau >.add(), pat::PATUserDataHelper< pat::Muon >.add(), pat::PATUserDataHelper< pat::Electron >.add(), pat::PATUserDataHelper< pat::PFParticle >.add(), pat::PATUserDataHelper< pat::GenericParticle >.add(), pat::PATUserDataHelper< pat::CompositeCandidate >.add(), pat::PATUserDataHelper< pat::MET >.add(), fit::RootMinuitCommands< Function >.add(), edm::CPUTimer.add(), ME0Geometry.add(), fwlite::EventContainer.add(), CaloHitResponse.add(), DTVDriftCalibration::cellInfo.add(), edm::CountAndLimit.add(), RPCGeometry.add(), sistrip::MeanAndStdDev.add(), FWEventItemsManager.add(), GenLumiInfoProduct::FinalStat.add(), edm::service::ELlimitsTable.add(), BPHRecoCandidate.add(), GEMROmap.add(), HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell.add(), TTUTrackingAlg::Track.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(), reco::fitHelper::Adder< edm::OwnVector< T > >.add(), edm::eventsetup::EventSetupProvider.add(), edm::Association< C >::Filler.add(), SiPixelQuality.add(), AlignmentParameterSelector.add(), reco::CastorTower.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserCand >.add(), CSCBaseElectronicsSim.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserPtr >.add(), lhef::LHERunInfo::Counter.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserCand >.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(), edm::ReusableObjectHolder< edm::LuminosityBlockPrincipal >.add(), CSCEventData.add(), CSCTMBHeader.add(), edm::ReusableObjectHolder< edm::ESProductHost >.add(), edm::ReusableObjectHolder< HostType >.add(), ReusableObjectHolder< LuminosityBlockPrincipal >.add(), edm::ReusableObjectHolder< T, Deleter >.add(), PhysicsTools::Variable::ValueList.add(), edm::Association< C >.add(), Association< C >.add(), SiPixelCluster.add(), pos::PixelConfigList.add(), edm::WaitingTaskList.add(), TkGluedMeasurementDet::HitCollectorForSimpleHits.add(), PrimaryVertexValidation.add(), edm::eventsetup::EventSetupRecordImpl.add(), MicroME.add(), HitDoublets.add(), popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.add(), popcon::PopConSourceHandler< LHCInfo >.add(), popcon::PopConSourceHandler< DTDeadFlag >.add(), popcon::PopConSourceHandler< EcalIntercalibConstants >.add(), popcon::PopConSourceHandler< EcalTPGWeightGroup >.add(), popcon::PopConSourceHandler< EcalPulseSymmCovariances >.add(), popcon::PopConSourceHandler< bool >.add(), popcon::PopConSourceHandler< SiStripBadStrip >.add(), popcon::PopConSourceHandler< RPCObTemp >.add(), popcon::PopConSourceHandler< SiStripPedestals >.add(), popcon::PopConSourceHandler< L1TriggerScaler >.add(), popcon::PopConSourceHandler< RPCEMap >.add(), popcon::PopConSourceHandler< Payload >.add(), popcon::PopConSourceHandler< HcalZSThresholds >.add(), popcon::PopConSourceHandler< DTT0 >.add(), popcon::PopConSourceHandler< EcalMappingElectronics >.add(), popcon::PopConSourceHandler< EcalTPGSpike >.add(), popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.add(), popcon::PopConSourceHandler< CastorRecoParams >.add(), popcon::PopConSourceHandler< EcalTPGPhysicsConst >.add(), popcon::PopConSourceHandler< EcalTPGPedestals >.add(), popcon::PopConSourceHandler< SiPixelDisabledModules >.add(), popcon::PopConSourceHandler< EcalPedestals >.add(), popcon::PopConSourceHandler< RPCObStatus >.add(), popcon::PopConSourceHandler< HcalDcsMap >.add(), popcon::PopConSourceHandler< FillInfo >.add(), popcon::PopConSourceHandler< HcalLongRecoParams >.add(), popcon::PopConSourceHandler< CastorChannelQuality >.add(), popcon::PopConSourceHandler< BeamSpotOnlineObjects >.add(), popcon::PopConSourceHandler< DTCCBConfig >.add(), popcon::PopConSourceHandler< RPCDCCLinkMap >.add(), popcon::PopConSourceHandler< EcalDCSTowerStatus >.add(), popcon::PopConSourceHandler< RPCStripNoises >.add(), popcon::PopConSourceHandler< FileBlob >.add(), popcon::PopConSourceHandler< RunSummary >.add(), popcon::PopConSourceHandler< HcalPFCorrs >.add(), popcon::PopConSourceHandler< EcalPulseShapes >.add(), popcon::PopConSourceHandler< EcalTPGSlidingWindow >.add(), popcon::PopConSourceHandler< HcalRespCorrs >.add(), popcon::PopConSourceHandler< HcalQIETypes >.add(), popcon::PopConSourceHandler< HcalTimeCorrs >.add(), popcon::PopConSourceHandler< EcalTPGLinearizationConst >.add(), popcon::PopConSourceHandler< RPCObVmon >.add(), popcon::PopConSourceHandler< RPCObPVSSmap >.add(), popcon::PopConSourceHandler< HcalTPParameters >.add(), popcon::PopConSourceHandler< EcalPFRecHitThresholds >.add(), popcon::PopConSourceHandler< HcalElectronicsMap >.add(), popcon::PopConSourceHandler< HcalSiPMCharacteristics >.add(), popcon::PopConSourceHandler< CastorPedestals >.add(), popcon::PopConSourceHandler< RPCObUXC >.add(), popcon::PopConSourceHandler< HcalTPChannelParameters >.add(), popcon::PopConSourceHandler< DTPerformance >.add(), popcon::PopConSourceHandler< EcalTPGLutIdMap >.add(), popcon::PopConSourceHandler< RPCObImon >.add(), popcon::PopConSourceHandler< RPCObGas >.add(), popcon::PopConSourceHandler< CastorQIEData >.add(), popcon::PopConSourceHandler< SiPixelFedCablingMap >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBIdMap >.add(), popcon::PopConSourceHandler< HcalPedestals >.add(), popcon::PopConSourceHandler< HcalDcsValues >.add(), popcon::PopConSourceHandler< EcalTPGLutGroup >.add(), popcon::PopConSourceHandler< RPCAMCLinkMap >.add(), popcon::PopConSourceHandler< HcalValidationCorrs >.add(), popcon::PopConSourceHandler< RPCObFebmap >.add(), popcon::PopConSourceHandler< RPCDQMObject >.add(), popcon::PopConSourceHandler< HcalChannelQuality >.add(), popcon::PopConSourceHandler< HcalFrontEndMap >.add(), popcon::PopConSourceHandler< DTReadOutMapping >.add(), popcon::PopConSourceHandler< EcalTPGTPMode >.add(), popcon::PopConSourceHandler< RunInfo >.add(), popcon::PopConSourceHandler< HcalSiPMParameters >.add(), popcon::PopConSourceHandler< HcalQIEData >.add(), popcon::PopConSourceHandler< EcalTPGCrystalStatus >.add(), popcon::PopConSourceHandler< EcalChannelStatus >.add(), popcon::PopConSourceHandler< EcalTPGOddWeightIdMap >.add(), popcon::PopConSourceHandler< HcalGains >.add(), popcon::PopConSourceHandler< RPCLBLinkMap >.add(), popcon::PopConSourceHandler< DTLVStatus >.add(), popcon::PopConSourceHandler< CastorPedestalWidths >.add(), popcon::PopConSourceHandler< SiStripNoises >.add(), popcon::PopConSourceHandler< L1RPCHwConfig >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.add(), popcon::PopConSourceHandler< HcalLutMetadata >.add(), popcon::PopConSourceHandler< EcalTPGOddWeightGroup >.add(), popcon::PopConSourceHandler< DTRangeT0 >.add(), popcon::PopConSourceHandler< EcalADCToGeVConstant >.add(), popcon::PopConSourceHandler< HcalRecoParams >.add(), popcon::PopConSourceHandler< HcalTimingParams >.add(), popcon::PopConSourceHandler< DTHVStatus >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.add(), popcon::PopConSourceHandler< EcalDAQTowerStatus >.add(), popcon::PopConSourceHandler< DQMSummary >.add(), popcon::PopConSourceHandler< EcalSRSettings >.add(), popcon::PopConSourceHandler< DTTPGParameters >.add(), popcon::PopConSourceHandler< HcalGainWidths >.add(), popcon::PopConSourceHandler< HcalLUTCorrs >.add(), popcon::PopConSourceHandler< CastorGains >.add(), popcon::PopConSourceHandler< CastorSaturationCorrs >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.add(), popcon::PopConSourceHandler< DTStatusFlag >.add(), popcon::PopConSourceHandler< CastorElectronicsMap >.add(), popcon::PopConSourceHandler< EcalTPGStripStatus >.add(), popcon::PopConSourceHandler< EcalTPGWeightIdMap >.add(), popcon::PopConSourceHandler< HcalZDCLowGainFractions >.add(), popcon::PopConSourceHandler< CastorGainWidths >.add(), popcon::PopConSourceHandler< T >.add(), popcon::PopConSourceHandler< HcalL1TriggerObjects >.add(), popcon::PopConSourceHandler< HcalFlagHFDigiTimeParams >.add(), popcon::PopConSourceHandler< SiPixelCalibConfiguration >.add(), popcon::PopConSourceHandler< HcalPedestalWidths >.add(), popcon::PopConSourceHandler< RPCObGasMix >.add(), popcon::PopConSourceHandler< HcalMCParams >.add(), popcon::PopConSourceHandler< EcalTPGTowerStatus >.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), CTPPSRPAlignmentCorrectionData.add(), Folder.add(), o2olib.O2OJobMgr.add(), CSCALCTHeader.add(), l1tpf_calo::SingleCaloClusterer.add(), PhysicsTools::Calibration::MVAComputerContainer.add(), edm::ValueMap< std::pair< float, float > >.add(), edm::ValueMap< int >.add(), edm::ValueMap< edm::Ref >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), edm::ValueMap< float >.add(), Filler.add(), ValueMap< DeDxData >.add(), ValueMap< LorentzVector >.add(), ValueMap< reco::CandidatePtr >.add(), vector< reco::PFCandidateRef >.add(), ValueMap< T >.add(), edm::ValueMap< T >.add(), edm::ValueMap< edm::Ptr >.add(), ValueMap< reco::PFCandidateRef >.add(), ValueMap< reco::DeDxData >.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, LaserTask.name, NoCQTask.name, PedestalTask.name, QIE10Task.name, QIE11Task.name, HFRaddamTask.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::TAG::TIME_TYPE.name, cond::persistency::RUN_INFO::START_TIME.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, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::TAG::DESCRIPTION.name, cms::dd::NameValuePair< T >.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.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, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.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, FWTableViewManager::TableEntry.name, MEtoEDM< T >::MEtoEDMObject.name, PixelBarrelLinkMaker::Item.name, ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, cms::DDParsingContext::CompositeMaterial.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, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, looper.Looper.name, DQMGenericClient::CDOption.name, cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, cond::persistency::PAYLOAD::HASH.name, FCDTask.name, DQMGenericClient::NoFlowOption.name, CounterChecker.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::DATA.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, classes.MonitorData.name, HistogramManager.name, classes.OutputData.name, Crystal.name, h2DSegm.name, options.HLTProcessOptions.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.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, config.Service.name, BulkSilicon.name, nanoaod::FlatTable::Column.name, APD.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, cond::payloadInspector::TagReference.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, 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:52
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
writeEcalDQMStatus.write
write
Definition: writeEcalDQMStatus.py:48
format