CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
counter.Counter Class Reference
Inheritance diagram for counter.Counter:

Public Member Functions

def __add__ (self, other)
 
def __iadd__ (self, other)
 
def __init__ (self, name)
 
def __str__ (self)
 
def inc (self, level, nentries=1)
 
def register (self, level)
 
def write (self, dirname)
 

Public Attributes

 name
 

Detailed Description

Definition at line 7 of file counter.py.

Constructor & Destructor Documentation

def counter.Counter.__init__ (   self,
  name 
)

Definition at line 9 of file counter.py.

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

Member Function Documentation

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

Definition at line 24 of file counter.py.

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

Referenced by counter.Counter.__iadd__().

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

Definition at line 42 of file counter.py.

References rltinfo.MyInteger.__add__(), SequenceTypes._Sequenceable.__add__(), counter.Counter.__add__(), GlobalTag.GlobalTag.__add__(), average.Average.__add__(), SequenceTypes._SequenceCollection.__add__(), LumiList.LumiList.__add__(), and Mixins._ValidatingListBase.__add__().

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

Definition at line 57 of file counter.py.

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

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

Definition at line 16 of file counter.py.

References diclist.diclist.dico.

Referenced by counter.Counter.__add__().

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

Definition at line 13 of file counter.py.

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

Referenced by counter.Counter.__add__().

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

Definition at line 46 of file counter.py.

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

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

Member Data Documentation

counter.Counter.name