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

◆ zeroFill()

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

Definition at line 12 of file haddnano.py.

References print(), and FastTimerService_cff.range.

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
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

◆ additionalBranches

haddnano.additionalBranches

Definition at line 63 of file haddnano.py.

◆ allowNonBool

haddnano.allowNonBool

Definition at line 83 of file haddnano.py.

◆ branchNames

haddnano.branchNames

◆ cl

haddnano.cl

Definition at line 49 of file haddnano.py.

Referenced by gpuPixelRecHits.__attribute__(), CaloParticleDebugger.analyze(), Rivet::RivetAnalysis.analyze(), EgammaSCEnergyCorrectionAlgo.applyCorrection(), HiEgammaSCEnergyCorrectionAlgo.applyCorrection(), PhotonEnergyCorrector.applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo.applyCrackCorrection(), EgammaSCEnergyCorrectionAlgo.applyLocalContCorrection(), reco::GraphMap.assignHighestScoreEdge(), GEMPadDigiClusterProducer.buildClusters(), siStripClusterTools.chargePerCM(), edm.checkClassDictionaries(), RPCClusterSizeTest.clientOperation(), TrackingRecHit.cloneForFit(), TkPixelMeasurementDet.compHits(), GsfMultipleScatteringUpdator.compute(), GEMRecHitStandardAlgo.compute(), RPCRecHitStandardAlgo.compute(), SiPixelErrorEstimation.computeAnglesFromDetPosition(), CSCGEMMotherboard.correlateLCTsGEM(), PixelCPEGenericBase.createClusterParam(), PixelCPETemplateReco.createClusterParam(), PixelCPEClusterRepair.createClusterParam(), GsfElectronAlgo.createElectron(), edm::TypeWithDict.dataMemberByName(), edm::ObjectWithDict.destruct(), GEMMaskReClusterizer.doAction(), RPCClusterizer.doAction(), CPPFClusterizer.doAction(), GEMClusterizer.doAction(), RPCMaskReClusterizer.doAction(), CPPFMaskReClusterizer.doAction(), ticl::ClusterFilterByAlgo.filter(), ticl::ClusterFilterBySize.filter(), ticl::ClusterFilterByAlgoAndSize.filter(), ticl::ClusterFilterByAlgoAndSizeAndLayerRange.filter(), CSCDigiValidator.filter(), LCTQualityAssignment.findQuality(), LCTQualityAssignment.findQualityGEMv1(), LCTQualityAssignment.findQualityGEMv2(), JetCoreClusterSplitter.fittingSplit(), SimG4HcalHitJetFinder.getClusters(), GEMClusterProcessor.getClusters(), HGCalCLUEAlgoT< TILE, STRATEGY >.getClusters(), edm::productholderindexhelper.getContainedTypeFromWrapper(), CommonAnalyzer.getList(), AlignmentTask.getMeasurementIndex(), RPCDqmClient.getMonitorElements(), DTTPGParametersHandler.getNewObjects(), PixelFakeCPE.getParameters(), PixelClusterParameterEstimator.getParameters(), MTDClusterParameterEstimator.getParameters(), MTDCPEBase.getParameters(), PixelCPEBase.getParameters(), AlignmentTask.getQuantityIndex(), XrdAdaptor::Source.handle(), edm::TypeWithDict.hasBase(), GEMCluster.isAdjacent(), RPCCluster.isAdjacent(), CPPFCluster.isAdjacent(), CovarianceParameterization.load(), StripFakeCPE.localParameters(), ticl::PatternRecognitionbyFastJet< TILES >.makeTracksters(), CSCGEMMatcher.matchedClusterDistES(), CSCGEMMatcher.matchingClustersLoc(), GEMCluster.merge(), CPPFCluster.merge(), RPCCluster.merge(), oldMUcompute(), TrackerDpgAnalysis.onTrack(), TrackerDpgAnalysis.onTrackAngles(), GEMCluster.operator<(), CPPFCluster.operator<(), RPCCluster.operator<(), l1t::CaloCluster.operator<(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator<(), operator<<(), l1t::CaloCluster.operator<=(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator<=(), l1t::CaloCluster.operator>(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator>(), l1t::CaloCluster.operator>=(), l1t::HGCalClusterT< l1t::HGCalCluster >.operator>=(), RecHitProcessor.process(), RecHitProcessor.processLook(), Phase2TrackerClusterizer.produce(), LegacyIOHelper.readdir(), edm::storage::XrdFile.readv(), RPCRecHitBaseAlgo.reconstruct(), GEMRecHitBaseAlgo.reconstruct(), HGCalCLUEAlgoT< TILE, STRATEGY >.reset(), Phase2TrackerModule.setCoolingLoop(), FW3DViewGeometry.showMuonEndcap(), RPCSimParam.simulate(), RPCSimAverageNoise.simulate(), RPCSimAverage.simulate(), RPCSimAverageNoiseEffCls.simulate(), RPCSimAverageNoiseEff.simulate(), RPCSimAsymmetricCls.simulate(), RPCSimModelTiming.simulate(), TFileAdaptor.TFileAdaptor(), DTTPGParameters.totalTime(), and validateList().

◆ fileHandles

haddnano.fileHandles

Definition at line 32 of file haddnano.py.

◆ files

haddnano.files

Definition at line 9 of file haddnano.py.

◆ goFast

haddnano.goFast

Definition at line 33 of file haddnano.py.

◆ inputs

haddnano.inputs

Definition at line 50 of file haddnano.py.

◆ isTree

haddnano.isTree

Definition at line 51 of file haddnano.py.

◆ missingBranches

haddnano.missingBranches

Definition at line 62 of file haddnano.py.

◆ name

haddnano.name

Definition at line 46 of file haddnano.py.

◆ obj

haddnano.obj

Definition at line 48 of file haddnano.py.

◆ of

haddnano.of

◆ ofname

haddnano.ofname

Definition at line 8 of file haddnano.py.

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

◆ otherBranches

haddnano.otherBranches

Definition at line 60 of file haddnano.py.

◆ otherObj

haddnano.otherObj