Functions | |
def | get_spills (day, deltaDay, beam) |
def | num_spills_between (t0, t1, spills) |
def | main () |
Variables | |
view = sys.argv[1] | |
beam = str("numi") | |
int | ndays = -1 |
int | interval = -1 |
string | BASE_DIR = "/nusoft/app/web/htdoc/nova/datacheck/nearline/data/" |
beamStruct = BeamStruct() | |
f = TFile(BASE_DIR + 'POTSpillRateDay.root','RECREATE') | |
tree = TTree('BeamMetrics','POTtree') | |
Compute average delivered POT during a given time range Justin Vasel (jvasel@fnal.gov)
def POTSpillRate.get_spills | ( | day, | |
deltaDay, | |||
beam | |||
) |
Get info about spills during a particular day Args: day : A datetime object deltaDay : Number of days to consider Returns: spills : A list of spills (time in sec, pot number in 1E+12)
Definition at line 113 of file POTSpillRate.py.
References check_time_usage.float, novadaq::HexUtils.format(), and submit_syst.str.
Referenced by main().
def POTSpillRate.main | ( | ) |
1D plots hits vs w //
Definition at line 231 of file POTSpillRate.py.
References check_time_usage.float, novadaq::HexUtils.format(), get_spills(), makeTrainCVSamples.int, num_spills_between(), and PandAna.Demos.demo1.range.
def POTSpillRate.num_spills_between | ( | t0, | |
t1, | |||
spills | |||
) |
Determines the number of POT in a given time interval Args: t0 : A datetime object t1 : A datetime object spills : A list of spills Returns: potTotal : int
Definition at line 198 of file POTSpillRate.py.
References DCS_db_parser.database_connect(), novadaq::HexUtils.format(), submit_syst.str, and POTGetData.unix_timestamp().
Referenced by main().
Definition at line 48 of file POTSpillRate.py.
POTSpillRate.beam = str("numi") |
Definition at line 40 of file POTSpillRate.py.
Referenced by accum_nue_numu_equivalent(), accum_nue_numu_equivalent_fhc(), accum_nue_numu_equivalent_rhc(), caf::CAFMaker.AddMCTruthToVec(), Ana2018_box_opening_macro(), cmf::MetaData.BeamType(), caf::Proxy< caf::SRNeutrino >.CheckEquals(), flat::Flat< caf::SRNeutrino >.Clear(), CosmicPred(), cmf::SelectionUtility.DetermineUnusedSelections(), flat::Flat< caf::SRNeutrino >.Fill(), generate_fake_data(), ana2019::fakedata.Get2019Prediction(), get_numi_data_histogram(), get_spectra_2dplots(), GetNuePrediction2018(), GetNuePrediction2019(), ana.GetNuePrediction2020(), ana.GetNueQuantCuts2020(), GetNumuCosmics2018(), GetNumuCosmics2019(), ana.GetNumuCosmics2020(), GetNumuData2018(), GetNumuData2019(), ana.GetNumuData2020(), ana.GetNumuEhadFracQuantCuts2020(), GetNumuPredictions2018(), GetNumuPredictions2019(), ana.GetNumuPredictions2020(), ana.GetNumuPtQuantCuts2020(), cmf::ShifterAndWeighter.HornNormWeight(), cmf::SelectionUtility.Initialize(), cmf.InteractionTypeKey(), ana::PredictionSystJoint2018.LoadFrom(), ana::PredictionSystJointDemo.LoadFrom(), make_eff_plots_areaNorm(), make_fc_mass_and_oct_nersc_2018(), make_fc_mass_and_oct_nersc_2019(), make_fc_mh_nersc_2018(), make_fc_mh_nersc_2019(), make_fc_nus_surfs_nersc_2018(), make_fc_nus_surfs_nersc_2019(), make_fc_oct_nersc_2018(), make_fc_oct_nersc_2019(), make_fc_slices_nersc_2018(), make_fc_slices_nersc_2018_stats(), make_fc_slices_nersc_2019(), make_fc_surfaces_2020(), make_fc_surfaces_2020_validation(), make_fc_surfaces_nersc_2018(), make_fc_surfaces_nersc_2018_stats(), make_fc_surfaces_nersc_2019(), MakeBkgEMPlot(), MakeDQValidityCSVND(), mec_nux_tester_2020(), mec_tuning_fitter_2020(), mec_tuning_preds_2020(), monoprob(), NueExtrap(), NumuCosmic(), NumuExtrap(), caf::Proxy< caf::SRNeutrino >.operator=(), plot_spectra_2dplots(), pred_debug(), cmf::EventListManipulator.SetExposures(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), test_predInterp_debug(), and ana2019::TieredAnaObjStorage< StorageType >.TieredAnaObjStorage().
POTSpillRate.beamStruct = BeamStruct() |
Definition at line 53 of file POTSpillRate.py.
POTSpillRate.f = TFile(BASE_DIR + 'POTSpillRateDay.root','RECREATE') |
Definition at line 58 of file POTSpillRate.py.
int POTSpillRate.interval = -1 |
Definition at line 46 of file POTSpillRate.py.
Referenced by stan::mcmc::chains< RNG >.central_interval(), and TEST_F().
int POTSpillRate.ndays = -1 |
Definition at line 45 of file POTSpillRate.py.
POTSpillRate.tree = TTree('BeamMetrics','POTtree') |
Definition at line 107 of file POTSpillRate.py.
POTSpillRate.view = sys.argv[1] |
Definition at line 39 of file POTSpillRate.py.
Referenced by cvn::RegPixelMap.Add(), cvn::PixelMap.Add(), fuzz::FuzzyKVertex.AddProng(), calib::ThresholdAna.analyze(), chaninfo::CosmicEff.analyze(), comi::CosmicMetrics.analyze(), mcchk::DetAna.analyze(), dprf::ChannelPlots.analyze(), dprf::TrackPlots.analyze(), align::Alignment.analyze(), sn::SupernovaAna.analyze(), comi::NumiFilteringAna.analyze(), showere::ShowerEnergyAna.analyze(), novaddt::UpMuAna.analyze(), remid::ReMIdDedxRock.analyze(), remid::ReMIdDedxFD.analyze(), remid::ReMIdDedxStudies.analyze(), tbana::DetectorRateShutOff.analyze(), upmuana::UpMuRecoAna.analyze(), upmuana::UpMuAnalysis.analyze(), htk::HoughTrack.analyze(), avgefficiency(), calib::FindOutliers.beginJob(), comi::CosmicMetrics.beginJob(), calib::MuonTrackHits.beginJob(), calib::ThresholdAna.beginRun(), dprf::ChannelPlots.beginRun(), calib::CosmicCalib.beginRun(), dprf::TrackPlots.beginRun(), calib::MakeAttenuationProfiles.beginRun(), calib::DriftResponseCalc.beginRun(), calib.BestPathEstimates(), cvn::Boundary.Boundary(), noe.build_cell_lookup_table(), CalcCluster(), supernova::sliceAna.CalculatePCorr(), trk::KalmanTrackMerge.CanJoinTracks(), slid::NuEEnergyAlg.CellEnergy(), dt::Chunk.CellMeasurements(), dt::Chunk.CellPoints(), caf::Proxy< caf::SRShower >.CheckEquals(), caf::Proxy< caf::SRMRProperties >.CheckEquals(), caf::Proxy< caf::SRTrack >.CheckEquals(), caf::Proxy< caf::SRProng >.CheckEquals(), cheat::RecoCheckAna.CheckRecoClusters(), trk::KalmanTrackAna.CheckRecoTracks(), art::Wrapper< T >.Class_Version(), murem::TrackCleanUpAlg.CleanUpTrack(), flat::Flat< caf::SRShower >.Clear(), flat::Flat< caf::SRMRProperties >.Clear(), flat::Flat< caf::SRTrack >.Clear(), flat::Flat< caf::SRProng >.Clear(), geo::GeometryBase.ClosestApproach(), murem::TrackCleanUpAlg.ComputeVertexRegion(), calib::AttenFit.ConsolidateViews(), calib::AttenuationFit.ConsolidateViews(), cvn::RegCVNImageUtils.ConvertChargeVectorsToViewVectors(), geo::GeometryBase.CountCellsOnLine(), geo::GeometryBase.CountCellsOnLineFast(), trk::KalmanGeoHelper.CountMissedCellsOnLine(), cvn::PixelMapProducer.CreateMapGivenBoundary(), cvn::RegPixelMapProducer.CreateMapGivenShowerVertex(), cvn::RegPixelMapProducer.CreateMapGivenVertex(), lem.DefaultVertex(), evd::GeometryDrawer.DrawBadBoxesPretty(), evd::GeometryDrawer.DrawCells2D(), evd::GeometryDrawer.DrawDCMBoxes(), evd::GeometryDrawer.DrawHighlightCell(), eff_plots(), efficiency(), calib::AttenFit.endJob(), calib::FindOutliers.endRun(), comi::ChanOcc.endSubRun(), calib::AttenFit.expFit(), calib::AttenuationFit.expFit(), dt::ViewMerger.FakeThirdDimension(), om::PlotClickHandler.FEButcInfo(), flat::Flat< caf::SRShower >.Fill(), flat::Flat< caf::SRMRProperties >.Fill(), flat::Flat< caf::SRTrack >.Fill(), flat::Flat< caf::SRProng >.Fill(), novaddt::Merge2DTracks.fillDummyTracks(), hv::HoughVertexAlg.FillMaps(), skim::CosmicBeamComparison.FillNumuHistograms(), calib::CosmicCalib.FillPathLengthInfo(), calib::MakeAttenuationProfiles.FillPathLengthInfo(), lem.FillPotential(), trk::CosmicTrackAna.FillTrackHistograms(), novaddt::NuMuTrigger.filter(), comi::NumiFiltering.filter(), showere::ShowerEnergyFilterMC.filter(), mono::MonopoleTrack.filter(), novaddt::UpMuTrigger.filter(), calib::MuonTrackHits.filter(), mono::MonopoleCluster.find_isolated_hits(), calib.FindBelowThresholdCalibCandidates(), cvn::RegPixelMapProducer.FindCenterMedian(), cvn::PixelMapProducer.FindCenterMedian(), dt::DiscreteTracker.FindVertex(), cvn::Boundary.FirstCell(), calib::AttenFit.fit_channel_prof(), calib::AttenuationFit.fit_channel_prof(), fit_thresh_corrs(), fit_thresh_corrs_fb(), tut::TutProducer.FitPhoton(), evd::SimulationDrawer.FLSHit2D(), nuesand::FillNueSandbox.FracAngChanges(), nuesand::FillNueSandbox.FracModalHits(), jmshower::RecoJMShower.GetCellDistToPoint(), jmshower::RecoJMShower.GetCellDistToTrk(), calib::MakeAttenuationProfiles.GetChannelHists(), calib::MakeAttenuationProfiles.GetChannelProfiles(), evd::RecoBaseDrawer.GetClusterOutlines(), evd::RecoBaseDrawer.GetClusterOutlinesConvexHull(), evd::GeometryDrawer.GetDCMBoxes(), evd::SimulationDrawer.GetLimits(), geo::GeometryBase.GetPigtail(), geo::GeometryBase.getPlaneAndCellID(), calib::Calibrator.GetTimeStamp(), jmshower::JMShower.GetTransHits(), jmshower::RecoJMShower.GetTrkHitPos(), jmshower::RecoJMShower.GetTrkPlaneCell(), calib::ThresholdAna.GetView(), cmap::dataprov::CMap.getView(), calib::CosmicCalib.GetView(), calib::MakeAttenuationProfiles.GetView(), calib::AttenFit.GetView(), calib::AttenuationFit.GetView(), cvn::RegPixelMap.GlobalToIndex(), cvn::RegPixelMap.GlobalToIndexSingle(), slid::NuEEnergyAlg.HadronicDepEnergy(), muonid.HighestPIDTrack(), bpfit.HighestPIDTrack(), remid.HighestPIDTrack(), mono::MonopoleTrack.hit_is_on_track(), cheat::BackTracker.HitCollectionPurity(), om::PlotClickHandler.HwDCMHistogramInfo(), om::PlotClickHandler.HwDetHistogramInfo(), om::PlotClickHandler.HwPCHistogramInfoX(), om::PlotClickHandler.HwPCHistogramInfoY(), cvn::Boundary.IsWithin(), cvn::Boundary.LastCell(), numue::NumuEAlg.LongestTrack(), calib::AttenFit.lowessFit(), calib::AttenuationFit.lowessFit(), main(), airshower::AirSlicer.MakeTrackSlices(), trk::KalmanGeoHelper.MatchTrajectoryToPlaneInView(), rb::Cluster.MinMaxMeanXYZ(), numue::NumuEAlg.MuonEnergies(), cvn::RegPixelMap.NInput(), cvn::PixelMap.NInput(), slid::NuEEnergyAlg.NonStdCellEnergy(), evd::RecoBaseDrawer.OfflineChans2D(), dt::Chunk.operator<(), mono.operator<<(), caf::Proxy< caf::SRShower >.operator=(), caf::Proxy< caf::SRMRProperties >.operator=(), caf::Proxy< caf::SRTrack >.operator=(), caf::Proxy< caf::SRProng >.operator=(), slid::ParticleIDAlg.PlaneHitCell(), plot(), plot_abstree(), plot_assess(), plot_assess_nd(), plot_assess_pretty(), plot_assess_pretty_nd(), plot_thresholds(), plotmodulewise(), ddthelpers.print(), novaddt::RemoveOneDSlices.printDDTSlice(), novaddt::RemoveSpatialNoise.printDDTSlice(), novaddt::ContainedSlice.printDDTSlices(), printEventToJson(), calib::PCHitsList.ProcessTrackForBelowThresholdHits(), nuesand::FillNueSandbox.produce(), novaddt::TrackFit.produce(), jmshower::JMTrackMerge.produce(), cvn::CVNCosmicMapper.produce(), earms::ElasticArmsHS.produce(), dt::DiscreteTracker.produce(), jmshower::JMClusterMerge.produce(), vdt::VertexDT.produce(), cvntf::CVNProngEvaluatorTF.produce(), cheat::MCCheater.produce(), remid::RecoMuon.produce(), rb::Prong.Prong(), novaddt::RemoveSpatialNoise.pruneOutlyingCells(), jmshower::RecoJMShower.RecoShowers(), trk::RLFit.RLFit(), calib::AttenFit.rolloffFit(), calib::AttenuationFit.rolloffFit(), RunCalibration(), screen_to_activetrack(), screen_to_activevertex(), earms::ElasticArms.SetHit(), rb::CellHit.SetView(), trk::WindowTrackingAlg.ShortTrack(), novaddt::Merge2DTracks.simpleMerge(), lem::MakeLibrary.SliceMeanPosEWeighted(), DAQChannelMapTests.testViewLookups(), calib::ThresholdCorrMap.ThresholdCorrAt(), calib::ThresholdCorrMap.ThresholdCorrMap(), thresholdshadowing(), cvn::PixelMap.ToFile(), dt::Chain.ToTrack(), rb::Track.Track(), calib::AttenCache.TranslateChannelData(), uncorrected_PE(), slid::NuEEnergyAlg.VertexEnergy(), rb::WeightedProng.WeightedProng(), novaddt::DDTEvd.WriteHitListInfo(), moonshadowana::MoonShadowAna.WriteHitListInfo(), moonshadowana::MoonShadowAnaHough.WriteHitListInfo(), calib::AttenuationFit.writeResults(), and rect.xmax().