Variables
compare_h5_caf Namespace Reference

Variables

 category
 
list KL = ['run', 'subrun', 'cycle', 'evt', 'subevt']
 
list skip = ['genVersion', 'daughterlist', 'motherlist', 'fuzzyk.png.bpf','hough','vdt','spill.bpos', 'spill.int', 'training', 'cvnmap']
 
 parser = argparse.ArgumentParser(description = 'Compare contents of a HDF5 file with its CAF equivalent.\rUses TTree Draw to check leaf content from the CAF files and prints a message if its different from the HDF5 file.\rSome branches are just too expensive to evaluate or the leaves are too deep for TTree::Draw to work. Others have no data filled or are defunct.\rBranches that contain these are skipped : '+str(skip))
 
 type
 
 str
 
 required
 
 help
 
 action
 
 opts = parser.parse_args()
 
 IgnoreCommandLineOptions
 
 h5file = os.path.abspath(opts.h5file)
 
 rootfile = os.path.abspath(opts.rootfile)
 
 fh5 = h5py.File(h5file, 'r')
 
 fcaf = TFile(rootfile, 'read')
 
list keystocheck = []
 
 start = time.time()
 
 roottree = recTree
 
 rootbranchkey = branchkey
 
 branch = fh5.get(branchkey)
 
list branchkeys = []
 
int idx = 0
 
 total = len(branchkeys)
 
 h5data = branch.get(key)[()].flatten()
 
string rootleafkey = rootbranchkey+'.'
 
 nentries = roottree.GetSelectedRows()
 
 rootdata = np.zeros(nentries)
 
 roottemp = roottree.GetV1()
 

Variable Documentation

compare_h5_caf.action

Definition at line 24 of file compare_h5_caf.py.

compare_h5_caf.branch = fh5.get(branchkey)

Definition at line 56 of file compare_h5_caf.py.

Referenced by air::AirTree.analyze(), mmc::Validation.analyze(), mono::SlowMonopoleAna.analyze(), mono::Monopole.analyze(), zcl::FastMMStudy.analyze(), mono::DataCheckMonopole.beginSubRun(), ana::MCMCSamples.BestFitSampleIdx(), art::input::BranchInfo.BranchInfo(), mono::SlowMonopoleAna.fill_hit_tree(), mono::SlowMonopoleAna.fill_track_tree(), flat::FlatBeam.FlatBeam(), flat::FlatBPFEnergy.FlatBPFEnergy(), flat::FlatBpfId.FlatBpfId(), flat::FlatBpfTrack.FlatBpfTrack(), flat::FlatContain.FlatContain(), flat::FlatCosmic.FlatCosmic(), flat::FlatCosmicCVN.FlatCosmicCVN(), flat::FlatCosRej.FlatCosRej(), flat::FlatCVNFeatures.FlatCVNFeatures(), flat::FlatCVNNeutronDaughterResult.FlatCVNNeutronDaughterResult(), flat::FlatCVNParticleResult.FlatCVNParticleResult(), flat::FlatCVNResult.FlatCVNResult(), flat::FlatElastic.FlatElastic(), flat::FlatELid.FlatELid(), flat::FlatEnergy.FlatEnergy(), flat::FlatFluxWeights.FlatFluxWeights(), flat::FlatFuzzyK.FlatFuzzyK(), flat::FlatFuzzyKProng.FlatFuzzyKProng(), flat::FlatGeant4Weights.FlatGeant4Weights(), flat::FlatGenieWeights.FlatGenieWeights(), flat::FlatGlobalTruth.FlatGlobalTruth(), flat::FlatHadClust.FlatHadClust(), flat::FlatHeader.FlatHeader(), flat::FlatHoughVertex.FlatHoughVertex(), flat::FlatIDBranch.FlatIDBranch(), flat::FlatJMEid.FlatJMEid(), flat::FlatJMShower.FlatJMShower(), flat::FlatKalman.FlatKalman(), flat::FlatKalmanTrack.FlatKalmanTrack(), flat::FlatLem.FlatLem(), flat::FlatLorentzVector.FlatLorentzVector(), flat::FlatMCReweight.FlatMCReweight(), flat::FlatMichelE.FlatMichelE(), flat::FlatMRCCParent.FlatMRCCParent(), flat::FlatMRProperties.FlatMRProperties(), flat::FlatMuId.FlatMuId(), flat::FlatMuonID.FlatMuonID(), flat::FlatNCCosRej.FlatNCCosRej(), flat::FlatNCPi0BkgRej.FlatNCPi0BkgRej(), flat::FlatNDSandbox.FlatNDSandbox(), flat::FlatNeutrino.FlatNeutrino(), flat::FlatNueCosRej.FlatNueCosRej(), flat::FlatNueEnergy.FlatNueEnergy(), flat::FlatNueSandbox.FlatNueSandbox(), flat::FlatNumuEnergy.FlatNumuEnergy(), flat::FlatNumuSandbox.FlatNumuSandbox(), flat::FlatNuonEResult.FlatNuonEResult(), flat::FlatNusSandbox.FlatNusSandbox(), flat::FlatParticleTruth.FlatParticleTruth(), flat::FlatPixelMap.FlatPixelMap(), flat::FlatPixelObjMap.FlatPixelObjMap(), flat::FlatPresel.FlatPresel(), flat::FlatProng.FlatProng(), flat::FlatProngTrainingData.FlatProngTrainingData(), flat::FlatProngXSec.FlatProngXSec(), flat::FlatQepid.FlatQepid(), flat::FlatRegCVNResult.FlatRegCVNResult(), flat::FlatRemid.FlatRemid(), flat::FlatRvp.FlatRvp(), flat::FlatShower.FlatShower(), flat::FlatShowerBranch.FlatShowerBranch(), flat::FlatShowerLID.FlatShowerLID(), flat::FlatSlcME.FlatSlcME(), flat::FlatSlice.FlatSlice(), flat::FlatSliceLID.FlatSliceLID(), flat::FlatSliceMap.FlatSliceMap(), flat::FlatSLid.FlatSLid(), flat::FlatSLidEnergy.FlatSLidEnergy(), flat::FlatSPid.FlatSPid(), flat::FlatSpill.FlatSpill(), flat::FlatTrack.FlatTrack(), flat::FlatTrackBase.FlatTrackBase(), flat::FlatTrainingBranch.FlatTrainingBranch(), flat::FlatTrainingData.FlatTrainingData(), flat::FlatTrkME.FlatTrkME(), flat::FlatTrueMichelE.FlatTrueMichelE(), flat::FlatTrueNumuEnergy.FlatTrueNumuEnergy(), flat::FlatTrueParticle.FlatTrueParticle(), flat::FlatTruth.FlatTruth(), flat::FlatTruthBranch.FlatTruthBranch(), flat::FlatVector3D.FlatVector3D(), flat::FlatVertex.FlatVertex(), flat::FlatVertexBranch.FlatVertexBranch(), flat::FlatVertexDT.FlatVertexDT(), flat::FlatVeto.FlatVeto(), flat::FlatXnue.FlatXnue(), genie::Cache.Print(), art::detail.readFileIndex(), art::detail.readMetadata(), genie::Cache.RmAllCacheBranches(), ana::MCMCSamples.SampleValue(), genie::Cache.Save(), ana::MCMCSamples.SortedLLs(), and genie::Cache.~Cache().

list compare_h5_caf.branchkeys = []

Definition at line 57 of file compare_h5_caf.py.

compare_h5_caf.category

Definition at line 12 of file compare_h5_caf.py.

compare_h5_caf.fcaf = TFile(rootfile, 'read')

Definition at line 36 of file compare_h5_caf.py.

compare_h5_caf.fh5 = h5py.File(h5file, 'r')

Definition at line 35 of file compare_h5_caf.py.

compare_h5_caf.h5data = branch.get(key)[()].flatten()

Definition at line 72 of file compare_h5_caf.py.

compare_h5_caf.h5file = os.path.abspath(opts.h5file)

Definition at line 32 of file compare_h5_caf.py.

compare_h5_caf.help

Definition at line 19 of file compare_h5_caf.py.

int compare_h5_caf.idx = 0

Definition at line 69 of file compare_h5_caf.py.

Referenced by dbutils::daqconfig::GlobalNameSpec._addSpaces(), dbutils::daqconfig::SubsystemNameSpec._addSpaces(), dbutils::daqappmgr::ConfiguredProcessList._fetchProcessData(), dbutils::daqconfig::GeneralDataReader._getDataSetForAllConfigs(), dbutils::daqconfig::NamedConfigUtils._getDetails(), dbutils::daqconfig::GeneralDataReader._getListOfValuesForAllConfigs(), dbutils::daqconfig::GeneralDataReader._getListOfValuesFromDB(), dbutils::gui::ConfigDataTableModel._getModifiedItems(), dbutils::gui::ConfigDataTreeModel._getModifiedItems(), dbutils::daqconfig::GeneralDataReader._getSetOfValuesForAllConfigs(), dbutils::daqconfig::GeneralDataReader._getSetOfValuesForSingleConfig(), dbutils::daqconfig::GeneralDataReader._getSetOfValuesFromDB(), dbutils::daqconfig::GeneralDataReader._getValueForAllConfigs(), dbutils::daqconfig::ConfigDataTree._initialize(), dbutils::gui::ConfigDataTreeModel._populateSubTree(), dbutils::gui::ConfigDataTreeModel._setupModelData(), dbutils::daqconfig::GeneralDataReader._setValidityRanges(), rb::HitMap.Add(), dbutils::gui::ConfigDataTreeModel.addChildRow(), dbutils::gui::CustomTabWidget.addInitialRow(), dbutils::gui::TabbedSetOfTableEditors.addInitialRow(), dbutils::gui::TabbedSetOfTreeEditors.addInitialRow(), dbutils::gui::ConfigDataTableModel.addRowAfter(), ana::MCMCSamples.AddSample(), dbutils::gui::ConfigDataTreeModel.allowsChildInsert(), dbutils::gui::ConfigDataTreeModel.allowsInsertAfter(), dbutils::gui::ConfigDataTreeModel.allowsInsertBefore(), mcchk::RockAna.analyze(), vf::TrackEva.analyze(), zcl::FmmTrackerValidation.analyze(), rsim::FPGA_DualCorrelatedSampling.ASICToDigits(), caf::VectorProxyBase.AtSize(), boost::python::detail::proxy_helper< Container, DerivedPolicies, ContainerElement, Index >.base_get_item_(), ana::MCMCSamples.BestFitSampleIdx(), stan::math::operands_and_partials< Op1, Op2, Op3, Op4, Op5, var >.build(), osc::_OscCalcDMP< T >.ChannelCacheIdx(), osc::OscCalcPMNSOptEigen.ChannelCacheIdx(), daqchannelmap::ChannelMapException.ChannelMapException(), sn::SNMichelAnalyzer.ClusterAroundTrackEnds(), cheat::BackTracker.ClusterByTruth(), dbutils::daqconfig::ConfigDataTree.ConfigDataTree(), daqdataformats::DataFormatException.constructMessage(), stan::json::json_data_handler.convert_offset_rtl_2_ltr(), novarwgt.ConvertSRTruth(), dbutils::daqconfig::NamedConfigUtils.copyGlobalConfig(), nova::dbi::dBRow_t.copyNeededFields(), nova::database::dBRow_t.copyNeededFields(), nova::dbi::dBTable.copyNeededFields(), nova::database::dBTable.copyNeededFields(), dbutils::daqconfig::NamedConfigUtils.copySubsystemConfig(), CreateKNNTrainingTrees(), stan::math.csr_matrix_times_vector(), dbutils::gui::ConfigDataTreeModel.dataColumnNameForIndex(), dbutils::gui::ConfigDataTreeModel.dataColumnTypeForIndex(), beamlinereco::SGSmoothing.Derivative(), dbutils::gui::BitmapEditor.deselectAll(), lem::Potential.Downsampled(), draw_michel_plots(), dump_event(), gov::fnal::cd::rms::provider.dumpReceivedSamples(), zcl::SPCluster.dupCheck(), ana::FCBin.Empty(), testConcurrentQueue.enq_and_deq(), util.EnvExpansion(), gov::fnal::cd::rms::base::RmsDestination.equals(), caf.FillParticleTruth(), daq2raw::DAQHit2Raw.FillRawDigits(), fnex::NuEAnalysisSetup.FillRecoVars2018(), ana::ISurface.FillSurfObj(), novadaq::LocationUtils.findFile(), novadaq::CacheManager.flushCaches(), ana::Hist.FromDirectory(), genie::NNBarOscPrimaryVtxGenerator.GenerateDecayProducts(), dbutils::gui::DCSConfigEditorDisplay.generateRecipeScripts(), genie_preds_make(), genie_syst_make(), genie_syst_universe(), ana2019::TieredAnaObjStorage< StorageType >.Get(), stan::math.get_base1(), stan::math.get_base1_lhs(), get_mass(), dbutils::daqconfig::NamedConfigUtils.getAvailableGlobalConfigs(), dbutils::daqconfig::NamedConfigUtils.getAvailableSubsystemConfigs(), GetBiasErrorLine(), novadaq::ProcessUtils.getChildProcessIds(), dbutils::daqconfig::NamedConfigUtils.getConfigDetailAncestry(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData.getDataPoint(), novadaq::ProcessUtils.getDescendantProcessIds(), ana::Spectrum.GetEigenStan(), ana::MultiExperiment.GetExperiments(), SimpleModel.getFakeProngTensor(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData.getHeader(), dbutils::daqappmgr::ConfiguredHosts.getHostByName(), mcchk::DetSimAna.GetPDGBin(), dbutils::daqappmgr::ConfiguredProcessList.getProcess(), dbutils::daqappmgr::ConfiguredProcessList.getProcessListByExcludedType(), dbutils::daqappmgr::ConfiguredProcessList.getProcessListByType(), evd::SliceNavigator.GetProducts(), SimpleModel.getProngTensor(), gov::fnal::cd::rms::base::RmsDestination.getProperty(), dbutils::daqconfig::NamedConfigUtils.getRecentGlobalConfigs(), dbutils::gui::BitmapEditor.getResult(), SimpleModel.getSliceTensor(), dbutils::daqconfig::NamedConfigUtils.getSubsystemConfigsFromGlobalId(), dbutils::daqappmgr::ConfiguredApplicationTypes.getTypeByName(), go(), dbutils::gui::CustomTabWidget.hasChanges(), dbutils::gui::TabbedSetOfTableEditors.hasChanges(), dbutils::gui::TabbedSetOfTreeEditors.hasChanges(), dbutils::gui::ConfigDataTableModel.hasChanges(), dbutils::gui::ConfigDataTreeModel.headerData(), lin_solve(), dbutils::gui::CustomTabWidget.loadData(), dbutils::gui::TabbedSetOfTableEditors.loadData(), dbutils::gui::TabbedSetOfTreeEditors.loadData(), dbutils::gui::NamedConfigDataModel.loadData(), ana::FrequentistSurface.LoadFrom(), genie::Spline.LoadFromTree(), ana::StanFitter.log_prob(), ana::MultiExperiment.LogLikelihood(), lsqr_fprime(), LZ4HC_Insert(), LZ4HC_updateBinTree(), make_fc_file(), dbutils::gui::TreeItem.markBranchDirty(), gov::fnal::cd::rms::base::RmsDestination.matches(), MatrixDeterminant(), ana::MCMCSamples.MaxValue(), cheat::BackTracker.MCTruthToCluster(), ana::MCMCSamples.MinValue(), caf::VectorProxyBase.NName(), ana::MCMCSamples.NumSamples(), art::DelayedReader.openNextSecondaryFile(), ana::FCPoint.operator<(), dbutils::daqappmgr::ApplicationType.operator<(), dbutils::daqconfig::PixelParameterListWrapper.operator==(), dbutils::daqappmgr::ApplicationType.operator==(), art::PtrVector< T >.operator[](), stan::model::prob_grad.param_range_i(), skim::ParametersNue.ParametersNue(), skim::ParametersNumu.ParametersNumu(), ana::MCMCSamples.ParseDiagnosticBranches(), PlotDB_Web(), PlotNDDataTotalMCComparison(), genie::GHepRecord.Print(), vf::VertexFinder.produce(), cheat::TrackCheater.produce(), zcl::SPCluster.produce(), sn::SNSlicer.produce(), vdt::VertexDT.produce(), sn::SNBackgroundRejection.produce(), fuzz::FuzzyKVertex.produce(), tdslicer::TDSlicer.produce(), caf::CAFMaker.produce(), art::Ptr< T >.Ptr(), Plotter.q0q3Panel(), stan::io::stan_csv_reader.read_header(), evdb::EventDisplay.reconfigure(), dbutils::daqconfig::GeneralDataReader.remapValues(), sn::TrackActivityRemover.remove(), fnex::EventList.RemoveEvent(), resolution2018(), gov::fnal::cd::rms::base::RmsRuntimeException.RmsRuntimeException(), ana::MCMCSamples.RunDiagnostics(), stan::model.rvalue(), ana::MCMCSamples.SampleValue(), dbutils::gui::CustomTabWidget.saveChanges(), dbutils::gui::TabbedSetOfTreeEditors.saveChanges(), dbutils::gui::TabbedSetOfTableEditors.saveChanges(), dbutils::gui::ConfigDataTableModel.saveChanges(), dbutils::gui::ConfigDataTreeModel.saveChanges(), ana::PredictionCombinePeriods.SaveTo(), ana::FrequentistSurface.SaveTo(), ana::DataMCPair.SaveTo(), dbutils::daqconfig::ConfigDataTree.saveValues(), genie::flux::GNuMIFlux.ScanForMaxWeight(), art::RootInputFile.secondaryFiles(), dbutils::gui::BitmapEditor.selectAll(), dbutils::gui::ConfigDataTreeModel.setData(), remid::ReMId.SetDedxUsed(), remid::ReMId.SetDedxVertex(), gov::fnal::cd::rms::base::RmsDestination.setProperty(), ana::MultiExperiment.SetSystCorrelations(), show_event(), show_potential(), beamlinereco::SGSmoothing.Smooth(), simb::MCTrajectory.Sparsify(), novadaq::BackgroundProcess.stop(), caf::VectorProxyBase.Subscript(), systematics_summary_from_pred_interp(), dbutils::gui::TabbedSetOfTableEditors.TabbedSetOfTableEditors(), dbutils::gui::TabbedSetOfTreeEditors.TabbedSetOfTreeEditors(), TEST(), test_rtl_2_ltr(), test_systmultiverse(), DevelopmentTests.testColumnLookup(), BasicTests.testColumnLookup(), BasicTests.testRowInsertWithAutoIncrColumn(), DevelopmentTests.testTableCreationAndDestruction(), BasicTests.testTableCreationAndDestruction(), ana::BayesianMarginal.ThresholdFromTH1(), novadaq::BackgroundProcess.timedWaitForDone(), stan::json::json_data_handler.to_column_major(), novarwgt::test.ToStandardRecord(), gov::fnal::cd::rms::base::RmsDestination.toString(), dbutils::gui::CustomTabBehaviors.updateTabTextColors(), ana::FCBin.UpValueForSignificance(), novadaq::Runnable.watchfulSleep(), novadaq::LocationUtils.wordExpansion(), and ana::Hist.Write().

compare_h5_caf.IgnoreCommandLineOptions

Definition at line 29 of file compare_h5_caf.py.

list compare_h5_caf.keystocheck = []

Definition at line 38 of file compare_h5_caf.py.

list compare_h5_caf.KL = ['run', 'subrun', 'cycle', 'evt', 'subevt']

Definition at line 14 of file compare_h5_caf.py.

compare_h5_caf.nentries = roottree.GetSelectedRows()

Definition at line 80 of file compare_h5_caf.py.

compare_h5_caf.opts = parser.parse_args()

Definition at line 26 of file compare_h5_caf.py.

compare_h5_caf.parser = argparse.ArgumentParser(description = 'Compare contents of a HDF5 file with its CAF equivalent.\rUses TTree Draw to check leaf content from the CAF files and prints a message if its different from the HDF5 file.\rSome branches are just too expensive to evaluate or the leaves are too deep for TTree::Draw to work. Others have no data filled or are defunct.\rBranches that contain these are skipped : '+str(skip))

Definition at line 17 of file compare_h5_caf.py.

compare_h5_caf.required

Definition at line 18 of file compare_h5_caf.py.

compare_h5_caf.rootbranchkey = branchkey

Definition at line 54 of file compare_h5_caf.py.

compare_h5_caf.rootdata = np.zeros(nentries)

Definition at line 81 of file compare_h5_caf.py.

compare_h5_caf.rootfile = os.path.abspath(opts.rootfile)

Definition at line 33 of file compare_h5_caf.py.

compare_h5_caf.rootleafkey = rootbranchkey+'.'

Definition at line 74 of file compare_h5_caf.py.

compare_h5_caf.roottemp = roottree.GetV1()

Definition at line 82 of file compare_h5_caf.py.

compare_h5_caf.roottree = recTree

Definition at line 53 of file compare_h5_caf.py.

list compare_h5_caf.skip = ['genVersion', 'daughterlist', 'motherlist', 'fuzzyk.png.bpf','hough','vdt','spill.bpos', 'spill.int', 'training', 'cvnmap']
compare_h5_caf.start = time.time()

Definition at line 46 of file compare_h5_caf.py.

compare_h5_caf.str

Definition at line 18 of file compare_h5_caf.py.

compare_h5_caf.total = len(branchkeys)

Definition at line 70 of file compare_h5_caf.py.

compare_h5_caf.type

Definition at line 18 of file compare_h5_caf.py.