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(), SiStripPI.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, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, 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, Mapper::definition< ScannerT >.name, MyWatcher.name, edm::PathTimingSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, alignment.Alignment.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, validateAlignments.ParallelMergeJob.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, ExpressionHisto< T >.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, DQMGenericClient::ProfileOption.name, options.ConnectionHLTMenu.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, PhysicsTools::Calibration::Variable.name, FastHFShowerLibrary.name, DQMGenericClient::CDOption.name, CounterChecker.name, cond::TagInfo_t.name, EDMtoMEConverter.name, looper.Looper.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, nanoaod::FlatTable::Column.name, config.Analyzer.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleObject.name, config.Service.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, 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(), OOTPileupCorrectionColl.add(), StringMap.add(), diclist.diclist.add(), SimplePlan1RechitCombiner.add(), PuppiAlgo.add(), CSCAnodeDataFormat.add(), average.Average.add(), StorableDoubleMap< T >.add(), StorableDoubleMap< AbsOOTPileupCorrection >.add(), btagbtvdeep::DeepBoostedJetFeatures.add(), funct::Master< F >.add(), PhysicsTools::LeastSquares.add(), CSCRPCData.add(), PileUpFP420.add(), RPCLinkSynchroStat.add(), rltinfo.RLTInfo.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(), CosmicHitTripletGenerator.add(), edm::helper::Filler< Map >.add(), edm::helper::Filler< Association< C > >.add(), RPCLinkSynchroStat::LinkBoard.add(), GEMRing.add(), G4SimEvent.add(), DetRodOneR.add(), EventWithHistory.add(), sistrip::LinearFit.add(), GEMRegion.add(), GEMStation.add(), RPCChamber.add(), GEMChamber.add(), AutoCorrMat.add(), PixelClusterizerBase::AccretionCluster.add(), EcalTDigitizer< Traits >.add(), EcalTDigitizer< ESDigitizerTraits >.add(), pat::EventHypothesis.add(), EBHitResponse.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(), SurfaceDeformation.add(), edm::ConfigurationDescriptions.add(), edm::serviceregistry::ServicesManager::MakerHolder.add(), BowedSurfaceDeformation.add(), CSCAnodeData2007.add(), CSCCLCTData.add(), FWConfigurationManager.add(), FWParameterizable.add(), FWViewManagerManager.add(), SiStripDetSummary.add(), Hector.add(), CTPPSHector.add(), BPHPlusMinusCandidate.add(), DTKeyedConfig.add(), L1TriggerKeyExt.add(), FiberG4Hit.add(), edm::WallclockTimer.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(), LayerHitMapCache.add(), ME0Geometry.add(), pat::PATUserDataHelper< ObjectType >.add(), reco::fitHelper::Adder< C >.add(), FWEventItemsManager.add(), pat::PATUserDataHelper< pat::pat::PFParticle >.add(), pat::PATUserDataHelper< pat::pat::Electron >.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::CompositeCandidate >.add(), pat::PATUserDataHelper< pat::pat::GenericParticle >.add(), pat::PATUserDataHelper< pat::pat::Muon >.add(), DTVDriftCalibration::cellInfo.add(), fwlite::EventContainer.add(), RPCGeometry.add(), BPHRecoCandidate.add(), GenLumiInfoProduct::FinalStat.add(), reco::fitHelper::Adder< edm::OwnVector< T > >.add(), edm::service::ELlimitsTable.add(), edm::CountAndLimit.add(), reco::Vertex.add(), fit::RootMinuitCommands< Function >.add(), reco::CastorTower.add(), sistrip::MeanAndStdDev.add(), amc13::Packet.add(), TkGluedMeasurementDet::HitCollectorForRecHits.add(), edm::eventsetup::EventSetupProvider.add(), CaloTDigitizer< Traits, runHelper >.add(), reco::CastorCluster.add(), edm::Association< C >::Filler.add(), edm::eventsetup::EventSetupRecordProvider.add(), pat::PATUserDataMerger< ObjectType, Operation >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::PFParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserCand >.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::PFParticle, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserCand >.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::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::CompositeCandidate, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Photon, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::Jet, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< ObjectType, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserFloat >.add(), pat::PATUserDataMerger< pat::pat::GenericParticle, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Electron, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserCand >.add(), pat::PATUserDataMerger< pat::pat::Muon, pat::helper::AddUserPtr >.add(), pat::PATUserDataMerger< pat::pat::MET, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::Tau, pat::helper::AddUserInt >.add(), pat::PATUserDataMerger< pat::pat::CompositeCandidate, pat::helper::AddUserFloat >.add(), AlignmentParameterSelector.add(), CSCALCTs2006.add(), edm::ParameterSetDescription.add(), TTUTrackingAlg::Track.add(), EcalTimeMapDigitizer.add(), DTGeometry.add(), edm::StatsCount.add(), FastLineRecognition::Cluster.add(), CSCBaseElectronicsSim.add(), edm::ReusableObjectHolder< T >.add(), GEMGeometry.add(), PrimaryVertexValidation.add(), lhef::LHERunInfo::Counter.add(), BPHRecoBuilder.add(), Chamber_AutoCorrMat.add(), Phase2ITPixelCluster.add(), SiPixelQuality.add(), DTSegmentCand.add(), SiPixelCluster.add(), edm::Association< C >.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(), vector< reco::PFTau3ProngSummaryRef >.add(), vector< reco::PFTauTransverseImpactParameterCollection >.add(), vector< reco::PFTauTransverseImpactParameterRef >.add(), edm::Association< DeDxHitInfoCollection >.add(), edm::Association< reco::FFTGenJetCollection >.add(), edm::Association< reco::FFTTrackJetCollection >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameter > >.add(), edm::Association< std::vector< reco::PFTau > >.add(), edm::Association< reco::PFJetCollection >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryRef > >.add(), edm::Association< std::vector< reco::PFTau3ProngSummaryCollection > >.add(), edm::Association< reco::FFTCaloJetCollection >.add(), edm::Association< reco::GenJetCollection >.add(), edm::Association< reco::FFTPFJetCollection >.add(), edm::Association< std::vector< reco::PFTau3ProngSummary > >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterRef > >.add(), edm::Association< std::vector< reco::Vertex > >.add(), edm::Association< reco::FFTBasicJetCollection >.add(), edm::Association< reco::FFTJPTJetCollection >.add(), vector< reco::Vertex >.add(), Association< C >.add(), vector< reco::PFTauDecayMode >.add(), vector< reco::PFTauTransverseImpactParameter >.add(), vector< reco::PFTau3ProngSummary >.add(), vector< reco::PFTau3ProngSummaryCollection >.add(), edm::Association< std::vector< reco::PFTauTransverseImpactParameterCollection > >.add(), vector< reco::PFTau >.add(), vector< reco::VertexRef >.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< RPCObImon >.add(), popcon::PopConSourceHandler< EcalPulseSymmCovariances >.add(), popcon::PopConSourceHandler< EcalTPGWeightIdMap >.add(), popcon::PopConSourceHandler< RPCObTemp >.add(), popcon::PopConSourceHandler< EcalTPGLinearizationConst >.add(), popcon::PopConSourceHandler< HcalGains >.add(), popcon::PopConSourceHandler< SiStripBadStrip >.add(), popcon::PopConSourceHandler< RPCAMCLinkMap >.add(), popcon::PopConSourceHandler< HcalTimingParams >.add(), popcon::PopConSourceHandler< EcalPulseShapes >.add(), popcon::PopConSourceHandler< CastorElectronicsMap >.add(), popcon::PopConSourceHandler< Payload >.add(), popcon::PopConSourceHandler< DTCCBConfig >.add(), popcon::PopConSourceHandler< HcalChannelQuality >.add(), popcon::PopConSourceHandler< HcalElectronicsMap >.add(), popcon::PopConSourceHandler< RPCObGas >.add(), popcon::PopConSourceHandler< CastorPedestalWidths >.add(), popcon::PopConSourceHandler< EcalTPGLutGroup >.add(), popcon::PopConSourceHandler< EcalLaserAPDPNRatios >.add(), popcon::PopConSourceHandler< CastorPedestals >.add(), popcon::PopConSourceHandler< EcalTPGSlidingWindow >.add(), popcon::PopConSourceHandler< RunInfo >.add(), popcon::PopConSourceHandler< DTStatusFlag >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainTowerEE >.add(), popcon::PopConSourceHandler< DTReadOutMapping >.add(), popcon::PopConSourceHandler< EcalTPGSpike >.add(), popcon::PopConSourceHandler< RPCObUXC >.add(), popcon::PopConSourceHandler< SiPixelDisabledModules >.add(), popcon::PopConSourceHandler< FillInfo >.add(), popcon::PopConSourceHandler< HcalLUTCorrs >.add(), popcon::PopConSourceHandler< HcalLongRecoParams >.add(), popcon::PopConSourceHandler< HcalSiPMParameters >.add(), popcon::PopConSourceHandler< HcalPFCorrs >.add(), popcon::PopConSourceHandler< HcalMCParams >.add(), popcon::PopConSourceHandler< PixelDCSObject< Type > >.add(), popcon::PopConSourceHandler< HcalLutMetadata >.add(), popcon::PopConSourceHandler< RPCObGasMix >.add(), popcon::PopConSourceHandler< HcalRecoParams >.add(), popcon::PopConSourceHandler< CastorRecoParams >.add(), popcon::PopConSourceHandler< RPCObPVSSmap >.add(), popcon::PopConSourceHandler< EcalTPGPhysicsConst >.add(), popcon::PopConSourceHandler< EcalChannelStatus >.add(), popcon::PopConSourceHandler< DTPerformance >.add(), popcon::PopConSourceHandler< EcalADCToGeVConstant >.add(), popcon::PopConSourceHandler< EcalTPGTowerStatus >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBIdMap >.add(), popcon::PopConSourceHandler< EcalTPGWeightGroup >.add(), popcon::PopConSourceHandler< CastorSaturationCorrs >.add(), popcon::PopConSourceHandler< CastorGainWidths >.add(), popcon::PopConSourceHandler< RunSummary >.add(), popcon::PopConSourceHandler< HcalValidationCorrs >.add(), popcon::PopConSourceHandler< HcalZDCLowGainFractions >.add(), popcon::PopConSourceHandler< FileBlob >.add(), popcon::PopConSourceHandler< HcalFlagHFDigiTimeParams >.add(), popcon::PopConSourceHandler< DQMSummary >.add(), popcon::PopConSourceHandler< EcalDCSTowerStatus >.add(), popcon::PopConSourceHandler< HcalDcsValues >.add(), popcon::PopConSourceHandler< HcalPedestals >.add(), popcon::PopConSourceHandler< HcalPedestalWidths >.add(), popcon::PopConSourceHandler< SiStripNoises >.add(), popcon::PopConSourceHandler< CastorQIEData >.add(), popcon::PopConSourceHandler< DTRangeT0 >.add(), popcon::PopConSourceHandler< RPCStripNoises >.add(), popcon::PopConSourceHandler< EcalMappingElectronics >.add(), popcon::PopConSourceHandler< HcalTPChannelParameters >.add(), popcon::PopConSourceHandler< SiStripPedestals >.add(), popcon::PopConSourceHandler< CastorChannelQuality >.add(), popcon::PopConSourceHandler< EcalTPGStripStatus >.add(), popcon::PopConSourceHandler< bool >.add(), popcon::PopConSourceHandler< RPCLBLinkMap >.add(), popcon::PopConSourceHandler< HcalRespCorrs >.add(), popcon::PopConSourceHandler< RPCDCCLinkMap >.add(), popcon::PopConSourceHandler< HcalQIEData >.add(), popcon::PopConSourceHandler< HcalFrontEndMap >.add(), popcon::PopConSourceHandler< RPCObVmon >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainEBGroup >.add(), popcon::PopConSourceHandler< HcalSiPMCharacteristics >.add(), popcon::PopConSourceHandler< EcalTPGCrystalStatus >.add(), popcon::PopConSourceHandler< L1RPCHwConfig >.add(), popcon::PopConSourceHandler< L1TriggerScaler >.add(), popcon::PopConSourceHandler< HcalQIETypes >.add(), popcon::PopConSourceHandler< DTT0 >.add(), popcon::PopConSourceHandler< EcalIntercalibConstants >.add(), popcon::PopConSourceHandler< EcalDAQTowerStatus >.add(), popcon::PopConSourceHandler< RPCObFebmap >.add(), popcon::PopConSourceHandler< EcalTPGFineGrainStripEE >.add(), popcon::PopConSourceHandler< SiPixelCalibConfiguration >.add(), popcon::PopConSourceHandler< DTTPGParameters >.add(), popcon::PopConSourceHandler< RPCEMap >.add(), popcon::PopConSourceHandler< T >.add(), popcon::PopConSourceHandler< EcalSRSettings >.add(), popcon::PopConSourceHandler< EcalPedestals >.add(), popcon::PopConSourceHandler< EcalTPGPedestals >.add(), popcon::PopConSourceHandler< EcalTPGLutIdMap >.add(), popcon::PopConSourceHandler< DTDeadFlag >.add(), popcon::PopConSourceHandler< SiPixelFedCablingMap >.add(), popcon::PopConSourceHandler< DTLVStatus >.add(), popcon::PopConSourceHandler< HcalDcsMap >.add(), popcon::PopConSourceHandler< HDQMSummary >.add(), popcon::PopConSourceHandler< CastorGains >.add(), popcon::PopConSourceHandler< HcalTPParameters >.add(), popcon::PopConSourceHandler< HcalZSThresholds >.add(), popcon::PopConSourceHandler< HcalGainWidths >.add(), popcon::PopConSourceHandler< EcalFloatCondObjectContainer >.add(), popcon::PopConSourceHandler< HcalL1TriggerObjects >.add(), popcon::PopConSourceHandler< HcalTimeCorrs >.add(), popcon::PopConSourceHandler< RPCObStatus >.add(), popcon::PopConSourceHandler< DTHVStatus >.add(), popcon::PopConSourceHandler< RPCDQMObject >.add(), o2olib.O2OJobMgr.add(), edm::eventsetup::EventSetupRecord.add(), __class__< T >.add(), CSCALCTHeader.add(), create_public_lumi_plots.LumiDataBlockCollection.add(), pat::MET::PackedMETUncertainty.add(), edm::ValueMap< T >.add(), edm::ValueMap< reco::MuonMETCorrectionData >.add(), edm::ValueMap< pat::TauJetCorrFactors >.add(), edm::ValueMap< edm::Ref< std::vector< reco::GenParticle >, reco::GenParticle, edm::refhelper::FindUsingAdvance< std::vector< reco::GenParticle >, reco::GenParticle > > >.add(), edm::ValueMap< StoredPileupJetIdentifier >.add(), ValueMap< reco::HIPhotonIsolation >.add(), ValueMap< reco::PFCandidateRef >.add(), edm::ValueMap< edm::Ptr >.add(), edm::ValueMap< reco::PhotonRef >.add(), edm::ValueMap< reco::TrackRefVector >.add(), vector< reco::PFCandidate >.add(), vector< reco::GsfElectron >.add(), edm::ValueMap< int >.add(), edm::ValueMap< edm::Ptr< std::vector< reco::PFCandidate > > >.add(), edm::ValueMap< reco::MuonShower >.add(), edm::ValueMap< pat::JetCorrFactors >.add(), edm::ValueMap< reco::CaloClusterPtrVector >.add(), ValueMap< DeDxData >.add(), edm::ValueMap< reco::CaloCluster >.add(), edm::ValueMap< reco::MuonRef >.add(), Ptr< reco::PFCandidate >.add(), edm::ValueMap< reco::MuonTimeExtra >.add(), edm::ValueMap< reco::SuperClusterRef >.add(), vector< reco::PFCandidateRef >.add(), PFCandidate.add(), vector< reco::GenParticle >.add(), edm::ValueMap< reco::FlavorHistory >.add(), edm::ValueMap< AlignmentClusterFlag >.add(), ValueMap< HSCPIsolation >.add(), edm::ValueMap< edm::Ptr< reco::PFCandidate > >.add(), edm::ValueMap< reco::VoronoiBackground >.add(), Filler.add(), Photon.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< vid::CutFlowResult >.add(), GsfElectron.add(), edm::ValueMap< edm::Ptr< reco::BaseTagInfo > >.add(), ValueMap< HSCPCaloInfo >.add(), edm::ValueMap< reco::MuonCosmicCompatibility >.add(), edm::ValueMap< reco::GsfElectronRef >.add(), edm::ValueMap< reco::IsoDeposit >.add(), edm::ValueMap< CandKinResolution >.add(), edm::ValueMap< edm::Ref< std::vector< reco::Photon >, reco::Photon, edm::refhelper::FindUsingAdvance< std::vector< reco::Photon >, reco::Photon > > >.add(), edm::ValueMap< edm::Ref< std::vector< reco::GsfElectron >, reco::GsfElectron, edm::refhelper::FindUsingAdvance< std::vector< reco::GsfElectron >, reco::GsfElectron > > >.add(), edm::ValueMap< reco::FlavorHistoryEvent >.add(), vector< reco::Photon >.add(), edm::ValueMap< reco::CaloClusterPtr >.add(), Ptr< reco::BaseTagInfo >.add(), ValueMap< T >.add(), edm::ValueMap< reco::MuonQuality >.add(), GenParticle.add(), edm::ValueMap< reco::DeDxData >.add(), edm::ValueMap< reco::DYTInfo >.add(), edm::ValueMap< math::XYZTLorentzVector >.add(), edm::ValueMap< reco::MuonSimInfo >.add(), ValueMap< HSCPDeDxInfo >.add(), edm::ValueMap< edm::Ref< std::vector< reco::PFCandidate >, reco::PFCandidate, edm::refhelper::FindUsingAdvance< std::vector< reco::PFCandidate >, reco::PFCandidate > > >.add(), edm::ValueMap< float >.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, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, 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, Mapper::definition< ScannerT >.name, MyWatcher.name, edm::PathTimingSummary.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, alignment.Alignment.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, validateAlignments.ParallelMergeJob.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, ExpressionHisto< T >.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, DQMGenericClient::ProfileOption.name, options.ConnectionHLTMenu.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, PhysicsTools::Calibration::Variable.name, FastHFShowerLibrary.name, DQMGenericClient::CDOption.name, CounterChecker.name, cond::TagInfo_t.name, EDMtoMEConverter.name, looper.Looper.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, nanoaod::FlatTable::Column.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