CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 7 of file counter.py.

Constructor & Destructor Documentation

def counter.Counter.__init__ (   self,
  name 
)

Definition at line 9 of file counter.py.

9 
10  def __init__(self, name):
11  self.name = name
12  super(Counter, self).__init__()
def __init__
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 NodeCut.Int.inc(), TreeToEdges.Int.inc(), counter.Counter.inc(), join(), bookConverter.max, counter.Counter.register(), and VarParsing.VarParsing.register().

Referenced by counter.Counter.__iadd__().

24 
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
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
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__(), python.seqvaluedict.seqdict.__add__(), SequenceTypes._SequenceCollection.__add__(), LumiList.LumiList.__add__(), and Mixins._ValidatingListBase.__add__().

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

Definition at line 57 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, counter.Counter.name, entry.name, average.Average.name, TmModule.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::NAME.name, genericValidation.GenericValidation.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, preexistingValidation.PreexistingValidation.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::GTEditorData.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, personalPlayback.Applet.name, ParameterSet.name, PixelDCSObject< class >::Item.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, alignment.Alignment.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, DQMGenericClient::EfficOption.name, cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, edm::PathSummary.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, FWTableViewManager::TableEntry.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, RecAnalyzerMinbias.name, PixelBarrelLinkMaker::Item.name, EcalLogicID.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, McSelector.name, RecoSelector.name, DQMGenericClient::ProfileOption.name, cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, options.ConnectionHLTMenu.name, DQMGenericClient::CDOption.name, h4DSegm.name, cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, looper.Looper.name, EDMtoMEConverter.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, config.Analyzer.name, config.Service.name, core.autovars.NTupleSubObject.name, core.autovars.NTupleObject.name, h2DSegm.name, options.HLTProcessOptions.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleCollection.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, FastTimerService::LuminosityDescription.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_TOKEN.name, cond::persistency::PAYLOAD_MIGRATION::PAYLOAD_HASH.name, cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.name, conddblib.Tag.name, conddblib.GlobalTag.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, and BeautifulSoup.SoupStrainer.name.

57 
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 
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 
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
def counter.Counter.register (   self,
  level 
)

Definition at line 13 of file counter.py.

References SeedCleanerByHitPosition.add(), CachingSeedCleanerByHitPosition.add(), RedundantSeedCleaner.add(), SeedCleanerBySharedInput.add(), CachingSeedCleanerBySharedInput.add(), OOTPileupCorrectionColl.add(), StringMap.add(), PuppiAlgo.add(), diclist.diclist.add(), CSCAnodeDataFormat.add(), average.Average.add(), StorableDoubleMap< T >.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), funct::Master< F >.add(), ora::RecordSpec.add(), PhysicsTools::LeastSquares.add(), CSCRPCData.add(), PileUpFP420.add(), RPCLinkSynchroStat.add(), rltinfo.RLTInfo.add(), TkTrackingRegionsMargin< T >.add(), Majority< T >.add(), TkTrackingRegionsMargin< float >.add(), Majority< int >.add(), rpcrawtodigi::EventRecords.add(), ESCrcKchipFast.add(), CompatibleDetToGroupAdder.add(), KalmanVertexUpdator< N >.add(), pos::PixelConfig.add(), KalmanVertexUpdator< 5 >.add(), reco::TrackKinematics.add(), materialEffect::Covariance.add(), LayerHitMapCache::SimpleCache.add(), GsfVertexUpdator.add(), SiPileUpSignals.add(), ForwardDetRingOneZ.add(), CSCAnodeData.add(), MuonSeedFromRecHits.add(), ThirdHitPredictionFromInvLine.add(), DigiSimLinkPileUpSignals.add(), sipixelobjects::PixelFEDLink.add(), MuonEtaRange.add(), VertexUpdator< N >.add(), tracking::TempMeasurements.add(), LinkConnSpec.add(), GenParticleDecaySelector.add(), VertexUpdator< 5 >.add(), SiPixelDetSummary.add(), edm::ExceptionToActionTable.add(), DccSpec.add(), cond::BaseValueExtractor< T >.add(), cond::BaseValueExtractor< Pedestals >.add(), cond::BaseValueExtractor< HcalGains >.add(), cond::BaseValueExtractor< EcalDAQTowerStatus >.add(), cond::BaseValueExtractor< RPCObImon >.add(), helper::CandDecayStoreManager.add(), cond::BaseValueExtractor< RunNumber >.add(), cond::BaseValueExtractor< HcalValidationCorrs >.add(), cond::BaseValueExtractor< DTHVStatus >.add(), cond::BaseValueExtractor< RunSummary >.add(), cond::BaseValueExtractor< DTPerformance >.add(), cond::BaseValueExtractor< SiStripPedestals >.add(), cond::BaseValueExtractor< DTTtrig >.add(), cond::BaseValueExtractor< RPCObVmon >.add(), cond::BaseValueExtractor< SiStripRunSummary >.add(), cond::BaseValueExtractor< DTCCBConfig >.add(), cond::BaseValueExtractor< SiStripFedCabling >.add(), cond::BaseValueExtractor< EcalDQMTowerStatus >.add(), cond::BaseValueExtractor< EcalADCToGeVConstant >.add(), cond::BaseValueExtractor< SiStripConfObject >.add(), cond::BaseValueExtractor< Phase2TrackerCabling >.add(), cond::BaseValueExtractor< EcalGainRatios >.add(), cond::BaseValueExtractor< DTReadOutMapping >.add(), cond::BaseValueExtractor< EcalDQMChannelStatus >.add(), cond::BaseValueExtractor< ESGain >.add(), cond::BaseValueExtractor< Alignments >.add(), cond::BaseValueExtractor< DTLVStatus >.add(), cond::BaseValueExtractor< EcalWeightXtalGroups >.add(), cond::BaseValueExtractor< EcalMappingElectronics >.add(), cond::BaseValueExtractor< SiStripLatency >.add(), cond::BaseValueExtractor< SiStripLorentzAngle >.add(), cond::BaseValueExtractor< HcalGainWidths >.add(), cond::BaseValueExtractor< SiStripNoises >.add(), cond::BaseValueExtractor< SiStripDetVOff >.add(), cond::BaseValueExtractor< HcalPedestals >.add(), cond::BaseValueExtractor< DTMtime >.add(), cond::BaseValueExtractor< L1TriggerScaler >.add(), cond::BaseValueExtractor< EcalDCSTowerStatus >.add(), cond::BaseValueExtractor< EcalTimeBiasCorrections >.add(), cond::BaseValueExtractor< DTDeadFlag >.add(), cond::BaseValueExtractor< HcalZSThresholds >.add(), cond::BaseValueExtractor< HcalQIEData >.add(), cond::BaseValueExtractor< EcalTPGPedestals >.add(), cond::BaseValueExtractor< HcalTimeCorrs >.add(), cond::BaseValueExtractor< DTRangeT0 >.add(), cond::BaseValueExtractor< EcalTBWeights >.add(), cond::BaseValueExtractor< SiStripBadStrip >.add(), cond::BaseValueExtractor< RPCObTemp >.add(), cond::BaseValueExtractor< EcalTPGCrystalStatus >.add(), cond::BaseValueExtractor< EcalPedestals >.add(), cond::BaseValueExtractor< SiStripSummary >.add(), cond::BaseValueExtractor< AlCaRecoTriggerBits >.add(), cond::BaseValueExtractor< EcalPulseShapes >.add(), cond::BaseValueExtractor< DTTPGParameters >.add(), cond::BaseValueExtractor< EcalPulseCovariances >.add(), cond::BaseValueExtractor< RPCObGas >.add(), cond::BaseValueExtractor< HcalChannelQuality >.add(), cond::BaseValueExtractor< EcalLinearCorrections >.add(), cond::BaseValueExtractor< SiStripBackPlaneCorrection >.add(), cond::BaseValueExtractor< SiStripBaseDelay >.add(), cond::BaseValueExtractor< HcalRespCorrs >.add(), cond::BaseValueExtractor< RunInfo >.add(), cond::BaseValueExtractor< EcalLaserAPDPNRatios >.add(), cond::BaseValueExtractor< SiStripApvGain >.add(), cond::BaseValueExtractor< FillInfo >.add(), cond::BaseValueExtractor< ecalcond::Container >.add(), cond::BaseValueExtractor< HcalLUTCorrs >.add(), cond::BaseValueExtractor< EcalTPGLinearizationConst >.add(), cond::BaseValueExtractor< HcalLutMetadata >.add(), cond::BaseValueExtractor< DTStatusFlag >.add(), cond::BaseValueExtractor< RPCObPVSSmap >.add(), cond::BaseValueExtractor< BeamSpotObjects >.add(), cond::BaseValueExtractor< SiStripThreshold >.add(), cond::BaseValueExtractor< HcalPFCorrs >.add(), cond::BaseValueExtractor< DTT0 >.add(), DigiCollectionFP420.add(), LinkBoardSpec.add(), CSCCFEBData.add(), fwlite::RunLumiSelector.add(), TriggerBoardSpec.add(), edm::helper::Filler< Map >.add(), edm::helper::Filler< Association< C > >.add(), ora::PoolDbCache.add(), CosmicHitTripletGenerator.add(), RPCLinkSynchroStat::LinkBoard.add(), GEMRing.add(), CosmicHitPairGenerator.add(), pat::EventHypothesis.add(), G4SimEvent.add(), DetRodOneR.add(), EventWithHistory.add(), sistrip::LinearFit.add(), GEMRegion.add(), GEMStation.add(), RPCChamber.add(), GEMChamber.add(), AutoCorrMat.add(), EcalTDigitizer< Traits >.add(), EcalTDigitizer< ESDigitizerTraits >.add(), EBHitResponse.add(), ora::OraSequenceTable.add(), Averages.add(), GEMSuperChamber.add(), TkHistoMap.add(), AlignmentSurfaceDeformations.add(), HcalSiPMHitResponse.add(), DTChamber.add(), RPCReadOutMapping.add(), FWTypeToRepresentations.add(), LaserHitPairGenerator.add(), CSCDDUEventData.add(), RPCSeedPattern.add(), cond::IOVSequence.add(), CSCDigiToRaw.add(), edm::ConfigurationDescriptions.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), SurfaceDeformation.add(), BowedSurfaceDeformation.add(), CSCAnodeData2007.add(), FWConfigurationManager.add(), FWParameterizable.add(), FWViewManagerManager.add(), CSCCLCTData.add(), Hector.add(), SiStripDetSummary.add(), DTKeyedConfig.add(), edm::WallclockTimer.add(), ora::ISequenceTable.add(), root::RooFitFunction< X, Expr >.add(), FiberG4Hit.add(), L1TriggerKey.add(), DTSuperLayer.add(), TwoBowedSurfacesDeformation.add(), ME0Geometry.add(), CSCAnodeData2006.add(), muonisolation::NominalEfficiencyThresholds.add(), CaloTDigitizer< Traits >.add(), EcalHitResponse.add(), CaloHitRespoNew.add(), edm::CPUTimer.add(), AlignmentParameterBuilder.add(), SiStripQuality.add(), TH1Store.add(), PhysicsTools::MVATrainerLooper::TrainerContainer.add(), reco::Vertex.add(), pat::PATUserDataHelper< pat::pat::Photon >.add(), pat::PATUserDataHelper< pat::pat::PFParticle >.add(), pat::PATUserDataHelper< pat::pat::Electron >.add(), pat::PATUserDataHelper< pat::pat::CompositeCandidate >.add(), DTVDriftCalibration::cellInfo.add(), FWEventItemsManager.add(), pat::PATUserDataHelper< pat::pat::Tau >.add(), pat::PATUserDataHelper< pat::pat::Jet >.add(), pat::PATUserDataHelper< pat::pat::MET >.add(), pat::PATUserDataHelper< pat::pat::GenericParticle >.add(), pat::PATUserDataHelper< pat::pat::Muon >.add(), fwlite::EventContainer.add(), pat::PATUserDataHelper< ObjectType >.add(), reco::fitHelper::Adder< C >.add(), RPCGeometry.add(), CaloHitResponse.add(), GenLumiInfoProduct::FinalStat.add(), reco::fitHelper::Adder< edm::OwnVector< T > >.add(), edm::service::ELlimitsTable.add(), TkGluedMeasurementDet::HitCollectorForRecHits.add(), edm::CountAndLimit.add(), fit::RootMinuitCommands< Function >.add(), reco::CastorTower.add(), sistrip::MeanAndStdDev.add(), ora::PoolSequenceTable.add(), amc13::Packet.add(), edm::eventsetup::EventSetupProvider.add(), reco::CastorCluster.add(), edm::Association< C >::Filler.add(), edm::eventsetup::EventSetupRecordProvider.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), AlignmentParameterSelector.add(), CSCALCTs2006.add(), TTUTrackingAlg::Track.add(), edm::ParameterSetDescription.add(), edm::StatsCount.add(), DTGeometry.add(), CSCBaseElectronicsSim.add(), edm::ReusableObjectHolder< T >.add(), GEMGeometry.add(), Chamber_AutoCorrMat.add(), lhef::LHERunInfo::Counter.add(), SiPixelQuality.add(), DTSegmentCand.add(), edm::WaitingTaskList.add(), Association< C >.add(), edm::Association< C >.add(), edm::Association< reco::FFTJPTJetCollection >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryCollection > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterCollection > >.add(), edm::Association< std::vector< reco::PFTau > >.add(), edm::Association< std::vector< reco::PFTau3ProngSummary > >.add(), edm::Association< reco::PFJetCollection >.add(), edm::Association< reco::FFTGenJetCollection >.add(), edm::Association< std::vector< reco::Vertex > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterRef > >.add(), edm::Association< reco::FFTPFJetCollection >.add(), edm::Association< reco::FFTBasicJetCollection >.add(), edm::Association< TriggerObjectStandAloneCollection >.add(), edm::Association< std::vector< std::vector< reco::VertexRef > > >.add(), edm::Association< std::vector< reco::VertexRef > >.add(), edm::Association< std::vector< reco::PFTauDecayMode > >.add(), edm::Association< TriggerObjectCollection >.add(), edm::Association< DeDxHitInfoCollection >.add(), edm::Association< reco::FFTTrackJetCollection >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameter > >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryRef > >.add(), edm::Association< reco::FFTCaloJetCollection >.add(), edm::Association< reco::GenJetCollection >.add(), jsoncollector::IntJ.add(), PhysicsTools::Variable::ValueList.add(), TkGluedMeasurementDet::HitCollectorForSimpleHits.add(), SiPixelCluster.add(), pos::PixelConfigList.add(), edm::EventSetup.add(), CSCEventData.add(), MicroME.add(), CSCTMBHeader.add(), PhysicsTools::TrainerMonitoring::Module.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), create_public_lumi_plots.LumiDataBlock.add(), HitDoublets.add(), Folder.add(), popcon::PopConSourceHandler< HcalQIEData >.add(), popcon::PopConSourceHandler< FileBlob >.add(), popcon::PopConSourceHandler< T >.add(), popcon::PopConSourceHandler< bool >.add(), popcon::PopConSourceHandler< HcalRespCorrs >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.add(), popcon::PopConSourceHandler< DTT0 >.add(), popcon::PopConSourceHandler< CastorSaturationCorrs >.add(), popcon::PopConSourceHandler< HcalLutMetadata >.add(), popcon::PopConSourceHandler< RPCObUXC >.add(), popcon::PopConSourceHandler< EcalTPGPhysicsConst >.add(), popcon::PopConSourceHandler< HDQMSummary >.add(), popcon::PopConSourceHandler< HcalTimingParams >.add(), popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.add(), popcon::PopConSourceHandler< HcalChannelQuality >.add(), popcon::PopConSourceHandler< DTLVStatus >.add(), popcon::PopConSourceHandler< HcalPedestals >.add(), popcon::PopConSourceHandler< DQMSummary >.add(), popcon::PopConSourceHandler< HcalPFCorrs >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBIdMap >.add(), popcon::PopConSourceHandler< EcalTPGLutGroup >.add(), popcon::PopConSourceHandler< EcalMappingElectronics >.add(), popcon::PopConSourceHandler< RPCObVmon >.add(), popcon::PopConSourceHandler< HcalLongRecoParams >.add(), popcon::PopConSourceHandler< HcalZDCLowGainFractions >.add(), popcon::PopConSourceHandler< RPCObImon >.add(), popcon::PopConSourceHandler< HcalGains >.add(), popcon::PopConSourceHandler< EcalIntercalibConstants >.add(), popcon::PopConSourceHandler< Payload >.add(), popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.add(), popcon::PopConSourceHandler< RPCObPVSSmap >.add(), popcon::PopConSourceHandler< HcalCholeskyMatrices >.add(), popcon::PopConSourceHandler< DTRangeT0 >.add(), popcon::PopConSourceHandler< HcalTimeCorrs >.add(), popcon::PopConSourceHandler< DTTtrig >.add(), popcon::PopConSourceHandler< CastorGains >.add(), popcon::PopConSourceHandler< CastorElectronicsMap >.add(), popcon::PopConSourceHandler< RPCDQMObject >.add(), popcon::PopConSourceHandler< EcalSRSettings >.add(), popcon::PopConSourceHandler< EcalTPGLinearizationConst >.add(), popcon::PopConSourceHandler< EcalPulseShapes >.add(), popcon::PopConSourceHandler< DTMtime >.add(), popcon::PopConSourceHandler< SiStripDetVOff >.add(), popcon::PopConSourceHandler< FillInfo >.add(), popcon::PopConSourceHandler< EcalTPGPedestals >.add(), popcon::PopConSourceHandler< RPCObTemp >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.add(), popcon::PopConSourceHandler< EcalTPGCrystalStatus >.add(), popcon::PopConSourceHandler< HcalZSThresholds >.add(), popcon::PopConSourceHandler< RPCObGasMix >.add(), popcon::PopConSourceHandler< EcalTPGWeightGroup >.add(), popcon::PopConSourceHandler< DTReadOutMapping >.add(), popcon::PopConSourceHandler< EcalChannelStatus >.add(), popcon::PopConSourceHandler< DTCCBConfig >.add(), popcon::PopConSourceHandler< HcalPedestalWidths >.add(), popcon::PopConSourceHandler< EcalTPGSlidingWindow >.add(), popcon::PopConSourceHandler< RPCObStatus >.add(), popcon::PopConSourceHandler< RunSummary >.add(), popcon::PopConSourceHandler< RunInfo >.add(), popcon::PopConSourceHandler< DTHVStatus >.add(), PrimaryVertexAnalyzer4PU.add(), popcon::PopConSourceHandler< EcalDAQTowerStatus >.add(), popcon::PopConSourceHandler< CastorRecoParams >.add(), popcon::PopConSourceHandler< CastorQIEData >.add(), popcon::PopConSourceHandler< EcalTPGLutIdMap >.add(), popcon::PopConSourceHandler< DTTPGParameters >.add(), popcon::PopConSourceHandler< PixelDCSObject< Type > >.add(), popcon::PopConSourceHandler< HcalValidationCorrs >.add(), popcon::PopConSourceHandler< RPCObFebmap >.add(), popcon::PopConSourceHandler< EcalTPGStripStatus >.add(), popcon::PopConSourceHandler< HcalMCParams >.add(), popcon::PopConSourceHandler< EcalPedestals >.add(), popcon::PopConSourceHandler< HcalL1TriggerObjects >.add(), popcon::PopConSourceHandler< HcalDcsMap >.add(), popcon::PopConSourceHandler< EcalTPGTowerStatus >.add(), popcon::PopConSourceHandler< CastorPedestalWidths >.add(), popcon::PopConSourceHandler< EcalDCSTowerStatus >.add(), popcon::PopConSourceHandler< HcalFlagHFDigiTimeParams >.add(), popcon::PopConSourceHandler< DTPerformance >.add(), popcon::PopConSourceHandler< HcalRecoParams >.add(), popcon::PopConSourceHandler< HcalCovarianceMatrices >.add(), popcon::PopConSourceHandler< EcalADCToGeVConstant >.add(), popcon::PopConSourceHandler< HcalLUTCorrs >.add(), popcon::PopConSourceHandler< SiPixelCalibConfiguration >.add(), popcon::PopConSourceHandler< CastorPedestals >.add(), popcon::PopConSourceHandler< L1TriggerScaler >.add(), popcon::PopConSourceHandler< EcalTPGSpike >.add(), popcon::PopConSourceHandler< RPCEMap >.add(), popcon::PopConSourceHandler< CastorChannelQuality >.add(), popcon::PopConSourceHandler< EcalPulseCovariances >.add(), popcon::PopConSourceHandler< CastorGainWidths >.add(), popcon::PopConSourceHandler< L1RPCHwConfig >.add(), popcon::PopConSourceHandler< EcalTPGWeightIdMap >.add(), popcon::PopConSourceHandler< RPCStripNoises >.add(), popcon::PopConSourceHandler< HcalGainWidths >.add(), popcon::PopConSourceHandler< RPCObGas >.add(), popcon::PopConSourceHandler< SiPixelFedCablingMap >.add(), popcon::PopConSourceHandler< HcalElectronicsMap >.add(), popcon::PopConSourceHandler< HcalDcsValues >.add(), popcon::PopConSourceHandler< DTDeadFlag >.add(), popcon::PopConSourceHandler< DTStatusFlag >.add(), popcon::PopConSourceHandler< SiPixelDisabledModules >.add(), CSCALCTHeader.add(), __class__< T >.add(), edm::eventsetup::EventSetupRecord.add(), create_public_lumi_plots.LumiDataBlockCollection.add(), pat::MET::PackedMETUncertainty.add(), edm::ValueMap< edm::Ptr >.add(), edm::ValueMap< T >.add(), edm::ValueMap< reco::TrackRefVector >.add(), ValueMap< reco::PFCandidatePtr >.add(), edm::ValueMap< reco::PhotonRef >.add(), edm::ValueMap< reco::MuonRef >.add(), edm::ValueMap< vid::CutFlowResult >.add(), edm::ValueMap< edm::Ptr< std::vector< reco::PFCandidate > > >.add(), edm::ValueMap< reco::SuperClusterRef >.add(), edm::ValueMap< reco::CaloCluster >.add(), edm::ValueMap< int >.add(), edm::ValueMap< reco::MuonCosmicCompatibility >.add(), edm::ValueMap< edm::Ptr< reco::PFCandidate > >.add(), ValueMap< T >.add(), edm::ValueMap< edm::Ref< std::vector< reco::GsfElectron >, reco::GsfElectron, edm::refhelper::FindUsingAdvance< std::vector< reco::GsfElectron >, reco::GsfElectron > > >.add(), edm::ValueMap< edm::Ref< std::vector< reco::PFCandidate >, reco::PFCandidate, edm::refhelper::FindUsingAdvance< std::vector< reco::PFCandidate >, reco::PFCandidate > > >.add(), edm::ValueMap< pat::JetCorrFactors >.add(), edm::ValueMap< edm::Ptr< reco::BaseTagInfo > >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), edm::ValueMap< reco::GsfElectronRef >.add(), edm::ValueMap< reco::CaloClusterPtrVector >.add(), edm::ValueMap< reco::MuonQuality >.add(), edm::ValueMap< float >.add(), edm::ValueMap< reco::FlavorHistory >.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::IsoDeposit >.add(), edm::ValueMap< reco::VoronoiBackground >.add(), edm::ValueMap< reco::FlavorHistoryEvent >.add(), edm::ValueMap< reco::DeDxData >.add(), edm::ValueMap< AlignmentClusterFlag >.add(), edm::ValueMap< pat::TauJetCorrFactors >.add(), edm::ValueMap< edm::Ref< std::vector< reco::Photon >, reco::Photon, edm::refhelper::FindUsingAdvance< std::vector< reco::Photon >, reco::Photon > > >.add(), edm::ValueMap< StoredPileupJetIdentifier >.add(), edm::ValueMap< reco::MuonShower >.add(), edm::ValueMap< reco::MuonTimeExtra >.add(), edm::ValueMap< CandKinResolution >.add(), edm::ValueMap< reco::MuonMETCorrectionData >.add(), edm::ValueMap< reco::CaloClusterPtr >.add(), value_type.add(), edm::ValueMap< reco::DYTInfo >.add(), PhysicsTools::Calibration::MVAComputerContainer.add(), hitfit::Fourvec_Event.add(), and python.rootplot.utilities.HistStack.add().

Referenced by counter.Counter.__add__().

13 
14  def register(self, level):
15  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 46 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, counter.Counter.name, entry.name, average.Average.name, TmModule.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::NAME.name, genericValidation.GenericValidation.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, preexistingValidation.PreexistingValidation.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::GTEditorData.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, personalPlayback.Applet.name, ParameterSet.name, PixelDCSObject< class >::Item.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, alignment.Alignment.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, DQMGenericClient::EfficOption.name, cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, edm::PathSummary.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, FWTableViewManager::TableEntry.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, RecAnalyzerMinbias.name, PixelBarrelLinkMaker::Item.name, EcalLogicID.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, McSelector.name, RecoSelector.name, DQMGenericClient::ProfileOption.name, cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, options.ConnectionHLTMenu.name, DQMGenericClient::CDOption.name, h4DSegm.name, cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, looper.Looper.name, EDMtoMEConverter.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, config.Analyzer.name, config.Service.name, core.autovars.NTupleSubObject.name, core.autovars.NTupleObject.name, h2DSegm.name, options.HLTProcessOptions.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleCollection.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, FastTimerService::LuminosityDescription.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_TOKEN.name, cond::persistency::PAYLOAD_MIGRATION::PAYLOAD_HASH.name, cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.name, conddblib.Tag.name, conddblib.GlobalTag.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, and BeautifulSoup.SoupStrainer.name.

46 
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()

Member Data Documentation

counter.Counter.name

Definition at line 10 of file counter.py.

Referenced by dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.CFG.__str__(), counter.Counter.__str__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), and counter.Counter.write().