Functions | |
def | countAnaBlocks (diblock_mask_binary) |
def | consolidate (run_rows) |
def | processFarDetData (data, detname, tag) |
def | processNearDetData (data, detname, tag) |
Variables | |
string | Usage |
string | data_type = 'data' |
tag = None | |
list | dbcon = [] |
t0 = text2datetime("0") | |
t1 = text2datetime("100000000") | |
channel_range = None | |
string | username = "nova_reader" |
opts | |
args | |
string | tname = "fardet.dq_subrun_info" |
list | columns = ["dbmask","flag"] |
db = ConDB(dbcon) | |
table = db.table(tname, columns) | |
sampwd = None | |
sampwdFile = None | |
conn | |
cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) | |
data | |
int | n = 0 |
int | nwrote = 0 |
string | detname = 'fardet' |
fout = open("/tmp/goodRuns4SAM.csv","w") | |
int | prev_diblock_mask = -1 |
bool | prev_isGood = True |
int | run = int(epoch(tv))/100 |
int | subrun = int(epoch(tv))%100 |
bool | isGood = True |
diblock_mask = int(values[0]) | |
string | line = '{0},{1},{2},{3},{4},{5}\n' |
csvFile = open("/tmp/goodRuns4SAM.csv","r") | |
sep | |
DB_PWD = open(os.environ['NOVADBPWDFILE'], 'r').readlines()[0].strip() | |
det = None | |
bool | test = False |
run_rows = processFarDetData(data, det, tag) | |
thisrun = row[0] | |
nextrun = run_rows[ (idx+1)][0] | |
run_range = psycopg2.extras.NumericRange(thisrun, nextrun, '[)') | |
def getGoodRuns4SAM.consolidate | ( | run_rows | ) |
Definition at line 35 of file getGoodRuns4SAM.py.
References novadaq::HexUtils.format(), and PandAna.Demos.demo1.range.
Referenced by processFarDetData(), and processNearDetData().
def getGoodRuns4SAM.countAnaBlocks | ( | diblock_mask_binary | ) |
Definition at line 17 of file getGoodRuns4SAM.py.
Referenced by processFarDetData().
def getGoodRuns4SAM.processFarDetData | ( | data, | |
detname, | |||
tag | |||
) |
Definition at line 66 of file getGoodRuns4SAM.py.
References bin, consolidate(), countAnaBlocks(), exit(), makeTrainCVSamples.int, and parse_dependency_file_t.list.
def getGoodRuns4SAM.processNearDetData | ( | data, | |
detname, | |||
tag | |||
) |
Definition at line 114 of file getGoodRuns4SAM.py.
References consolidate(), exit(), makeTrainCVSamples.int, and parse_dependency_file_t.list.
getGoodRuns4SAM.args |
Definition at line 24 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.channel_range = None |
Definition at line 21 of file getGoodRuns4SAM.py.
list getGoodRuns4SAM.columns = ["dbmask","flag"] |
Definition at line 48 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.conn |
Definition at line 67 of file getGoodRuns4SAM.py.
Definition at line 110 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) |
Definition at line 70 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.data |
Definition at line 76 of file getGoodRuns4SAM.py.
Definition at line 15 of file getGoodRuns4SAM.py.
Referenced by boost::python::detail::no_slice_helper< Container, DerivedPolicies, ProxyHandler, Data, Index >.base_delete_slice(), and boost::python::container_utils.extend_container().
getGoodRuns4SAM.db = ConDB(dbcon) |
Definition at line 49 of file getGoodRuns4SAM.py.
Definition at line 161 of file getGoodRuns4SAM.py.
string getGoodRuns4SAM.dbcon = [] |
Definition at line 17 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.det = None |
Definition at line 164 of file getGoodRuns4SAM.py.
string getGoodRuns4SAM.detname = 'fardet' |
Definition at line 81 of file getGoodRuns4SAM.py.
Referenced by rockmuon::NDRockMuon.beginJob(), makeHWwatchlist(), MakePPFXRatios(), OnMonAnaHistos(), OnMonAnaHistosFEB_IssueRates(), and OnMonAnaHistosPIX().
getGoodRuns4SAM.diblock_mask = int(values[0]) |
Definition at line 94 of file getGoodRuns4SAM.py.
Definition at line 83 of file getGoodRuns4SAM.py.
bool getGoodRuns4SAM.isGood = True |
Definition at line 91 of file getGoodRuns4SAM.py.
Definition at line 99 of file getGoodRuns4SAM.py.
int getGoodRuns4SAM.n = 0 |
Definition at line 79 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.nextrun = run_rows[ (idx+1)][0] |
Definition at line 256 of file getGoodRuns4SAM.py.
Referenced by CondenseRunList().
int getGoodRuns4SAM.nwrote = 0 |
Definition at line 80 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.opts |
Definition at line 24 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.prev_diblock_mask = -1 |
Definition at line 85 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.prev_isGood = True |
Definition at line 86 of file getGoodRuns4SAM.py.
Definition at line 89 of file getGoodRuns4SAM.py.
Definition at line 261 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.run_rows = processFarDetData(data, det, tag) |
Definition at line 238 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.sampwd = None |
Definition at line 52 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.sampwdFile = None |
Definition at line 53 of file getGoodRuns4SAM.py.
getGoodRuns4SAM.sep |
Definition at line 112 of file getGoodRuns4SAM.py.
Definition at line 90 of file getGoodRuns4SAM.py.
Referenced by comi::NearlineAna.analyze(), om::OnMonProd.analyze(), AnaPlotMaker(), BuildMetricsTree(), BuildMetricsTree_OnMon(), BuildOldTree(), caf::Proxy< caf::SRHeader >.CheckEquals(), caf::Proxy< caf::SRNeutrino >.CheckEquals(), caf::Proxy< caf::SRSpill >.CheckEquals(), CheckSubrun(), CheckTrueDate(), CleanupPrelim(), CleanupTree(), flat::Flat< caf::SRHeader >.Clear(), flat::Flat< caf::SRNeutrino >.Clear(), flat::Flat< caf::SRSpill >.Clear(), CondenseDetCfg(), CondenseRunList(), DCMOffsetCalculator(), DDTOnMonPlotMaker(), comi::ChanOcc.endSubRun(), FileNameToRunSubrun(), flat::Flat< caf::SRHeader >.Fill(), flat::Flat< caf::SRNeutrino >.Fill(), flat::Flat< caf::SRSpill >.Fill(), FillTree(), GetManualSubruns(), GetPartList(), GetPartList_4DB(), GetProcessed(), GetRunInfo(), nova::dbi::RunHistory.GoodDiBlockMask(), GoodRuns(), chaninfo::BadChanList.LoadNewData(), make_cosmic_eff_table(), MakeDetCfgCSV(), MakeDQValidityCSV(), MakeDQValidityCSVND(), MakeRunList(), Nearline_Watchdog_Plots(), NewNearlinePlots(), om::OnMonProd.NewRunNumber(), om::OnMonProd.NewSubrunNumber(), nova::dbi::RunHistory.NFEBs(), OnMonAnaHistosFEB_IssueRates(), OnMonAnaHistosPIX(), OnMonPlotMaker(), cmf::EventId.operator<(), caf::Proxy< caf::SRHeader >.operator=(), caf::Proxy< caf::SRNeutrino >.operator=(), caf::Proxy< caf::SRSpill >.operator=(), plot_cosmic_eff(), PlotDB_Web(), PlotOnMon(), plotTime(), om::IPC.PostResources(), caf::CAFMaker.produce(), util::TimeFilter.ReadEventFile(), util::EventFilterNoSlice.reconfigure(), util::RunEventFilter.reconfigure(), SamFileNameToRunSubrun(), nova::dbi::RunHistory.SetGoodDiBlockMask(), SetupOutTree(), om::FEBRateAnalysis.StoreContent(), novaddt::RunInfoStatic.Subrun(), TB_Nearline_Watchdog_Plots(), om::Ticker.Update(), and State.Write().
getGoodRuns4SAM.t0 = text2datetime("0") |
Definition at line 19 of file getGoodRuns4SAM.py.
Referenced by novaddt.ADCShapeFit(), calib.ADCShapeFit(), mono::SlowMonopoleTrigger.algorithm(), mono::DataCheckMonopole.analyze(), genie::NievesQELCCPXSec.CNCTCLimUcalc(), highe::HighEnergyFilt.filter(), novaddt::HighETrigger.filter(), novaddt::FEBOverflowTrigger.filter(), lem.get_http_response_internal(), novaddt::SupernovaTrigger.GetCandidates(), nutools::dbi::Table.GetConnection(), nova::dbi::Table.GetConnection(), nutools::dbi::Table.GetDataFromWebService(), nova::dbi::Table.GetDataFromWebService(), novaddt.GetExpectations(), calib.GetExpectations(), tf::TimingFitAlg.HoughFit(), novaddt::WaveformProcessor.initmulti(), zcl::SMMCluster.LinFit(), genie::NievesQELCCPXSec.LmunuAnumu(), main(), minimize(), zcl::SMMCluster.MissC(), evgen::NuMISpillTimeStructure.NewSpill(), osc::OscCalc.P_internal_mt(), crvtx::CosmicRayVertex.produce(), genie::NievesQELCCPXSec.relLindhard(), novaddt::WaveformProcessor.setup(), mono::SlowMonopoleTrigger.SlowMonopoleTrigger(), osc::analytic.SolveCubic(), tbrecoplots(), calib::ADCShapeFitTable.TNS(), zcl::FmmTrackerValidation.vfit(), and zcl::FmmTrackerAna.vfit().
getGoodRuns4SAM.t1 = text2datetime("100000000") |
Definition at line 20 of file getGoodRuns4SAM.py.
Referenced by art::detail::CanBeAggregated< std::array< T, N > >.aggregate(), singlekaon_xsec.Amatrix_NN(), genie::AlamSimoAtharVacasSKPXSec2014.Amatrix_NN(), singlekaon_xsec.Amatrix_NP(), genie::AlamSimoAtharVacasSKPXSec2014.Amatrix_NP(), singlekaon_xsec.Amatrix_PP(), genie::AlamSimoAtharVacasSKPXSec2014.Amatrix_PP(), zcl::SMMTriggerAna.analyze(), beamlinereco::ToFPositionRecoAnalysis.analyze(), beamlinereco::LEHitFinder< T >.BackwardFindingOfHitStart(), beamlinereco::CFDHitFinder< T >.BackwardFindingOfHitStart(), novaddt::HoughPoint.calc(), distance(), ifdb::IFDBSpillInfo.extrapolate_position(), highe::HighEnergyFilt.filter(), novaddt::HighETrigger.filter(), novaddt::SlowMMTrigger.filter(), beamlinereco::CFDHitFinder< T >.FindHitWidth(), lem.get_http_response_internal(), novaddt::SupernovaTrigger.GetCandidates(), nutools::dbi::Table.GetConnection(), nova::dbi::Table.GetConnection(), nutools::dbi::Table.GetDataFromWebService(), nova::dbi::Table.GetDataFromWebService(), genie::HAIntranuke.Inelastic(), genie::HAIntranuke2018.Inelastic(), runh::BadDataFilter.LoadBadTimeRanges(), main(), evtsum::EventSummary.MakeOutput(), osc::OscCalc.P_internal_me(), osc::OscCalc.P_internal_mt(), osc::OscCalc.P_internal_te(), zcl::SPCluster.produce(), comi::Cana.produce(), nl::TimeSeriesData.RangeTime(), evd::GeometryDrawer.ShowCellAndPlaneNumbers(), mono::SlowMonopoleTrigger.SlowMonopoleTrigger(), osc::analytic.SolveCubic(), sn.SortTrackEndsByTime(), and tbrecoplots().
Definition at line 50 of file getGoodRuns4SAM.py.
Referenced by calib::ADCShapeFitTable.ADCShapeFitTable(), TexBuilder.AddTable(), ana::DataMCPair.CreateSystTable(), genie::FermiMomentumTablePool.GetTable(), runh::BadDataFilter.LoadBadSubruns(), runh::BadDataFilter.LoadBadTimeRanges(), make_cosmic_eff_table(), rwgt::MakeGENIEReweightTable.produce(), cheat::BackTracker.SlicesToMCTruthsTable(), ana::SystMakerShift.WriteTable(), ana::SystMaker.WriteTable(), and genie::MECHadronTensor.~MECHadronTensor().
getGoodRuns4SAM.tag = None |
Definition at line 16 of file getGoodRuns4SAM.py.
Referenced by daq2raw::SpillWrapper.add(), genie::XclsTag.AsString(), art::Wrapper< T >.Class_Version(), compareEvents(), compareSelectedSets(), art::ModuleBase.consumes(), art::ModuleBase.consumesView(), ConvertGeantToPdg(), om::HistoSet.CopyAndResetOne(), art::prevent_recursion< T >.create_empty_sampled_product(), DrawCovMx(), caf::CAFMaker.endJob(), calib::SumRunsCalib.endRun(), Expression.fetchAll(), Expression.fetchOne(), skim::SkimmerAna.FillNueHistograms(), skim::CosmicBeamComparison.FillNueHistograms(), skim::SkimmingUtils.FillSliceVector(), art::FindMany< ProdB, void >.FindMany(), art::FindMany< ProdB, Data >.FindMany(), art::FindManyP< ProdB, void >.FindManyP(), art::FindManyP< ProdB, Data >.FindManyP(), art::FindOne< ProdB, void >.FindOne(), art::FindOne< ProdB, Data >.FindOne(), art::FindOneP< ProdB, void >.FindOneP(), art::FindOneP< ProdB, Data >.FindOneP(), GenerateCovMx(), art::DataViewImpl.getProductTokens(), ana::covmx::Sample.GetTag(), muonid.HighestPIDTrack(), remid.HighestPIDTrack(), HTag(), art::EDProduct.insertIfSampledProduct(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_contours(), joint_fit_2019_slices(), ana::NumuSyst.LoadFrom(), ana::NCSyst.LoadFrom(), ana::ISignalEstimator.LoadFrom(), ana::ReactorExperiment.LoadFrom(), ana::SolarConstraints.LoadFrom(), ana::NueSyst.LoadFrom(), ana::PredictionSterile.LoadFrom(), ana::TrivialSignalEstimator.LoadFrom(), ana::Binning.LoadFrom(), ana::PredictionCombinePeriods.LoadFrom(), ana::CrossSectionSpectra.LoadFrom(), ana::PredictionSystJoint2018.LoadFrom(), ana::PredictionSystJointDemo.LoadFrom(), ana::NDPredictionNoOsc.LoadFrom(), ana::NDOscillatableSpectrum.LoadFrom(), ana::ReweightableSpectrum.LoadFrom(), ana::TrivialCrossSectionAnalysis.LoadFrom(), ana::PredictionInterp.LoadFrom(), ana::BayesianSurface.LoadFrom(), ana::FrequentistSurface.LoadFrom(), ana::SystShifts.LoadFrom(), ana::SystMakerShiftSigma.LoadFrom(), ana::covmx::CovarianceMatrix.LoadFrom(), ana::OscillatableSpectrum.LoadFrom(), ana::PredictionSystNue2017.LoadFrom(), ana::SystMakerShift.LoadFrom(), ana::PredictionSystNumu2017.LoadFrom(), ana::MCMCSamples.LoadFrom(), ana::SystMaker.LoadFrom(), ana::Spectrum.LoadFrom(), ana::SystematicsMaker.LoadFrom(), ana.LoadFrom< IBkgdEstimator >(), ana.LoadFrom< IDecomp >(), ana.LoadFrom< IExperiment >(), ana.LoadFrom< IExtrap >(), ana.LoadFrom< IPrediction >(), ana.LoadFrom< ModularExtrapComponent >(), ana.LoadFrom< osc::IOscCalc >(), ana.LoadFrom< osc::IOscCalcAdjustable >(), genie::Spline.LoadFromXmlFile(), make_pi0_xcheck(), MakeSurface(), art::ModuleBase.mayConsume(), art::ModuleBase.mayConsumeView(), evdb::ParameterSetEditRow.ParameterSetEditRow(), ana::NuePlotStyle.PIDTag(), PIDTag(), plot_pi0_xcheck(), PrettyTag(), lem::LEMWorkerOutput.produce(), calib::SumAttenuationProfiles.readResults(), calib::AttenuationFit.readResults(), ana::LoadFromRegistry< BaseClass >.Register(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), art::Sampled< T >.Sampled(), sensitivity_plot(), calib::TimingCache.SetEpochTag(), calib::DriftCache.SetEpochTag(), calib::AbsCache.SetEpochTag(), calib::AttenCache.SetEpochTag(), nova::dbi::RunHistory.SetGainSettingTag(), calib::TimingCache.SetTag(), calib::AbsCache.SetTag(), calib::DriftCache.SetTag(), calib::AttenCache.SetTag(), daq2raw::SpillWrapper.SpillWrapper(), calib::SumAttenuationProfiles.SumAttenuationProfiles(), calib::SumRunsCalib.SumRunsCalib(), and om::PlotViewer.UpdateCompare().
getGoodRuns4SAM.test = False |
Definition at line 165 of file getGoodRuns4SAM.py.
Referenced by lem::dec::Forest.TrainSingle().
getGoodRuns4SAM.thisrun = row[0] |
Definition at line 254 of file getGoodRuns4SAM.py.
Referenced by CondenseDetCfg().
string getGoodRuns4SAM.tname = "fardet.dq_subrun_info" |
Definition at line 47 of file getGoodRuns4SAM.py.
Referenced by mono::Monopole.beginJob(), nutools::dbi::Table.DataTypeMask(), nova::dbi::Table.DataTypeMask(), nova::database::Table.ExistsInDB(), nova::dbi::Table.ExistsInDB(), nutools::dbi::Table.ExistsInDB(), TMVA::TMVAGlob.FindMethod(), nova::database::Table.LoadFromCSV(), nova::dbi::Table.LoadFromCSV(), nova::database::Table.LoadFromSSV(), nutools::dbi::Table.SetTableName(), nova::dbi::Table.SetTableName(), and nova::database::Table.Table().
string getGoodRuns4SAM.Usage |
Definition at line 7 of file getGoodRuns4SAM.py.
string getGoodRuns4SAM.username = "nova_reader" |
Definition at line 22 of file getGoodRuns4SAM.py.