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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __add__()

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

Definition at line 25 of file counter.py.

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

Referenced by counter.Counter.__iadd__().

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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#define str(s)

◆ __iadd__()

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

Definition at line 43 of file counter.py.

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__().

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

◆ __str__()

def counter.Counter.__str__ (   self)

Definition at line 58 of file counter.py.

References dqmMemoryStats.float, ElectronMVAID.ElectronMVAID.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::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, MEPSetData.name, AlignmentConstraint.name, PixelDCSObject< T >::Item.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, SingleObjectCondition.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, cms::DDAlgoArguments.name, Barrel.name, cond::TimeTypeSpecs.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, edm::PathSummary.name, EcalLogicID.name, alignment.Alignment.name, lumi::TriggerInfo.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, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cms::DDParsingContext::CompositeMaterial.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cond::Tag_t.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, FastHFShowerLibrary.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, FCDTask.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.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, BPHDecayToResResBuilderBase::DZSelect.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, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, DQMNet::WaitObject.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, APD.name, core.autovars.NTupleCollection.name, nanoaod::FlatTable::Column.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.

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 

◆ inc()

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

Definition at line 17 of file counter.py.

References diclist.diclist.dico.

Referenced by counter.Counter.__add__().

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 

◆ register()

def counter.Counter.register (   self,
  level 
)

Definition at line 14 of file counter.py.

References MAGNITUDE.add, CachingSeedCleanerBySharedInput.add(), RedundantSeedCleaner.add(), RPPileUpSignals.add(), OOTPileupCorrectionColl.add(), sistrip::WarningSummary.add(), RPixPileUpSignals.add(), StringMap.add(), diclist.diclist.add(), SimplePlan1RechitCombiner.add(), btagbtvdeep::DeepBoostedJetFeatures.add(), average.Average.add(), funct::Master< F >.add(), RPCAMCLinkCounters.add(), CSCAnodeDataFormat.add(), PuppiAlgo.add(), StorableDoubleMap< T >.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), RPCLinkSynchroStat.add(), CSCRPCData.add(), rltinfo.RLTInfo.add(), TkTrackingRegionsMargin< float >.add(), TkTrackingRegionsMargin< T >.add(), DDNameFilter.add(), KalmanVertexUpdator< 5 >.add(), Majority< int >.add(), CompatibleDetToGroupAdder.add(), KalmanVertexUpdator< N >.add(), Majority< T >.add(), edm::ExceptionToActionTable.add(), ForwardDetRingOneZ.add(), materialEffect::Covariance.add(), CSCAnodeData.add(), SiStripMiscalibrate::Entry.add(), AbsPlan1RechitCombiner.add(), rpcrawtodigi::EventRecords.add(), GsfVertexUpdator.add(), sipixelobjects::PixelFEDLink.add(), VertexUpdator< 5 >.add(), MuonEtaRange.add(), MuonSeedFromRecHits.add(), HcalIndexLookup.add(), VertexUpdator< N >.add(), SiPileUpSignals.add(), ME0Layer.add(), CosmicHitPairGenerator.add(), DigiSimLinkPileUpSignals.add(), LinkConnSpec.add(), ME0Chamber.add(), CosmicHitTripletGenerator.add(), LayerHitMapCache::SimpleCache.add(), PreMixingTrackingParticleWorker.add(), DccSpec.add(), SiPixelDetSummary.add(), FakeCPE::Map.add(), ThirdHitPredictionFromInvLine.add(), DetRodOneR.add(), tracking::TempMeasurements.add(), RPCLinkSynchroStat::LinkBoard.add(), CSCCFEBData.add(), reco::TrackKinematics.add(), edm::helper::Filler< Map >.add(), LinkBoardSpec.add(), edm::helper::Filler< Association< C > >.add(), TriggerBoardSpec.add(), G4SimEvent.add(), PreMixingCaloParticleWorker.add(), GEMRing.add(), l1t::demo::BoardData.add(), fwlite::RunLumiSelector.add(), EcalTDigitizer< ESDigitizerTraits >.add(), EcalTDigitizer< Traits >.add(), GEMRegion.add(), GEMStation.add(), sistrip::LinearFit.add(), GenParticleDecaySelector.add(), reco::PixelClusterCounts.add(), RPCChamber.add(), Matriplex::Matriplex< int, 1, 1, NN >.add(), Matriplex::Matriplex< float, HH, 1, NN >.add(), Matriplex::Matriplex< float, LL, 1, NN >.add(), Matriplex::Matriplex< T, D1, D2, N >.add(), Matriplex::Matriplex< float, 1, 1, NN >.add(), GEMChamber.add(), Matriplex::Matriplex< HitOnTrack, 1, 1, NN >.add(), Matriplex::Matriplex< int, MPlexHitIdxMax, 1, NN >.add(), HcalSiPMHitResponse.add(), beamerCreator.Out.add(), EBHitResponseImpl< constset >.add(), EventWithHistory.add(), Averages.add(), RPCReadOutMapping.add(), GEMSuperChamber.add(), l1t::demo::EventData.add(), AlignmentSurfaceDeformations.add(), L1TriggerKeyExt.add(), L1TriggerKey.add(), pat::EventHypothesis.add(), DTChamber.add(), CSCDDUEventData.add(), FWParameterizable.add(), FWTypeToRepresentations.add(), OrderedSet.OrderedSet.add(), CSCAnodeData2007.add(), CSCComparatorData.add(), RPCSeedPattern.add(), edm::ChildrenCPUTimer.add(), PixelClusterizerBase::AccretionCluster.add(), FWConfigurationManager.add(), FWViewManagerManager.add(), edm::ConfigurationDescriptions.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), Hector.add(), SurfaceDeformation.add(), SiStripPI::Entry.add(), BowedSurfaceDeformation.add(), Matriplex::MatriplexSym< float, LL, NN >.add(), Matriplex::MatriplexSym< float, HH, NN >.add(), SiStripDetSummary.add(), Matriplex::MatriplexSym< T, D, N >.add(), FiberG4Hit.add(), DTKeyedConfig.add(), DTSuperLayer.add(), CSCAnodeData2006.add(), MTDClusterizerBase::AccretionCluster.add(), edm::WallclockTimer.add(), muonisolation::NominalEfficiencyThresholds.add(), root::RooFitFunction< X, Expr >.add(), BPHPlusMinusCandidate.add(), EcalHitResponse.add(), TwoBowedSurfacesDeformation.add(), pat::PATUserDataHelper< ObjectType >.add(), TH1Store.add(), pat::PATUserDataHelper< pat::Electron >.add(), pat::PATUserDataHelper< pat::Tau >.add(), pat::PATUserDataHelper< pat::Jet >.add(), pat::PATUserDataHelper< pat::Muon >.add(), pat::PATUserDataHelper< pat::PFParticle >.add(), pat::PATUserDataHelper< pat::Photon >.add(), pat::PATUserDataHelper< pat::GenericParticle >.add(), pat::PATUserDataHelper< pat::MET >.add(), SiStripQuality.add(), pat::PATUserDataHelper< pat::CompositeCandidate >.add(), AlignmentParameterBuilder.add(), TkHistoMap.add(), fit::RootMinuitCommands< Function >.add(), edm::CPUTimer.add(), ME0Geometry.add(), fwlite::EventContainer.add(), CSCDigiToRaw.add(), edm::CountAndLimit.add(), RPCGeometry.add(), DTVDriftCalibration::cellInfo.add(), sistrip::MeanAndStdDev.add(), FWEventItemsManager.add(), GenLumiInfoProduct::FinalStat.add(), MTDDetSector.add(), edm::service::ELlimitsTable.add(), BPHRecoCandidate.add(), GEMROmap.add(), HGCalConcentratorSuperTriggerCellImpl::SuperTriggerCell.add(), TTUTrackingAlg::Track.add(), CaloHitResponse.add(), EcalTimeMapDigitizer.add(), LayerHitMapCache.add(), CaloTDigitizer< Traits, runHelper >.add(), amc13::Packet.add(), reco::fitHelper::Adder< C >.add(), edm::StatsCount.add(), TkGluedMeasurementDet::HitCollectorForRecHits.add(), edm::eventsetup::EventSetupProvider.add(), reco::fitHelper::Adder< edm::OwnVector< T > >.add(), edm::Association< C >::Filler.add(), SiPixelQuality.add(), reco::Vertex.add(), AlignmentParameterSelector.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), FastLineRecognition::Cluster.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserCand >.add(), reco::CastorTower.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Jet, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::PFParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), lhef::LHERunInfo::Counter.add(), CSCBaseElectronicsSim.add(), BPHRecoBuilder.add(), CSCALCTs2006.add(), edm::eventsetup::EventSetupRecordProvider.add(), reco::CastorCluster.add(), DTGeometry.add(), edm::ParameterSetDescription.add(), GEMGeometry.add(), DTSegmentCand.add(), CSCEventData.add(), jsoncollector::IntJ.add(), edm::ReusableObjectHolder< HostType >.add(), ReusableObjectHolder< LuminosityBlockPrincipal >.add(), edm::ReusableObjectHolder< T, Deleter >.add(), edm::ReusableObjectHolder< edm::ESProductHost >.add(), edm::ReusableObjectHolder< edm::LuminosityBlockPrincipal >.add(), PhysicsTools::Variable::ValueList.add(), GEMROMapping.add(), Association< reco::VertexCollection >.add(), edm::Association< C >.add(), Association< C >.add(), edm::WaitingTaskList.add(), TkGluedMeasurementDet::HitCollectorForSimpleHits.add(), SiPixelCluster.add(), PrimaryVertexValidation.add(), edm::eventsetup::EventSetupRecordImpl.add(), MicroME.add(), GEMChMap.add(), CSCTMBHeader.add(), HitDoublets.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), o2olib.O2OJobMgr.add(), CTPPSRPAlignmentCorrectionData.add(), Folder.add(), l1tpf_calo::SingleCaloClusterer.add(), PhysicsTools::Calibration::MVAComputerContainer.add(), CSCALCTHeader.add(), ValueMap< LorentzVector >.add(), ValueMap< reco::PFCandidateRef >.add(), Filler.add(), ValueMap< T >.add(), edm::ValueMap< T >.add(), ValueMap< DeDxData >.add(), edm::ValueMap< int >.add(), ValueMap< reco::DeDxData >.add(), ValueMap< reco::CandidatePtr >.add(), edm::ValueMap< edm::Ref >.add(), vector< reco::PFCandidateRef >.add(), edm::ValueMap< std::pair< float, float > >.add(), edm::ValueMap< float >.add(), ValueMap< TP >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), pat::MET::UnpackedMETUncertainty.add(), hitfit::Fourvec_Event.add(), python.rootplot.utilities.HistStack.add(), edmStreamStallGrapher.RefCountSet.add(), and SequenceTypes._TaskBase.add().

Referenced by counter.Counter.__add__().

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

◆ 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.

References ElectronMVAID.ElectronMVAID.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::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, MEPSetData.name, AlignmentConstraint.name, PixelDCSObject< T >::Item.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, SingleObjectCondition.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, cms::DDAlgoArguments.name, Barrel.name, cond::TimeTypeSpecs.name, core.autovars.NTupleObjectType.name, perftools::EdmEventSize::BranchRecord.name, edm::PathSummary.name, EcalLogicID.name, alignment.Alignment.name, lumi::TriggerInfo.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, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cms::DDParsingContext::CompositeMaterial.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cond::Tag_t.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, FastHFShowerLibrary.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NormOption.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, cond::persistency::PAYLOAD::HASH.name, FCDTask.name, DQMGenericClient::NoFlowOption.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, looper.Looper.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, BPHDecayToResResBuilderBase::DZSelect.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, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, DQMNet::WaitObject.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, APD.name, core.autovars.NTupleCollection.name, nanoaod::FlatTable::Column.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.

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 
#define str(s)

Member Data Documentation

◆ name

counter.Counter.name