Variables
shutoffs Namespace Reference

Variables

string rel = 'S13-02-16'
 
string resultpath = '/home/nearline/jancode/results/'
 
 dbpswfile = os.environ.get('NOVADBPWDFILE')
 
string dbpsw = ''
 
 pfile = open(dbpswfile,'r')
 
 week = timedelta(weeks=1)
 
 day = timedelta(days=1)
 
 date1 = date.today()
 
 date2 = date1-week
 
string query = 'select run, min(firstnonemptyeventtime), max(lastnonemptyeventtime) from ndos.nearline_metrics '
 
 db = TSQLServer.Connect("pgsql://ifdbprod.fnal.gov:5433/nova_prod", "nova_reader", dbpsw)
 
 stmt = db.Statement(query,1000)
 
list runs = []
 
int prevend = 0
 
 run = stmt.GetString(0)
 
 start = stmt.GetDay(1)
 
 end = stmt.GetDay(2)
 
 starttime = time.mktime(time.strptime(stmt.GetString(1),"%Y-%m-%d %H:%M:%S"))
 
 endtime = time.mktime(time.strptime(stmt.GetString(2),"%Y-%m-%d %H:%M:%S"))
 
string path = '/home/nearline/Nearline/Commissioning/FEBShutoff/febshutoff_auto.py'
 
string failures = ''
 
 endid = subprocess.call(["python",path,run])
 
string filename = resultpath+str(date2)+'_'
 
 outfile = open(filename,'w')
 
string file = resultpath+run+'febshutoff_auto.txt'
 
 infile = open(file,'r')
 

Variable Documentation

shutoffs.date1 = date.today()

Definition at line 28 of file shutoffs.py.

int shutoffs.date2 = date1-week

Definition at line 29 of file shutoffs.py.

shutoffs.day = timedelta(days=1)

Definition at line 27 of file shutoffs.py.

shutoffs.db = TSQLServer.Connect("pgsql://ifdbprod.fnal.gov:5433/nova_prod", "nova_reader", dbpsw)

Definition at line 40 of file shutoffs.py.

shutoffs.dbpsw = ''

Definition at line 18 of file shutoffs.py.

shutoffs.dbpswfile = os.environ.get('NOVADBPWDFILE')

Definition at line 17 of file shutoffs.py.

shutoffs.end = stmt.GetDay(2)

Definition at line 53 of file shutoffs.py.

shutoffs.endid = subprocess.call(["python",path,run])

Definition at line 77 of file shutoffs.py.

shutoffs.endtime = time.mktime(time.strptime(stmt.GetString(2),"%Y-%m-%d %H:%M:%S"))
string shutoffs.failures = ''

Definition at line 73 of file shutoffs.py.

string shutoffs.file = resultpath+run+'febshutoff_auto.txt'

Definition at line 110 of file shutoffs.py.

string shutoffs.filename = resultpath+str(date2)+'_'

Definition at line 106 of file shutoffs.py.

Referenced by genie::flux::GAtmoFlux.AddFluxFile(), om::FEBRateAnalysis.AnaFile(), AnalyseBinningSchemes(), AnaPlotMaker(), bpfit::BPFEnergyEstimator.beginRun(), photrans::BrightnessLevel.BrightnessLevel(), BuildMetricsTree(), compare_fits(), CompareAsimovAndMedian(), stan::lang.compile(), stan::lang.compile_functions(), genie::flux::GAtmoFlux.CosZenith(), CountProton(), genie::GMCJMonitor.CustomizeFilename(), genie::NtpWriter.CustomizeFilename(), DDTOnMonPlotMaker(), CLHEP::RandFlat.distributionName(), draw_fn_coverage(), DrawMedianAndUniverses(), genie::flux::GJPARCNuFlux.End(), novaddt::HotMapMaker.endJob(), genie::NtpWriter.EventTree(), fake_future_data(), fiducial_mass(), art::RootInputTree.fillAux(), genie::flux::GHAKKMAtmoFlux.FillFluxHisto(), genie::flux::GFLUKAAtmoFlux.FillFluxHisto(), genie::flux::GBGLRSAtmoFlux.FillFluxHisto(), FindLatestDB(), FindNewDQRuns(), FindNewDQRunsND(), CLHEP::MixMaxRng.flat(), mcmc.FullFilename(), futureSig_reach_singlePOTcombo_syst(), genie::flux::GJPARCNuFlux.GenerateNext_weighted(), genie_preds_make(), art::DatabaseConnection.get(), get_spectra_2dplots(), genie::utils::system.GetAllFilesInPath(), GetAllInputFiles(), GetCommandLineArgs(), getFDFileVector(), GetFlux(), GetHist(), ana.GetNueCosmics2020(), ana.GetNuePrediction2020(), GetNumuCosmics2018(), GetNumuCosmics2019(), ana.GetNumuCosmics2020(), GetNumuPredictions2018(), GetNumuPredictions2019(), genie::utils::xml.GetTFile(), goodness_of_fit(), GoodRuns(), genie::GMCJMonitor.Init(), genie::NtpMCTreeHeader.Init(), genie::geometry::ROOTGeomAnalyzer.Load(), genie::flux::GJPARCNuFlux.LoadBeamSimData(), genie::flux::GDk2NuFlux.LoadBeamSimData(), genie::flux::GSimpleNtpFlux.LoadBeamSimData(), genie::flux::GNuMIFlux.LoadBeamSimData(), genie::ReinSehgalRESPXSec.LoadConfig(), LoadCosmic(), genie::INukeHadroData2018.LoadCrossSections(), dbutils::gui::TabbedSetOfTreeEditors.loadData(), LoadExtrapPrediction(), genie::flux::GAtmoFlux.LoadFluxData(), genie::Spline.LoadFromAsciiFile(), genie::GSimFiles.LoadFromFile(), genie::XSecSplineList.LoadFromXml(), genie::PathLengthList.LoadFromXml(), genie::Spline.LoadFromXmlFile(), LoadPrediction(), genie::NaturalIsotopes.LoadTable(), genie::FermiMomentumTablePool.LoadTables(), main(), cet::sqlite::ConnectionFactory.make(), fnex::CAFContourMaker.Make2DContours(), make_nue_xsec_pred(), make_pi0_eventlist(), make_predictions_systs(), make_predictions_systs_fakedata(), make_vertex_optimiz(), MakeCovMx(), MakeDataReleaseFileContour(), MakeDataReleaseFileSlice(), makePIDCutTuning(), MakePPFXRatios(), makePrediction(), MatrixValidation(), mf::MaybeLogger_< SEV, VERBATIM >.MaybeLogger_(), mcTruthPredictions(), art::MemoryTracker.MemoryTracker(), mrbrem_get_reweighted_spectra(), mrbrem_plots(), MuonTreeLoopForPionSample(), ND_pred_MC_nue_signal(), NewNearlinePlots(), nue_background_decomposition(), nue_decomp_scales(), nue_decomp_scales_for_make_decomp(), nue_signal_extrapolation(), nuebar_signif(), nuint09_1pi1(), nuint09_1pi2(), nuint09_1pi3(), nuint09_1pi4(), nuint09_coh2(), nuint09_coh3(), nuint09_qel2(), nuint09_qel3(), nuint09_qel4(), nuint09_qel5(), nuint09_qel6(), OnMonAnaHistosFEB_IssueRates(), OnMonAnaHistosPIX(), OnMonPlotMaker(), genie::Cache.OpenCacheFile(), genie::NtpWriter.OpenFile(), genie::FermiMomentumTablePool.ParseXMLTables(), PionSignalTreeLoop(), PionTreeLoop(), plot_ehade_quantbound(), plot_nue_xsec_pred(), plot_quantile_boundaries_2020(), evd::SliceNavigator.postProcessEvent(), ppfx_smooth_weights_make(), ppfx_smooth_weights_save(), nl::NearlinePlot.Print(), genie::GSimFiles.Print(), genie::geometry::PathSegmentList.Print(), evdb::PrintDialog.PrintDialog(), ProtonSignalTreeLoop(), ProtonTreeLoop(), ProtonTreeLoopGamma(), reach_2018_dCPfractions(), daq2raw::BeamlineRawInputDriver.readFile(), genie::MECHadronTensor.ReadHadTensorqzq0File(), genie::INukeHadroData2018.ReadhNFile(), genie::INukeHadroData.ReadhNFile(), om::OnMonProd.reconfigure(), reduce_the_predfile_nue_numu(), resolution2018(), genie::Spline.SaveAsText(), genie::XSecSplineList.SaveAsXml(), genie::PathLengthList.SaveAsXml(), genie::Spline.SaveAsXml(), SaveDataToRootFile(), SaveSplinesToRootFile(), SaveToPsFile(), sensitivity_plot(), CLHEP::RandGauss.setF(), SetPrediction(), genie::Messenger.SetPrioritiesFromXmlFile(), cet::search_path.showenv(), genie::Spline.Spline(), dbutils::gui::TabbedSetOfTableEditors.TabbedSetOfTableEditors(), tbrecoplots(), template_basic(), template_nonGENIE_systs(), test_genieweights(), GeneralTests.testFindFile(), art::detail::InfoDumperInputFile.tfile(), art::TimeTracker.TimeTracker(), TreeLoop(), TreeLoopGamma(), vertex_optimize(), xsec_extrap_plots(), daq2raw::BeamlineRawInputDriver.~BeamlineRawInputDriver(), and genie::flux::GDk2NuFluxXMLHelper.~GDk2NuFluxXMLHelper().

shutoffs.infile = open(file,'r')

Definition at line 112 of file shutoffs.py.

shutoffs.outfile = open(filename,'w')

Definition at line 107 of file shutoffs.py.

string shutoffs.path = '/home/nearline/Nearline/Commissioning/FEBShutoff/febshutoff_auto.py'

Definition at line 72 of file shutoffs.py.

shutoffs.pfile = open(dbpswfile,'r')

Definition at line 19 of file shutoffs.py.

shutoffs.prevend = 0

Definition at line 49 of file shutoffs.py.

string shutoffs.query = 'select run, min(firstnonemptyeventtime), max(lastnonemptyeventtime) from ndos.nearline_metrics '

Definition at line 33 of file shutoffs.py.

string shutoffs.rel = 'S13-02-16'
string shutoffs.resultpath = '/home/nearline/jancode/results/'

Definition at line 14 of file shutoffs.py.

shutoffs.run = stmt.GetString(0)

Definition at line 51 of file shutoffs.py.

list shutoffs.runs = []

Definition at line 47 of file shutoffs.py.

Referenced by DCMOffsetCalculator(), and calib::DCMTimingOffset.endJob().

shutoffs.start = stmt.GetDay(1)

Definition at line 52 of file shutoffs.py.

shutoffs.starttime = time.mktime(time.strptime(stmt.GetString(1),"%Y-%m-%d %H:%M:%S"))
shutoffs.stmt = db.Statement(query,1000)

Definition at line 45 of file shutoffs.py.

shutoffs.week = timedelta(weeks=1)

Definition at line 26 of file shutoffs.py.

Referenced by pots(), and uptime().