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 7 of file counter.py.

Constructor & Destructor Documentation

def counter.Counter.__init__ (   self,
  name 
)

Definition at line 9 of file counter.py.

9  def __init__(self, name):
10  self.name = name
11  super(Counter, self).__init__()
12 
def __init__(self, name)
Definition: counter.py:9

Member Function Documentation

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

Definition at line 24 of file counter.py.

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

Referenced by counter.Counter.__iadd__().

24  def __add__(self, other):
25  '''Add two counters (+).'''
26  size = max( len(self), len(other))
27  for i in range(0, size):
28  if i>=len(other):
29  # this line exists only in this counter, leave it as is
30  continue
31  elif i>=len(self):
32  self.register( other[i][0])
33  self.inc( other[i][0], other[i][1] )
34  else:
35  if self[i][0] != other[i][0]:
36  err = ['cannot add these counters:', str(self), str(other)]
37  raise ValueError('\n'.join(err))
38  else:
39  self.inc( other[i][0], other[i][1] )
40  return self
41 
def inc(self, level, nentries=1)
Definition: counter.py:16
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def register(self, level)
Definition: counter.py:13
def __add__(self, other)
Definition: counter.py:24
#define str(s)
def counter.Counter.__iadd__ (   self,
  other 
)
Add two counters (+=).

Definition at line 42 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__().

42  def __iadd__(self, other):
43  '''Add two counters (+=).'''
44  return self.__add__(other)
45 
def __add__(self, other)
Definition: counter.py:24
def __iadd__(self, other)
Definition: counter.py:42
def counter.Counter.__str__ (   self)

Definition at line 57 of file counter.py.

References objects.autophobj.float, ElectronMVAID.ElectronMVAID.name, counter.Counter.name, average.Average.name, AlignableObjectId::entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.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, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.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::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, OutputMEPSet.name, personalPlayback.Applet.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, MyWatcher.name, edm::PathTimingSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDAlgoArguments.name, lumi::TriggerInfo.name, alignment.Alignment.name, cond::TimeTypeSpecs.name, edm::PathSummary.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, validateAlignments.ParallelMergeJob.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, genericValidation.GenericValidation.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FastHFShowerLibrary.name, DQMGenericClient::CDOption.name, CounterChecker.name, cond::TagInfo_t.name, looper.Looper.name, DQMGenericClient::NoFlowOption.name, cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, EDMtoMEConverter.name, cond::persistency::IOV::SINCE.name, Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, HistogramManager.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, options.HLTProcessOptions.name, h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleObject.name, config.Service.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, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, and BeautifulSoup.SoupStrainer.name.

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

Definition at line 16 of file counter.py.

References diclist.diclist.dico.

Referenced by counter.Counter.__add__().

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

Definition at line 13 of file counter.py.

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

Referenced by counter.Counter.__add__().

13  def register(self, level):
14  self.add( level, [level, 0] )
15 
def register(self, level)
Definition: counter.py:13
def counter.Counter.write (   self,
  dirname 
)
Dump the counter to a pickle file and to a text file in dirname.

Definition at line 46 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, counter.Counter.name, average.Average.name, AlignableObjectId::entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.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, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.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::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, OutputMEPSet.name, personalPlayback.Applet.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, MyWatcher.name, edm::PathTimingSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDAlgoArguments.name, lumi::TriggerInfo.name, alignment.Alignment.name, cond::TimeTypeSpecs.name, edm::PathSummary.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, validateAlignments.ParallelMergeJob.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::DATA.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, FastHFShowerLibrary.name, DQMGenericClient::CDOption.name, CounterChecker.name, cond::TagInfo_t.name, looper.Looper.name, DQMGenericClient::NoFlowOption.name, cond::persistency::IOV::TAG_NAME.name, EDMtoMEConverter.name, TrackerSectorStruct.name, cond::persistency::IOV::SINCE.name, Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, classes.MonitorData.name, HistogramManager.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, options.HLTProcessOptions.name, h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleObject.name, config.Service.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, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, and str.

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

Member Data Documentation

counter.Counter.name