CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
counter.Counter Class Reference
Inheritance diagram for counter.Counter:

Public Member Functions

def __add__
 
def __iadd__
 
def __init__
 
def __str__
 
def inc
 
def register
 
def write
 

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 
11  def __init__(self, name):
12  self.name = name
13  super(Counter, self).__init__()

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, sistrip::SpyUtilities.range(), counter.Counter.register(), VarParsing.VarParsing.register(), and str.

Referenced by counter.Counter.__iadd__().

25 
26  def __add__(self, other):
27  '''Add two counters (+).'''
28  size = max( len(self), len(other))
29  for i in range(0, size):
30  if i>=len(other):
31  # this line exists only in this counter, leave it as is
32  continue
33  elif i>=len(self):
34  self.register( other[i][0])
35  self.inc( other[i][0], other[i][1] )
36  else:
37  if self[i][0] != other[i][0]:
38  err = ['cannot add these counters:', str(self), str(other)]
39  raise ValueError('\n'.join(err))
40  else:
41  self.inc( other[i][0], other[i][1] )
42  return self
const uint16_t range(const Frame &aFrame)
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
#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 
44  def __iadd__(self, other):
45  '''Add two counters (+=).'''
46  return self.__add__(other)
def counter.Counter.__str__ (   self)

Definition at line 58 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.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, core.autovars.NTupleVariable.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, DQMRivetClient::NormOption.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, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, AlignmentConstraint.name, PixelDCSObject< class >::Item.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, MagCylinder.name, analyzer.Analyzer.name, heppy::ParSet.name, DQMRivetClient::LumiOption.name, o2olib.O2OJob.name, cond::persistency::GTProxyData.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, cms::DDAlgoArguments.name, Barrel.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, cond::TimeTypeSpecs.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, TreeCrawler.Package.name, Supermodule.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.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, nanoaod::MergeableCounterTable::VectorColumn< T >.name, FastHFShowerLibrary.name, magneticfield::BaseVolumeHandle.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NormOption.name, CounterChecker.name, DQMGenericClient::CDOption.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.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, 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, 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 
59  def __str__(self):
60  retstr = 'Counter %s :\n' % self.name
61  prev = None
62  init = None
63  for level, count in self:
64  if prev == None:
65  prev = count
66  init = count
67  if prev == 0:
68  eff1 = -1.
69  else:
70  eff1 = float(count)/prev
71  if init == 0:
72  eff2 = -1.
73  else:
74  eff2 = float(count)/init
75  retstr += '\t {level:<40} {count:>9} \t {eff1:4.2f} \t {eff2:6.4f}\n'.format(
76  level=level,
77  count=count,
78  eff1=eff1,
79  eff2=eff2 )
80  prev = count
81  return retstr
82 
83 
84 
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 
18  def inc(self, level, nentries=1):
19  '''increment an existing level
20  '''
21  if level not in self.dico:
22  raise ValueError('level', level, 'has not been registered')
23  else:
24  self[level][1] += nentries
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(), funct::Master< F >.add(), RPCAMCLinkCounters.add(), average.Average.add(), CSCAnodeDataFormat.add(), PuppiAlgo.add(), StorableDoubleMap< T >.add(), PileUpFP420.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), RPCLinkSynchroStat.add(), CSCRPCData.add(), TkTrackingRegionsMargin< float >.add(), TkTrackingRegionsMargin< T >.add(), DDNameFilter.add(), rltinfo.RLTInfo.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(), HcalIndexLookup.add(), MuonEtaRange.add(), MuonSeedFromRecHits.add(), VertexUpdator< N >.add(), SiPileUpSignals.add(), ME0Layer.add(), CosmicHitPairGenerator.add(), DigiSimLinkPileUpSignals.add(), LinkConnSpec.add(), ME0Chamber.add(), CosmicHitTripletGenerator.add(), LayerHitMapCache::SimpleCache.add(), DccSpec.add(), PreMixingTrackingParticleWorker.add(), SiPixelDetSummary.add(), FakeCPE::Map.add(), ThirdHitPredictionFromInvLine.add(), DigiCollectionFP420.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(), 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(), SiStripPI::Entry.add(), EventWithHistory.add(), Averages.add(), RPCReadOutMapping.add(), GEMSuperChamber.add(), AlignmentSurfaceDeformations.add(), L1TriggerKey.add(), L1TriggerKeyExt.add(), pat::EventHypothesis.add(), DTChamber.add(), RPCSeedPattern.add(), CSCDDUEventData.add(), FWParameterizable.add(), FWTypeToRepresentations.add(), OrderedSet.OrderedSet.add(), CSCAnodeData2007.add(), CSCComparatorData.add(), edm::ChildrenCPUTimer.add(), PixelClusterizerBase::AccretionCluster.add(), FWConfigurationManager.add(), FWViewManagerManager.add(), edm::ConfigurationDescriptions.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), Hector.add(), SurfaceDeformation.add(), BowedSurfaceDeformation.add(), Matriplex::MatriplexSym< float, LL, NN >.add(), Matriplex::MatriplexSym< float, HH, NN >.add(), Matriplex::MatriplexSym< T, D, N >.add(), FiberG4Hit.add(), DTKeyedConfig.add(), SiStripDetSummary.add(), DTSuperLayer.add(), BPHPlusMinusCandidate.add(), CSCAnodeData2006.add(), MTDClusterizerBase::AccretionCluster.add(), edm::WallclockTimer.add(), muonisolation::NominalEfficiencyThresholds.add(), EcalHitResponse.add(), TwoBowedSurfacesDeformation.add(), pat::PATUserDataHelper< pat::pat::Jet >.add(), pat::PATUserDataHelper< pat::pat::GenericParticle >.add(), pat::PATUserDataHelper< ObjectType >.add(), pat::PATUserDataHelper< pat::pat::Tau >.add(), pat::PATUserDataHelper< pat::pat::Photon >.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(), TkHistoMap.add(), SiStripQuality.add(), TH1Store.add(), pat::PATUserDataHelper< pat::pat::MET >.add(), root::RooFitFunction< X, Expr >.add(), AlignmentParameterBuilder.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::pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserPtr >.add(), reco::CastorTower.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, 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::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserCand >.add(), FastLineRecognition::Cluster.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, 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::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserFloat >.add(), lhef::LHERunInfo::Counter.add(), CSCBaseElectronicsSim.add(), CSCALCTs2006.add(), edm::eventsetup::EventSetupRecordProvider.add(), reco::CastorCluster.add(), BPHRecoBuilder.add(), DTGeometry.add(), edm::ParameterSetDescription.add(), GEMGeometry.add(), DTSegmentCand.add(), CSCEventData.add(), jsoncollector::IntJ.add(), edm::ReusableObjectHolder< edm::ESProductHost >.add(), edm::ReusableObjectHolder< T, Deleter >.add(), edm::ReusableObjectHolder< HostType >.add(), edm::ReusableObjectHolder< edm::LuminosityBlockPrincipal >.add(), PhysicsTools::Variable::ValueList.add(), Association< reco::VertexCollection >.add(), edm::Association< C >.add(), Association< C >.add(), GEMROMapping.add(), edm::WaitingTaskList.add(), TkGluedMeasurementDet::HitCollectorForSimpleHits.add(), SiPixelCluster.add(), PrimaryVertexValidation.add(), edm::eventsetup::EventSetupRecordImpl.add(), MicroME.add(), CSCTMBHeader.add(), HitDoublets.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), o2olib.O2OJobMgr.add(), CTPPSRPAlignmentCorrectionData.add(), Folder.add(), l1tpf_calo::SingleCaloClusterer.add(), CSCALCTHeader.add(), PhysicsTools::Calibration::MVAComputerContainer.add(), ValueMap< reco::PFCandidateRef >.add(), edm::ValueMap< std::pair< float, float > >.add(), Filler.add(), edm::ValueMap< int >.add(), ValueMap< reco::CandidatePtr >.add(), edm::ValueMap< T >.add(), ValueMap< T >.add(), edm::ValueMap< reco::GsfElectronRef >.add(), edm::ValueMap< float >.add(), ValueMap< DeDxData >.add(), ValueMap< reco::DeDxData >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), ValueMap< LorentzVector >.add(), edm::ValueMap< reco::PhotonRef >.add(), ValueMap< TP >.add(), hitfit::Fourvec_Event.add(), pat::MET::PackedMETUncertainty.add(), python.rootplot.utilities.HistStack.add(), edmStreamStallGrapher.RefCountSet.add(), and SequenceTypes.Task.add().

Referenced by counter.Counter.__add__().

14 
15  def register(self, level):
16  self.add( level, [level, 0] )
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, AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.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, core.autovars.NTupleVariable.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, DQMRivetClient::NormOption.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, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, cond::persistency::O2O_RUN::LOG.name, ParameterSet.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, AlignmentConstraint.name, PixelDCSObject< class >::Item.name, cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, Types._Untracked.name, MagCylinder.name, analyzer.Analyzer.name, heppy::ParSet.name, DQMRivetClient::LumiOption.name, o2olib.O2OJob.name, cond::persistency::GTProxyData.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, cms::DDAlgoArguments.name, Barrel.name, perftools::EdmEventSize::BranchRecord.name, core.autovars.NTupleObjectType.name, cond::TimeTypeSpecs.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, TreeCrawler.Package.name, Supermodule.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, options.ConnectionHLTMenu.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.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, nanoaod::MergeableCounterTable::VectorColumn< T >.name, magneticfield::BaseVolumeHandle.name, FastHFShowerLibrary.name, emtf::Node.name, h4DSegm.name, DQMGenericClient::NormOption.name, DQMGenericClient::CDOption.name, CounterChecker.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.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, 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, 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 
48  def write(self, dirname):
49  '''Dump the counter to a pickle file and to a text file in dirname.'''
50  pckfname = '{d}/{f}.pck'.format(d=dirname, f=self.name)
51  pckfname = pckfname.replace('*','STAR')
52  pckfile = open( pckfname, 'w' )
53  pickle.dump(self, pckfile)
54  txtfile = open( pckfname.replace('.pck', '.txt'), 'w')
55  txtfile.write( str(self) )
56  txtfile.write( '\n' )
57  txtfile.close()
#define str(s)

Member Data Documentation

counter.Counter.name

Definition at line 11 of file counter.py.

Referenced by FWLite.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.CFG.__str__(), counter.Counter.__str__(), FWLite.WorkingPoints._reformat_cut_definitions(), dirstructure.Directory.calcStats(), geometryComparison.GeometryComparison.createScript(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), and counter.Counter.write().