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

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, name)
Definition: counter.py:10

Member Function Documentation

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

Definition at line 25 of file counter.py.

References counter.Counter.inc(), join(), SiStripPI.max, 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 
def inc(self, level, nentries=1)
Definition: counter.py:17
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def register(self, level)
Definition: counter.py:14
def __add__(self, other)
Definition: counter.py:25
#define str(s)
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 
def __add__(self, other)
Definition: counter.py:25
def __iadd__(self, other)
Definition: counter.py:43
def counter.Counter.__str__ (   self)

Definition at line 58 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, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::GLOBAL_TAG::VALIDITY.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, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, personalPlayback.Applet.name, Types._Untracked.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, MyWatcher.name, core.autovars.NTupleObjectType.name, edm::PathSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, alignment.Alignment.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, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, cms::DDAlgoArguments.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, FastHFShowerLibrary.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, TrackerSectorStruct.name, cond::TagInfo_t.name, DQMGenericClient::NoFlowOption.name, looper.Looper.name, cond::persistency::IOV::TAG_NAME.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, geometry.Structure.name, config.Analyzer.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.

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 
def __str__(self)
Definition: counter.py:58
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 
def inc(self, level, nentries=1)
Definition: counter.py:17
def counter.Counter.register (   self,
  level 
)

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

Referenced by counter.Counter.__add__().

14  def register(self, level):
15  self.add( level, [level, 0] )
16 
def register(self, level)
Definition: counter.py:14
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, counter.Counter.name, average.Average.name, AlignableObjectId::entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::GLOBAL_TAG::VALIDITY.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, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, personalPlayback.Applet.name, Types._Untracked.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, analyzer.Analyzer.name, ParSet.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, MyWatcher.name, core.autovars.NTupleObjectType.name, edm::PathSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, alignment.Alignment.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, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, cms::DDAlgoArguments.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, FastHFShowerLibrary.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, TrackerSectorStruct.name, cond::TagInfo_t.name, DQMGenericClient::NoFlowOption.name, looper.Looper.name, cond::persistency::IOV::TAG_NAME.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, 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 
def write(self, dirname)
Definition: counter.py:47
#define str(s)

Member Data Documentation

counter.Counter.name