CMS 3D CMS Logo

Functions | Variables
haddnano Namespace Reference

Functions

def zeroFill (tree, brName, brObj, allowNonBool=False)
 

Variables

 additionalBranches
 
 allowNonBool
 
 branchNames
 
 cl
 
 fileHandles
 
 files
 
 goFast
 
 inputs
 
 isTree
 
 missingBranches
 
 name
 
 obj
 
 of
 
 ofname
 
 otherBranches
 
 otherObj
 

Function Documentation

def haddnano.zeroFill (   tree,
  brName,
  brObj,
  allowNonBool = False 
)

Definition at line 12 of file haddnano.py.

References edm.print().

12 def zeroFill(tree, brName, brObj, allowNonBool=False):
13  # typename: (numpy type code, root type code)
14  branch_type_dict = {'Bool_t': ('?', 'O'), 'Float_t': ('f4', 'F'), 'UInt_t': (
15  'u4', 'i'), 'Long64_t': ('i8', 'L'), 'Double_t': ('f8', 'D')}
16  brType = brObj.GetLeaf(brName).GetTypeName()
17  if (not allowNonBool) and (brType != "Bool_t"):
18  print(("Did not expect to back fill non-boolean branches", tree, brName, brObj.GetLeaf(br).GetTypeName()))
19  else:
20  if brType not in branch_type_dict:
21  raise RuntimeError('Impossible to backfill branch of type %s' % brType)
22  buff = numpy.zeros(1, dtype=numpy.dtype(branch_type_dict[brType][0]))
23  b = tree.Branch(brName, buff, brName + "/" +
24  branch_type_dict[brType][1])
25  # be sure we do not trigger flushing
26  b.SetBasketSize(tree.GetEntries() * 2)
27  for x in range(0, tree.GetEntries()):
28  b.Fill()
29  b.ResetAddress()
30 
31 
def zeroFill(tree, brName, brObj, allowNonBool=False)
Definition: haddnano.py:12
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66

Variable Documentation

haddnano.additionalBranches

Definition at line 63 of file haddnano.py.

haddnano.allowNonBool

Definition at line 83 of file haddnano.py.

haddnano.branchNames
haddnano.cl

Definition at line 49 of file haddnano.py.

Referenced by CaloParticleDebugger.analyze(), Rivet::RivetAnalysis.analyze(), EgammaSCEnergyCorrectionAlgo.applyCorrection(), EgammaSCEnergyCorrectionAlgo.applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo.applyLocalContCorrection(), PFClusterFromHGCalMultiCluster.buildClusters(), ME0PadDigiClusterProducer.buildClusters(), GEMPadDigiClusterProducer.buildClusters(), edm.checkClassDictionaries(), TrackingRecHit.cloneForFit(), l1t::CaloCluster.clusterFlags(), TkPixelMeasurementDet.compHits(), GsfMultipleScatteringUpdator.compute(), GsfElectronAlgo.createElectron(), edm::TypeWithDict.dataMemberByName(), edm::ObjectWithDict.destruct(), GEMClusterizer.doAction(), RPCClusterizer.doAction(), GEMMaskReClusterizer.doAction(), RPCMaskReClusterizer.doAction(), ElectronEnergyCorrector.ElectronEnergyCorrector(), ElectronEnergyCorrector.fBremEta(), ElectronEnergyCorrector.fEnergy(), ElectronEnergyCorrector.fEt(), CSCDigiValidator.filter(), JetCoreClusterSplitter.fittingSplit(), PhotonEnergyCorrector.gedRegression(), SimG4HcalHitJetFinder.getClusters(), HGCalCLUEAlgo.getClusters(), edm::productholderindexhelper.getContainedTypeFromWrapper(), CommonAnalyzer.getList(), RPCDqmClient.getMonitorElements(), DTTPGParametersHandler.getNewObjects(), PixelCPEBase.getParameters(), XrdAdaptor::Source.handle(), edm::TypeWithDict.hasBase(), gen::PomwigHadronizer.initializeDPDF(), CovarianceParameterization.load(), oldMUcompute(), TrackerDpgAnalysis.onTrack(), TrackerDpgAnalysis.onTrackAngles(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator<(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator<=(), Phase2TrackerClusterizer.produce(), XrdFile.readv(), RPCRecHitBaseAlgo.reconstruct(), GEMRecHitBaseAlgo.reconstruct(), SiStripClusterizerFromRaw.run(), PFElectronAlgo.SetCandidates(), Phase2TrackerModule.setCoolingLoop(), edm.SetCustomStreamer(), edm.setRefCoreStreamerInTClass(), RPCSimParam.simulate(), RPCSimAverageNoise.simulate(), RPCSimAverageNoiseEff.simulate(), RPCSimAverageNoiseEffCls.simulate(), RPCSimAverage.simulate(), RPCSimModelTiming.simulate(), RPCSimAsymmetricCls.simulate(), DTTPGParameters.totalTime(), TrackProducerFP420.trackFinderSophisticated(), EgammaSCEnergyCorrectionAlgo.~EgammaSCEnergyCorrectionAlgo(), HiEgammaSCEnergyCorrectionAlgo.~HiEgammaSCEnergyCorrectionAlgo(), PixelCPEGeneric.~PixelCPEGeneric(), and RPCRecHitBaseAlgo.~RPCRecHitBaseAlgo().

haddnano.fileHandles

Definition at line 32 of file haddnano.py.

haddnano.files
haddnano.goFast

Definition at line 33 of file haddnano.py.

haddnano.inputs
haddnano.isTree

Definition at line 51 of file haddnano.py.

haddnano.missingBranches

Definition at line 62 of file haddnano.py.

haddnano.name

Definition at line 46 of file haddnano.py.

haddnano.obj

Definition at line 48 of file haddnano.py.

Referenced by L1GtTriggerMenuConfigOnlineProd.addBptxCondition(), L1GtTriggerMenuConfigOnlineProd.addCaloCondition(), L1GtTriggerMenuConfigOnlineProd.addCastorCondition(), L1GtTriggerMenuConfigOnlineProd.addCorrelationCondition(), L1GtTriggerMenuConfigOnlineProd.addEnergySumCondition(), L1GtTriggerMenuConfigOnlineProd.addExternalCondition(), L1GtTriggerMenuConfigOnlineProd.addHfBitCountsCondition(), L1GtTriggerMenuConfigOnlineProd.addHfRingEtSumsCondition(), L1GtTriggerMenuConfigOnlineProd.addJetCountsCondition(), metsig::significanceAlgo.addObjects(), edm::IterWithDictBase.advance(), SiStripApvSimulationParametersBuilder.analyze(), SiStripNoisesBuilder.analyze(), SiStripApvGainBuilder.analyze(), SiStripPedestalsBuilder.analyze(), SiStripSummaryBuilder.analyze(), SiStripThresholdBuilder.analyze(), TrackTypeMonitor.analyze(), SiStripPayloadHandler< SiStripPayload >.analyze(), HLTTauDQMPathPlotter.analyze(), SiStripNoiseNormalizedWithApvGainBuilder.analyze(), SiStripApvGainBuilderFromTag.analyze(), CollectionDumper< T >.analyze(), PhysicsTools::TreeReader.automaticAdd(), SiStripFedCablingBuilder.beginRun(), PhysicsTools::TrainerMonitoring::Module.book(), edm::ObjectWithDict.byType(), hitfit::Fourvec_Constraint_Calculator.calculate_constraints(), L1GtVmeWriterCore.calculateAddress(), L1GtVmeWriterCore.calculateJetsAddress(), JetCharge.chargeFromRef(), JetCharge.chargeFromValIterator(), edm::RootOutputTree.checkSplitLevelsAndBasketSizes(), chInputObjects(), hitfit::Constrained_Top.Constrained_Top(), hitfit::Constrained_Z.Constrained_Z(), MonitorElement.copyFunctions(), ESDBCopy.copyToDB(), EcalDBCopy.copyToDB(), EcalTPGDBCopy.copyToDB(), HcalDbASCIIIO.createObject< HcalFrontEndMap >(), HcalDbASCIIIO.createObject< HcalSiPMCharacteristics >(), HLTLevel1GTSeed.debugPrint(), SiStripTFile.dirContent(), L1TStage2CaloLayer2Offline.doesNotOverlapWithHLTObjects(), IsoValueMapProducer< T >.doMiniIso(), IsoValueMapProducer< T >.doPFIsoEle(), IsoValueMapProducer< T >.doPFIsoPho(), DTDDUFirstStatusWord.DTDDUFirstStatusWord(), DTDDUSecondStatusWord.DTDDUSecondStatusWord(), DTLocalTriggerDataWord.DTLocalTriggerDataWord(), DTLocalTriggerHeaderWord.DTLocalTriggerHeaderWord(), DTLocalTriggerSectorCollectorHeaderWord.DTLocalTriggerSectorCollectorHeaderWord(), DTLocalTriggerSectorCollectorSubHeaderWord.DTLocalTriggerSectorCollectorSubHeaderWord(), DTLocalTriggerTrailerWord.DTLocalTriggerTrailerWord(), DTROBHeaderWord.DTROBHeaderWord(), DTROBTrailerWord.DTROBTrailerWord(), DTROSDebugWord.DTROSDebugWord(), DTROSErrorWord.DTROSErrorWord(), DTROSHeaderWord.DTROSHeaderWord(), DTROSTrailerWord.DTROSTrailerWord(), DTROSWordType.DTROSWordType(), DTTDCErrorWord.DTTDCErrorWord(), DTTDCHeaderWord.DTTDCHeaderWord(), DTTDCMeasurementWord.DTTDCMeasurementWord(), DTTDCTrailerWord.DTTDCTrailerWord(), HLTL1TSeed.dumpTriggerFilterObjectWithRefs(), HLTLevel1GTSeed.dumpTriggerFilterObjectWithRefs(), egHLT::EgDiEleCut.EgDiEleCut(), egHLT::EgDiEleUserCut< Key >.EgDiEleUserCut(), egHLT::EgDiPhoCut.EgDiPhoCut(), egHLT::EgDiPhoUserCut< Key >.EgDiPhoUserCut(), egHLT::EgEvtTrigCut< T >.EgEvtTrigCut(), egHLT::EgHLTDQMUserVarCut< T, Key >.EgHLTDQMUserVarCut(), egHLT::EgHLTDQMVarCut< T >.EgHLTDQMVarCut(), egHLT::EgJetB2BCut< T >.EgJetB2BCut(), egHLT::EgJetTagProbeCut< T >.EgJetTagProbeCut(), egHLT::EgObjTrigCut< T >.EgObjTrigCut(), egHLT::EgTagProbeCut< T >.EgTagProbeCut(), pat::helper::EfficiencyLoader.enabled(), pat::helper::KinResolutionsLoader.enabled(), SiStripFedCablingManipulator.endRun(), DummyCondDBWriter< TObject, TObjectO, TRecord >.endRun(), TauDQMFileLoader.endRun(), pat::ObjectResolutionCalc.etaBin(), helper::Parser.eval(), helper::ScannerBase.eval(), fwlite::EventSetup.exists(), ecaldqm::MESetDet2D.fill(), ecaldqm::MESetDet1D.fill(), helper::ScannerBase.fill1D(), helper::ScannerBase.fill2D(), helper::ScannerBase.fillGraph(), DeepTauId.fillGrids(), pat::PATMuonProducer.fillHltTriggerInfo(), pat::PATMuonProducer.fillL1TriggerInfo(), helper::ScannerBase.fillProf(), SimpleFlatTableProducer< T >.fillTable(), edm.fillView(), LeptonSkimming.filter(), ecaldqm::MESetDet2D.findBin(), ecaldqm::MESetDet1D.findBin(), ecaldqm::MESetEcal.generatePaths(), L1MuonMatcherAlgo.genericQuality(), BPHTokenWrapper< std::vector< pat::GenericParticle > >.get(), getAllObjects(), ecaldqm::MESetDet2D.getBinContent(), ecaldqm::MESetDet1D.getBinContent(), ecaldqm::MESetDet2D.getBinEntries(), ecaldqm::MESetDet1D.getBinEntries(), ecaldqm::MESetDet2D.getBinError(), ecaldqm::MESetDet1D.getBinError(), fwlite::DataGetterHelper.getBranchDataFor(), DTKeyedConfigCache.getData(), ESClient.getHisto(), dqmoffline::l1t.getMatchedTriggerObjects(), SiStripGainFromAsciiFile.getNewObject(), SiStripBadModuleByHandBuilder.getNewObject(), SiStripBadFiberBuilder.getNewObject(), SiStripBadChannelBuilder.getNewObject(), SiStripGainCosmicCalculator.getNewObject(), DeDxDiscriminatorLearner.getNewObject(), SiStripGainRandomCalculator.getNewObject(), SiStripQualityHotStripIdentifier.getNewObject(), SiStripApvGainRescaler.getNewObject(), SiStripQualityHotStripIdentifierRoot.getNewObject(), SiStripNoisesFromDBMiscalibrator.getNewObject(), SiStripChannelGainFromDBMiscalibrator.getNewObject(), SiStripGainsPCLHarvester.getNewObject(), SiStripGainFromData.getNewObject(), SiStripHitEffFromCalibTree.getNewObject(), SiStripGainFromCalibTree.getNewObject(), SiStripNoisesFromDBMiscalibrator.getNewObject_withDefaults(), RPCDBPerformanceHandler.getNewObjects(), CommonAnalyzer.getObject(), CommonAnalyzer.getObjectWithSuffix(), DynamicTruncation.getThresholdFromDB(), l1t::TriggerMenuParser.gtAlgorithmImplementation(), fwlite::Scanner< Collection >.htempDelete(), edm::WorkerT< T >.implDo(), cond::persistency.import(), FWOverlapTableManager.importOverlaps(), StaticFFTJetObjectFactory< Factory >.instance(), StaticFFTJetRcdMapper< Mapper >.instance(), reco::parser::MethodInvoker.isFunction(), edm::IterWithDictBase.IterWithDictBase(), JetCharge.JetCharge(), KKCorrectionFactors.KKCorrectionFactors(), HGVHistoProducerAlgo.layerClusters_to_CaloParticles(), edm::service::ThreadSafeLogMessageLoggerScribe.log(), RPCFakeCalibration.makeCls(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >.makeFilteredColl(), RPCFakeCalibration.makeNoise(), lhef::XMLInputSourceWrapper< T >.makeStream(), mapSubDirectoryStructure(), L1MuonMatcherAlgo.matchGeneric(), MergeRootfile(), EG9X105XObjectUpdateModifier.modifyObject(), egHLT::MonElemManagerHist< T >.monElem(), egHLT::MonElemManager< T, varType >.MonElemManager(), egHLT::MonElemManager2D< T, varTypeX, varTypeY >.MonElemManager2D(), egHLT::MonElemMgr2DEBEE< T, varTypeX, varTypeY >.MonElemMgr2DEBEE(), egHLT::MonElemMgrEBEE< T, varType >.MonElemMgrEBEE(), egHLT::MonElemWithCut< T, varType >.MonElemWithCut(), egHLT::MonElemWithCutEBEE< T, varType >.MonElemWithCutEBEE(), DQMStore.mtEnabled(), fwlite::EventSetup.namesOfAvailableRecords(), helper::ScannerBase.numberOfExtraCuts(), cmdline.OneShotExtract(), cmdline.OneShotExtract< std::string >(), edm::RefCoreStreamer.operator()(), edm::RefCoreWithIndexStreamer.operator()(), cmdline::CmdLineError.operator<<(), hitfit.operator<<(), egHLT::EgHLTDQMCut< OffEle >.operator=(), egHLT::MonElemWithCutBase< T >.operator=(), cmdline::CmdLine.operator>>(), l1t::TriggerMenuParser.parsePhi_Trig_LUTS(), helper::Parser.Parser(), edm::SortedCollection< EcalRecHit >.pop_back(), PFTauRenderPlugin.preDraw(), helper::ScannerBase.print(), edm.printTrees(), HLTDQMObjSelector< ObjType, ObjCollType >.produce(), SiPixelFakeCPEGenericErrorParmESSource.produce(), SiPixelFakeTemplateDBObjectESSource.produce(), SiPixelFakeGenErrorDBObjectESSource.produce(), AssociationVectorSelector< KeyRefProd, CVal, KeySelector, ValSelector >.produce(), SiStripQualityESProducer.produce(), pat::PATTriggerObjectStandAloneSlimmer.produce(), pat::ModifiedObjectProducer< T >.produce(), SiPixelFakeGainESSource.produce(), SiPixelFakeGainForHLTESSource.produce(), SiPixelFakeGainOfflineESSource.produce(), SiPixelFakeLorentzAngleESSource.produce(), SiPixelFakeQualityESSource.produce(), pat::PATCleaner< PATObjType >.produce(), DeltaRNearestObjectComputer< T >.produce(), EGMSeedGainProducer< T >.produce(), TriggerObjectTableProducer.produce(), ObjectViewMatcher< T1, T2 >.produce(), ObjectViewCleaner< T >.produce(), VIDNestedWPBitmapProducer< T >.produce(), pat::PATTriggerProducer.produce(), AlgorithmCalibration< T, CO >.readCategories(), DQMStore.readDirectory(), SiStripTFile.readDQMFormat(), DQMStore.readFilePB(), fwlite::EventSetup.recordID(), ecaldqm::MESetDet2D.reset(), PFEGammaToCandidate.run(), SideBandSubtract.saveResults(), SelectionStepHLT< Object >.select(), SelectionStep< Object >.select(), SelectionStepHLT< Object >.selectVertex(), SelectionStep< Object >.selectVertex(), ecaldqm::MESetDet2D.setBinContent(), ecaldqm::MESetDet1D.setBinContent(), ecaldqm::MESetDet2D.setBinEntries(), ecaldqm::MESetDet1D.setBinEntries(), ecaldqm::MESetDet2D.setBinError(), ecaldqm::MESetDet1D.setBinError(), pat::Electron.setEcalDrivenMomentum(), SiStripDQMPopConSourceHandler< T >.setForTransfer(), popcon::SiStripPopConConfigDbObjHandler< T >.setForTransfer(), popcon::SiStripPopConHandlerUnitTestNoise< T >.setForTransfer(), popcon::SiStripPopConHandlerUnitTestGain< T >.setForTransfer(), popcon::SiStripPopConHandlerUnitTest< T >.setForTransfer(), pat::Photon.setIEta(), FWGeoTopNodeGL.SetModel(), TEveEllipsoidGL.SetModel(), TEveEllipsoidProjectedGL.SetModel(), pat::Muon.setNormChi2(), UEAnalysisSelectorRootple.SetObject(), hcalCalib.SetObject(), pat::Tau.setTauIDs(), TagProbeFitter.setWeightVar(), metsig::significanceAlgo.subtractObjects(), helper::Parser.test(), helper::ScannerBase.test(), egHLT::MonElemContainer< T >.title(), fwlite::Record.typeAndLabelOfAvailableData(), DQMNet.unpackQualityData(), pat::Jet.updateFwdGenJetFwdRef(), L1GtVmeWriterCore.writeVME(), CalibratedElectronProducerT< T >.~CalibratedElectronProducerT(), CalibratedPhotonProducerT< T >.~CalibratedPhotonProducerT(), egHLT::EgMultiCut< T >.~EgMultiCut(), FWGeoTopNodeGL.~FWGeoTopNodeGL(), edm::service::InitRootHandlers.~InitRootHandlers(), METplusTrackMonitor.~METplusTrackMonitor(), egHLT::MonElemMgr2DHEP< T, varTypeX, varTypeY >.~MonElemMgr2DHEP(), egHLT::MonElemMgrHEP< T, varType >.~MonElemMgrHEP(), TEveEllipsoidGL.~TEveEllipsoidGL(), and TEveEllipsoidProjectedGL.~TEveEllipsoidProjectedGL().

haddnano.of
haddnano.ofname

Definition at line 8 of file haddnano.py.

Referenced by TrackerMap.printall(), and TrackerMap.printonline().

haddnano.otherBranches

Definition at line 60 of file haddnano.py.

haddnano.otherObj

Definition at line 56 of file haddnano.py.