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

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

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

46 
47  def __iadd__(self, other):
48  '''Add two counters (+=).'''
49  return self.__add__(other)
def counter.Counter.__str__ (   self)

Definition at line 61 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, counter.Counter.name, core.autovars.NTupleVariable.name, entry.name, average.Average.name, cond::persistency::GLOBAL_TAG::NAME.name, TmModule.name, cond::persistency::TAG::NAME.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::TAG::SYNCHRONIZATION.name, EventMonitor::Entry.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, alignment.Alignment.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, ParameterSet.name, PixelDCSObject< class >::Item.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, core.autovars.NTupleObjectType.name, cond::persistency::GTProxyData.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, DQMGenericClient::EfficOption.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.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, PixelBarrelLinkMaker::Item.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, McSelector.name, ExpressionHisto< T >.name, RecoSelector.name, XMLProcessor::_loaderBaseConfig.name, DQMGenericClient::ProfileOption.name, cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, DQMGenericClient::CDOption.name, cond::TagInfo_t.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, core.autovars.NTupleObject.name, looper.Looper.name, EDMtoMEConverter.name, options.HLTProcessOptions.name, config.Analyzer.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, core.autovars.NTupleCollection.name, config.Service.name, h2DSegm.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.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, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, and BeautifulSoup.SoupStrainer.name.

61 
62  def __str__(self):
63  retstr = 'Counter %s :\n' % self.name
64  prev = None
65  init = None
66  for level, count in self:
67  if prev == None:
68  prev = count
69  init = count
70  if prev == 0:
71  eff1 = -1.
72  else:
73  eff1 = float(count)/prev
74  if init == 0:
75  eff2 = -1.
76  else:
77  eff2 = float(count)/init
78  retstr += '\t {level:<40} {count:>9} \t {eff1:4.2f} \t {eff2:6.4f}\n'.format(
79  level=level,
80  count=count,
81  eff1=eff1,
82  eff2=eff2 )
83  prev = count
84  return retstr
85 
86 
87 
def counter.Counter.inc (   self,
  level,
  nentries = 1 
)
Call this function to create a level for this counter,
or to 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  '''Call this function to create a level for this counter,
19  or to increment an existing level.
20  '''
21  if level not in self.dico:
22  raise ValueError('level', level, 'has not been registered')
23  # self.add( level, [level, nentries])
24  else:
25  self[level][1] += nentries
def counter.Counter.register (   self,
  level 
)

Definition at line 13 of file counter.py.

References SeedCleanerByHitPosition.add(), diclist.diclist.add(), CachingSeedCleanerByHitPosition.add(), RedundantSeedCleaner.add(), SeedCleanerBySharedInput.add(), CachingSeedCleanerBySharedInput.add(), StringMap.add(), OOTPileupCorrectionColl.add(), PuppiAlgo.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(), VertexUpdator< 5 >.add(), GenParticleDecaySelector.add(), LinkConnSpec.add(), SiPixelDetSummary.add(), edm::ExceptionToActionTable.add(), DccSpec.add(), helper::CandDecayStoreManager.add(), cond::BaseValueExtractor< T >.add(), cond::BaseValueExtractor< Pedestals >.add(), cond::BaseValueExtractor< HcalGains >.add(), cond::BaseValueExtractor< EcalDAQTowerStatus >.add(), cond::BaseValueExtractor< RPCObImon >.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(), fwlite::RunLumiSelector.add(), CSCCFEBData.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(), G4SimEvent.add(), pat::EventHypothesis.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(), TkHistoMap.add(), GEMSuperChamber.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(), FiberG4Hit.add(), L1TriggerKey.add(), root::RooFitFunction< X, Expr >.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::Electron >.add(), pat::PATUserDataHelper< pat::pat::Photon >.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(), pat::PATUserDataHelper< pat::pat::PFParticle >.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(), 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::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserInt >.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::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::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Electron, 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::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserPtr >.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::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), AlignmentParameterSelector.add(), CSCALCTs2006.add(), edm::ParameterSetDescription.add(), TTUTrackingAlg::Track.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::PFJetCollection >.add(), edm::Association< reco::GenJetCollection >.add(), edm::Association< reco::FFTCaloJetCollection >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryRef > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterRef > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameter > >.add(), edm::Association< std::vector< reco::PFTau3ProngSummary > >.add(), edm::Association< std::vector< reco::PFTauDecayMode > >.add(), edm::Association< reco::FFTPFJetCollection >.add(), edm::Association< std::vector< reco::VertexRef > >.add(), edm::Association< TriggerObjectStandAloneCollection >.add(), edm::Association< std::vector< std::vector< reco::VertexRef > > >.add(), edm::Association< reco::FFTBasicJetCollection >.add(), edm::Association< TriggerObjectCollection >.add(), edm::Association< std::vector< reco::Vertex > >.add(), edm::Association< reco::FFTGenJetCollection >.add(), edm::Association< reco::FFTTrackJetCollection >.add(), edm::Association< std::vector< reco::PFTau > >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryCollection > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterCollection > >.add(), edm::Association< reco::FFTJPTJetCollection >.add(), edm::Association< DeDxHitInfoCollection >.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(), amc13::Packet.add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements.add(), create_public_lumi_plots.LumiDataBlock.add(), HitDoublets.add(), Folder.add(), popcon::PopConSourceHandler< T >.add(), popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.add(), popcon::PopConSourceHandler< L1RPCHwConfig >.add(), popcon::PopConSourceHandler< DTStatusFlag >.add(), popcon::PopConSourceHandler< Payload >.add(), popcon::PopConSourceHandler< RPCObPVSSmap >.add(), popcon::PopConSourceHandler< EcalPulseCovariances >.add(), popcon::PopConSourceHandler< HcalDcsMap >.add(), popcon::PopConSourceHandler< EcalTPGSpike >.add(), popcon::PopConSourceHandler< CastorElectronicsMap >.add(), popcon::PopConSourceHandler< bool >.add(), popcon::PopConSourceHandler< CastorChannelQuality >.add(), popcon::PopConSourceHandler< HcalMCParams >.add(), popcon::PopConSourceHandler< EcalMappingElectronics >.add(), popcon::PopConSourceHandler< CastorQIEData >.add(), popcon::PopConSourceHandler< RPCObGas >.add(), popcon::PopConSourceHandler< HcalLUTCorrs >.add(), popcon::PopConSourceHandler< DTT0 >.add(), popcon::PopConSourceHandler< FileBlob >.add(), popcon::PopConSourceHandler< DQMSummary >.add(), popcon::PopConSourceHandler< SiPixelFedCablingMap >.add(), popcon::PopConSourceHandler< HcalPFCorrs >.add(), popcon::PopConSourceHandler< DTPerformance >.add(), popcon::PopConSourceHandler< HcalGains >.add(), popcon::PopConSourceHandler< HcalCholeskyMatrices >.add(), popcon::PopConSourceHandler< HcalElectronicsMap >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBIdMap >.add(), popcon::PopConSourceHandler< DTTPGParameters >.add(), popcon::PopConSourceHandler< RPCObUXC >.add(), popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.add(), popcon::PopConSourceHandler< HcalValidationCorrs >.add(), popcon::PopConSourceHandler< HcalGainWidths >.add(), popcon::PopConSourceHandler< SiStripDetVOff >.add(), popcon::PopConSourceHandler< CastorGains >.add(), popcon::PopConSourceHandler< HcalLongRecoParams >.add(), popcon::PopConSourceHandler< HDQMSummary >.add(), popcon::PopConSourceHandler< HcalQIEData >.add(), popcon::PopConSourceHandler< HcalTimeCorrs >.add(), popcon::PopConSourceHandler< EcalIntercalibConstants >.add(), popcon::PopConSourceHandler< RPCObVmon >.add(), popcon::PopConSourceHandler< RPCObFebmap >.add(), popcon::PopConSourceHandler< EcalTPGLinearizationConst >.add(), popcon::PopConSourceHandler< EcalPulseShapes >.add(), popcon::PopConSourceHandler< EcalTPGPedestals >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.add(), popcon::PopConSourceHandler< EcalDAQTowerStatus >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.add(), popcon::PopConSourceHandler< DTLVStatus >.add(), popcon::PopConSourceHandler< EcalTPGTowerStatus >.add(), popcon::PopConSourceHandler< EcalSRSettings >.add(), popcon::PopConSourceHandler< EcalTPGSlidingWindow >.add(), popcon::PopConSourceHandler< HcalFlagHFDigiTimeParams >.add(), popcon::PopConSourceHandler< DTCCBConfig >.add(), popcon::PopConSourceHandler< PixelDCSObject< Type > >.add(), popcon::PopConSourceHandler< HcalZSThresholds >.add(), popcon::PopConSourceHandler< EcalDCSTowerStatus >.add(), popcon::PopConSourceHandler< CastorRecoParams >.add(), popcon::PopConSourceHandler< HcalPedestalWidths >.add(), popcon::PopConSourceHandler< EcalTPGStripStatus >.add(), popcon::PopConSourceHandler< RunSummary >.add(), popcon::PopConSourceHandler< RPCObGasMix >.add(), popcon::PopConSourceHandler< RPCObImon >.add(), popcon::PopConSourceHandler< CastorPedestalWidths >.add(), popcon::PopConSourceHandler< HcalPedestals >.add(), popcon::PopConSourceHandler< RPCObStatus >.add(), popcon::PopConSourceHandler< DTMtime >.add(), popcon::PopConSourceHandler< EcalTPGCrystalStatus >.add(), popcon::PopConSourceHandler< EcalPedestals >.add(), popcon::PopConSourceHandler< EcalChannelStatus >.add(), popcon::PopConSourceHandler< EcalTPGWeightGroup >.add(), popcon::PopConSourceHandler< SiPixelCalibConfiguration >.add(), popcon::PopConSourceHandler< EcalTPGLutGroup >.add(), popcon::PopConSourceHandler< HcalL1TriggerObjects >.add(), popcon::PopConSourceHandler< HcalCovarianceMatrices >.add(), PrimaryVertexAnalyzer4PU.add(), popcon::PopConSourceHandler< EcalTPGLutIdMap >.add(), popcon::PopConSourceHandler< HcalRespCorrs >.add(), popcon::PopConSourceHandler< DTReadOutMapping >.add(), popcon::PopConSourceHandler< EcalTPGPhysicsConst >.add(), popcon::PopConSourceHandler< HcalRecoParams >.add(), popcon::PopConSourceHandler< RPCObTemp >.add(), popcon::PopConSourceHandler< EcalADCToGeVConstant >.add(), popcon::PopConSourceHandler< DTRangeT0 >.add(), popcon::PopConSourceHandler< HcalTimingParams >.add(), popcon::PopConSourceHandler< EcalTPGWeightIdMap >.add(), popcon::PopConSourceHandler< RPCDQMObject >.add(), popcon::PopConSourceHandler< SiPixelDisabledModules >.add(), popcon::PopConSourceHandler< CastorGainWidths >.add(), popcon::PopConSourceHandler< HcalZDCLowGainFractions >.add(), popcon::PopConSourceHandler< CastorSaturationCorrs >.add(), popcon::PopConSourceHandler< RPCEMap >.add(), popcon::PopConSourceHandler< DTHVStatus >.add(), popcon::PopConSourceHandler< L1TriggerScaler >.add(), popcon::PopConSourceHandler< DTTtrig >.add(), popcon::PopConSourceHandler< HcalLutMetadata >.add(), popcon::PopConSourceHandler< HcalDcsValues >.add(), popcon::PopConSourceHandler< HcalChannelQuality >.add(), popcon::PopConSourceHandler< DTDeadFlag >.add(), popcon::PopConSourceHandler< FillInfo >.add(), popcon::PopConSourceHandler< RPCStripNoises >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.add(), popcon::PopConSourceHandler< RunInfo >.add(), popcon::PopConSourceHandler< CastorPedestals >.add(), CSCALCTHeader.add(), edm::eventsetup::EventSetupRecord.add(), __class__< T >.add(), create_public_lumi_plots.LumiDataBlockCollection.add(), edm::ValueMap< AlignmentClusterFlag >.add(), edm::ValueMap< reco::IsoDeposit >.add(), edm::ValueMap< reco::GsfElectronRef >.add(), edm::ValueMap< edm::Ref< std::vector< reco::GsfElectron >, reco::GsfElectron, edm::refhelper::FindUsingAdvance< std::vector< reco::GsfElectron >, reco::GsfElectron > > >.add(), edm::ValueMap< pat::TauJetCorrFactors >.add(), edm::ValueMap< reco::FlavorHistoryEvent >.add(), edm::ValueMap< reco::MuonRef >.add(), edm::ValueMap< int >.add(), edm::ValueMap< edm::Ptr< reco::PFCandidate > >.add(), edm::ValueMap< reco::FlavorHistory >.add(), ValueMap< reco::PFCandidatePtr >.add(), edm::ValueMap< reco::CaloCluster >.add(), edm::ValueMap< StoredPileupJetIdentifier >.add(), edm::ValueMap< CandKinResolution >.add(), value_type.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::MuonMETCorrectionData >.add(), edm::ValueMap< edm::Ref< std::vector< reco::Photon >, reco::Photon, edm::refhelper::FindUsingAdvance< std::vector< reco::Photon >, reco::Photon > > >.add(), edm::ValueMap< reco::DYTInfo >.add(), edm::ValueMap< reco::SuperClusterRef >.add(), edm::ValueMap< reco::PhotonRef >.add(), edm::ValueMap< pat::JetCorrFactors >.add(), edm::ValueMap< reco::MuonCosmicCompatibility >.add(), edm::ValueMap< reco::TrackRefVector >.add(), edm::ValueMap< T >.add(), edm::ValueMap< float >.add(), edm::ValueMap< edm::Ptr< reco::BaseTagInfo > >.add(), edm::ValueMap< reco::MuonTimeExtra >.add(), edm::ValueMap< reco::DeDxData >.add(), edm::ValueMap< edm::Ptr >.add(), edm::ValueMap< reco::CaloClusterPtrVector >.add(), edm::ValueMap< reco::MuonShower >.add(), edm::ValueMap< reco::MuonQuality >.add(), edm::ValueMap< edm::Ref< std::vector< reco::PFCandidate >, reco::PFCandidate, edm::refhelper::FindUsingAdvance< std::vector< reco::PFCandidate >, reco::PFCandidate > > >.add(), ValueMap< T >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), edm::ValueMap< reco::VoronoiBackground >.add(), edm::ValueMap< reco::CaloClusterPtr >.add(), edm::ValueMap< edm::Ptr< std::vector< reco::PFCandidate > > >.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 50 of file counter.py.

References ElectronMVAID.ElectronMVAID.name, counter.Counter.name, core.autovars.NTupleVariable.name, entry.name, average.Average.name, cond::persistency::GLOBAL_TAG::NAME.name, TmModule.name, cond::persistency::TAG::NAME.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::TAG::SYNCHRONIZATION.name, EventMonitor::Entry.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, alignment.Alignment.name, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, ParameterSet.name, PixelDCSObject< class >::Item.name, analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, core.autovars.NTupleObjectType.name, cond::persistency::GTProxyData.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, DQMGenericClient::EfficOption.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.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, PixelBarrelLinkMaker::Item.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, McSelector.name, ExpressionHisto< T >.name, RecoSelector.name, XMLProcessor::_loaderBaseConfig.name, DQMGenericClient::ProfileOption.name, cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, DQMGenericClient::CDOption.name, cond::TagInfo_t.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, core.autovars.NTupleObject.name, looper.Looper.name, EDMtoMEConverter.name, options.HLTProcessOptions.name, config.Analyzer.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, core.autovars.NTupleCollection.name, config.Service.name, h2DSegm.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.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, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, and BeautifulSoup.SoupStrainer.name.

50 
51  def write(self, dirname):
52  '''Dump the counter to a pickle file and to a text file in dirname.'''
53  pckfname = '{d}/{f}.pck'.format(d=dirname, f=self.name)
54  pckfname = pckfname.replace('*','STAR')
55  pckfile = open( pckfname, 'w' )
56  pickle.dump(self, pckfile)
57  txtfile = open( pckfname.replace('.pck', '.txt'), 'w')
58  txtfile.write( str(self) )
59  txtfile.write( '\n' )
60  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(), dirstructure.Directory.print_report(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), and counter.Counter.write().