Functions | Variables
make_root_from_grid_output Namespace Reference

Functions

def process_one_file (fn)
 

Variables

list file_list = [name for name in glob.glob('/pnfs/nova/persistent/users/acedeno/ncpi0/nd_fhc_nc_selection_stride_FlatFluxdataset1_offset0*')]
 
 outf = TFile('training_sample_FlatFlux.root', 'recreate')
 
 tr = TTree('tr', 'tree of training sample')
 
 run = array('i', [0])
 
 subrun = array('i', [0])
 
 cycle = array('i', [0])
 
 evt = array('i', [0])
 
 subevt = array('i', [0])
 
 npng1gamma = array('f', [0.])
 
 npng2gamma = array('f', [0.])
 
 ncgappng1 = array('f', [0.])
 
 ncgappng2 = array('f', [0.])
 
 nc = array('i',[0])
 
 ispi0 = array('i',[0])
 
 ntrks = array('i', [0])
 
 dedxll = array('f', [0.])
 
 scatll = array('f', [0.])
 
 dedx10 = array('f', [0.])
 
 dedx10_squeezed = array('f', [0.])
 
 dedx20 = array('f', [0.])
 
 dedx20_squeezed = array('f', [0.])
 
 dedx30 = array('f', [0.])
 
 dedx30_squeezed = array('f', [0.])
 
 dedx40 = array('f', [0.])
 
 dedx40_squeezed = array('f', [0.])
 
 pdg = array('i', [0])
 
 trklen = array('f', [0.])
 
 measfrac = array('f', [0.])
 
 remid = array('f', [0.])
 
 remcont = array('i', [0])
 

Function Documentation

def make_root_from_grid_output.process_one_file (   fn)

Definition at line 11 of file make_root_from_grid_output.py.

References check_time_usage.float, makeTrainCVSamples.int, and open().

12 
13  with open(fn, 'r') as inf:
14 
15  for line in inf:
16 
17  line = line.rstrip('\n').rstrip(' ')
18 
19  values = line.split(' ')
20 
21  run[0] = int(values[0])
22 
23  subrun[0] = int(values[1])
24 
25  cycle[0] = int(values[2])
26 
27  evt[0] = int(values[3])
28 
29  subevt[0] = int(values[4])
30 
31  npng1gamma[0] = float(values[5])
32 
33  npng2gamma[0] = float(values[6])
34 
35  ncgappng1[0] = float(values[7])
36 
37  ncgappng2[0] = float(values[8])
38 
39  nc[0] = int(values[9])
40 
41  ispi0[0] = int(values[10])
42 
43  tr.Fill()
44 
45 
procfile open("FD_BRL_v0.txt")

Variable Documentation

make_root_from_grid_output.cycle = array('i', [0])
make_root_from_grid_output.dedx10 = array('f', [0.])

Definition at line 68 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx10_squeezed = array('f', [0.])

Definition at line 69 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx20 = array('f', [0.])

Definition at line 70 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx20_squeezed = array('f', [0.])

Definition at line 71 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx30 = array('f', [0.])
make_root_from_grid_output.dedx30_squeezed = array('f', [0.])

Definition at line 73 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx40 = array('f', [0.])

Definition at line 74 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedx40_squeezed = array('f', [0.])

Definition at line 75 of file make_root_from_grid_output.py.

make_root_from_grid_output.dedxll = array('f', [0.])
make_root_from_grid_output.evt = array('i', [0])

Definition at line 82 of file make_root_from_grid_output.py.

list make_root_from_grid_output.file_list = [name for name in glob.glob('/pnfs/nova/persistent/users/acedeno/ncpi0/nd_fhc_nc_selection_stride_FlatFluxdataset1_offset0*')]

Definition at line 46 of file make_root_from_grid_output.py.

Referenced by resolution_event_tree().

make_root_from_grid_output.ispi0 = array('i',[0])

Definition at line 96 of file make_root_from_grid_output.py.

Referenced by useBDTG().

make_root_from_grid_output.measfrac = array('f', [0.])
make_root_from_grid_output.nc = array('i',[0])
make_root_from_grid_output.ncgappng1 = array('f', [0.])

Definition at line 90 of file make_root_from_grid_output.py.

Referenced by ana::GetNCPi0BDTID.operator()().

make_root_from_grid_output.ncgappng2 = array('f', [0.])

Definition at line 92 of file make_root_from_grid_output.py.

Referenced by ana::GetNCPi0BDTID.operator()().

make_root_from_grid_output.npng1gamma = array('f', [0.])

Definition at line 86 of file make_root_from_grid_output.py.

Referenced by ana::GetNCPi0BDTID.operator()().

make_root_from_grid_output.npng2gamma = array('f', [0.])

Definition at line 88 of file make_root_from_grid_output.py.

Referenced by ana::GetNCPi0BDTID.operator()().

make_root_from_grid_output.ntrks = array('i', [0])

Definition at line 65 of file make_root_from_grid_output.py.

Referenced by qeef::QeFinderVal.analyze(), and qeef::QePId.SetNtrk().

make_root_from_grid_output.outf = TFile('training_sample_FlatFlux.root', 'recreate')

Definition at line 66 of file make_root_from_grid_output.py.

make_root_from_grid_output.pdg = array('i', [0])

Definition at line 76 of file make_root_from_grid_output.py.

Referenced by cheat::TestTrackIds.analyze(), remid::ReMIdTrain.analyze(), mcchk::CosmicAna.analyze(), remid::ReMIdDedx.analyze(), fnex::EventListMaker.analyze(), remid::ReMIdDedxStudies.analyze(), bpfit::BPFTmvaTrainer.analyze(), mcchk::CosmicAna.beginRun(), mcchk::LeptonAna.beginRun(), caf::Proxy< caf::SRCosmic >.CheckEquals(), caf::Proxy< caf::SRTrueParticle >.CheckEquals(), caf::Proxy< caf::SRNeutrino >.CheckEquals(), caf::Proxy< caf::SRParticleTruth >.CheckEquals(), caf::Proxy< caf::SRBpfId >.CheckEquals(), caf::Proxy< caf::SRBpfTrack >.CheckEquals(), cheat::RecoCheckAna.CheckRecoClusters(), trk::KalmanTrackAna.CheckRecoTracks(), convert(), convert_mcnp_txt_to_root(), ConvertToGHad(), demo_trivial_xsec_analysis(), DirNameToProbe(), fnex::CAFToEventList.endJob(), cmf::CAFToEventList.endJob(), evgen::CosmicsGen.Enhance(), flat::FlatQepid.Fill(), nuesand::FillNueSandbox.FillTruthVars(), lem::BackgroundEnricher.filter(), caf.FindAndAddMichels(), genie::geometry::ROOTGeomAnalyzer.FindMaterialInCurrentVol(), genie::GHepRecord.FindParticle(), ana::FixGibuuWeight.FixGibuuWeight(), flat::FlatQepid.FlatQepid(), genie::KNOHadronization.GenerateHadronCodes(), GetCommandLineArgs(), INukeNucleonCorr.getInstance(), cvn.GetInteractionType(), gibuu::GiBUURegen.GetKey(), cvn.GetMultiplicityMap(), fnex::ShifterAndWeighter.GetOscChannel(), mcchk::DetSimAna.GetPDGBin(), evgen::CORSIKAGen.GetSample(), genie::CharmHadronization.Hadronize(), bpfit.HighestPIDTrack(), cheat::BackTracker.HitToFLSHit(), ana::NuWROSyst.InitializeHistograms(), genie::FGMBodekRitchie.LoadConfig(), genie::NuclearModelMap.LoadConfig(), genie::SmithMonizUtils.LoadConfig(), evd::MCTrueView.LoadEvent(), gibuu::GiBUURegen.LoadGenieXSecs(), gibuu::GiBUURegen.LoadGiBUUCorrs(), gibuu::GiBUURegen.LoadGiBUURecords(), readFlux.Loop(), main(), make_dst_cosrejbdttrain(), cosrej::MakeNueCosRej.Mass(), evd::SimulationDrawer.MCTruthTrajectoriesAnyD(), MinervaFluxFromHist(), MippNA49FluxFromHist(), genie::GHepRecord.NEntries(), neutron_evd(), ana::GetBPFMuonID.operator()(), ana::GetBestBPFTrack.operator()(), simb.operator<<(), caf::Proxy< caf::SRCosmic >.operator=(), caf::Proxy< caf::SRTrueParticle >.operator=(), caf::Proxy< caf::SRNeutrino >.operator=(), caf::Proxy< caf::SRParticleTruth >.operator=(), caf::Proxy< caf::SRBpfId >.operator=(), caf::Proxy< caf::SRBpfTrack >.operator=(), fnex::ShifterAndWeighter.OscillationWeight(), cmf::ShifterAndWeighter.OscillationWeightBinCenter(), cmf::ShifterAndWeighter.OscillationWeightTrueE(), g4n::G4Alg.OverridePDGLifetimes(), ParseFluxHst(), genie::GHepRecord.ParticlePosition(), cheat::BackTracker.ParticleToFLSHit(), ana::CVNPngTruthSel.PDG(), plot_abstree(), Helper.PlotSpecial(), novaddt::UpMuAna.populateFLSmap(), prepare_mcnp_root_for_g4nova(), g4n::ParticleListAction.PreTrackingAction(), evgen::CORSIKAGen.produce(), ProducingSA(), fnex::ReadCAFMakeEventList.ReadCAFTree(), genie::flux::GSimpleNtpEntry.Reset(), resolution_event_tree(), RunCalibration(), evgb::CRYHelper.Sample(), genie::supernova::GenParticle.SetPDG(), rb::PID.SetPdg(), rb::FitSum.SetPDG(), sim::FLSHit.SetPDG(), testfom(), novarwgt::test.ToNuSimData(), novarwgt::test.ToStandardRecord(), train_dectree_caf(), ana::TrivialCrossSectionAnalysis.TrivialCrossSectionAnalysis(), slid::EventLID.~EventLID(), rb::FitSum.~FitSum(), slid::LID.~LID(), rb::PID.~PID(), and slid::SliceLID.~SliceLID().

make_root_from_grid_output.remcont = array('i', [0])
make_root_from_grid_output.remid = array('f', [0.])
make_root_from_grid_output.run = array('i', [0])

Definition at line 76 of file make_root_from_grid_output.py.

make_root_from_grid_output.scatll = array('f', [0.])
make_root_from_grid_output.subevt = array('i', [0])

Definition at line 84 of file make_root_from_grid_output.py.

make_root_from_grid_output.subrun = array('i', [0])

Definition at line 78 of file make_root_from_grid_output.py.

make_root_from_grid_output.tr = TTree('tr', 'tree of training sample')

Definition at line 72 of file make_root_from_grid_output.py.

Referenced by dbutils::gui::BasicEditorDisplay._addHelpMenu(), calib::ADCShapeFitTable.ADCShapeFitTable(), dbutils::gui::ConfigDataTreeEditor.addChildRow(), ana::FCCollection.AddFiles(), daqdataformats::VERSION_NAMESPACE::RawDataBlock.addMicroBlock4(), dbutils::gui::ConfigDataTreeEditor.addRowAfter(), dbutils::gui::ConfigDataTreeEditor.addRowBefore(), dprf::ChannelPlots.analyze(), dprf::TrackPlots.analyze(), dbutils::gui::BasicEditorDisplay.BasicEditorDisplay(), ana.BasicPIDPlots2019_Cuts(), ana.BasicPIDPlots_Cuts(), dbutils::gui::BitmapEditor.BitmapEditor(), dbutils::gui::ConfigSelectionDialog.ConfigSelectionDialog(), count_library_stats(), dbutils::gui::DAQConfigEditorDisplay.DAQConfigEditorDisplay(), dbutils::gui::DCSConfigEditorDisplay.DCSConfigEditorDisplay(), draw_tracks(), DrawDet(), ana::FCBin.Empty(), extract_gibuu_corrs(), fit_thresh_corrs(), fit_thresh_corrs_fb(), lem::dec::Forest.FromFile(), dbutils::gui::DCSConfigEditorDisplay.generateRecipeScripts(), caf::VectorProxyBase.GetTreeForName(), om::GUIMain.GUIMain(), ana::SpectrumLoader.HandleFile(), ana::NuWROSyst.InitializeHistograms(), lem::dec::Cut.IsLeaf(), lem::dec::Leaf.IsLeaf(), lem::EventSummary.IsSig(), ana::FCSurface.LoadFromFile(), dbutils::gui::DCSConfigEditorDisplay.loadHVAndTemps(), g4n.LoadNeutronFates(), dbutils::gui::DAQConfigEditorDisplay.loadThresholdsAndMasks(), dbutils::gui::NameValueLabelPair.NameValueLabelPair(), neutron_evd(), NuMu2019_BasicPIDPlots_FD(), NuMu2019_BasicPIDPlots_ND(), NuMu2019_BasicPIDPlots_Spectrum(), gibuu::OnDemandRecordList.OnDemandRecordList(), ana::FCPoint.operator<(), plot_assess(), plot_assess_nd(), plot_atten_csv(), plot_beam_peak(), plot_xsecs(), novaddt::WaveformProcessor.postBeginRun(), daqdataformats::VERSION_NAMESPACE::RawEvent.print(), calib::FiberCalibration.produce(), calib::TimingCalibration.produce(), stan::lang.rethrow_located(), locator::RndmLocatorTable.RndmLocatorTable(), dbutils::gui::BasicEditorDisplay.saveChangesWithNewName(), ana::FCCollection.SaveToFile(), ana::FCSurface.SaveToFile(), dbutils::gui::ConfigDataTreeModel.setData(), SetDrawOptions(), daqdataformats::RawEvent.setTrigger(), calib::ThresholdCorrMap.ThresholdCorrMap(), lem::dec::Forest.ToFile(), dt::Chain.ToTrack(), lem::dec::Forest.Train(), dbutils::gui::ConfigDataTreeEditor.updatePopupMenu(), dbutils::gui::ConfigDataTableEditor.updatePopupMenu(), ana::TreeMaker.Write(), and lem::dec::TreeNode.~TreeNode().

make_root_from_grid_output.trklen = array('f', [0.])