Variables
elec2geo Namespace Reference

Variables

 conn = psycopg2.connect("dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader port=5432")
 
 cur = conn.cursor()
 
string SQL = "select CAST(btrim(location2, 'BLK:') AS INT), CAST(btrim(position2, 'PLN:') AS INT), CAST(btrim(port2,'POS:') AS INT) from public.feb_comm_cables where location1='DIBLK:{}' and position1='DCM:{}' and port1='PRT:{}';"
 
 rows = cur.fetchall()
 
 block = row[0]
 print "ROW IS " print row More...
 
 layer = row[1]
 
 pos = row[2]
 

Variable Documentation

elec2geo.block = row[0]

print "ROW IS " print row

Definition at line 31 of file elec2geo.py.

Referenced by align::SplitTracks.analyze(), slicer::Slicer.BlockSlice(), daqchannelmap::FarDetDAQChannelMap.computeBlock(), daqchannelmap::TestBeamDAQChannelMap.computeBlock(), cmap::dataprov::CMap.computeBlock(), calib::AttenFit.ConsolidateViews(), calib::CosmicCalib.CosmicCalib(), DCSPlotMaker(), calib::BetheBlochFit.endJob(), calib::CosmicCalib.endJob(), calib::MakeAttenuationProfiles.endJob(), calib::AttenFit.endJob(), calib::SumSubrunsCalib.endRun(), calib::FindOutliers.endRun(), calib::AttenFit.endRun(), calib::SumSubrunsCalib.endSubRun(), calib::CosmicCalib.endSubRun(), calib::AttenFit.endSubRun(), om::PlotClickHandler.FEButcInfo(), calib::CosmicCalib.GetChannelProfiles(), calib::MakeAttenuationProfiles.GetChannelProfiles(), cmap::dataprov::CMap.getDiBlock(), daqchannelmap::DAQChannelMapOLD.getLocalBlockInDiblockOffline(), daqchannelmap::DAQChannelMapBaseOLD.getNumberOfPlanesBeforeBlock(), daqchannelmap::DAQChannelMapBaseOLD.getNumberOfPlanesInBlock(), om::PlotClickHandler.HwDCMHistogramInfo(), om::PlotClickHandler.HwDetHistogramInfo(), om::PlotClickHandler.HwPCHistogramInfoX(), om::PlotClickHandler.HwPCHistogramInfoY(), dbutils::RunHistory.Load(), daq2raw::BeamlineRawInputDriver.loadTDUFragments(), daq2raw::TestBeamRawInputDriver.loadTDUFragments(), calib::MakeAttenuationProfiles.MakeAttenuationProfiles(), calib::SumRunsCalib.reconfigure(), calib::SumAttenuationProfiles.reconfigure(), calib::SumSubrunsCalib.SumSubrunsCalib(), DAQChannelMapTests.testPlaneLookupsOffline(), and calib::AttenuationFit.writeResults().

elec2geo.conn = psycopg2.connect("dbname=nova_hardware host=ifdbprod.fnal.gov user=nova_reader port=5432")

Definition at line 6 of file elec2geo.py.

elec2geo.cur = conn.cursor()

Definition at line 11 of file elec2geo.py.

elec2geo.layer = row[1]
elec2geo.pos = row[2]

Definition at line 33 of file elec2geo.py.

Referenced by dbutils::gui._getIDFromDisplayString(), dbutils::gui._getIDFromDisplayString2(), fnex::EventList.AddEvent(), fnex::EventList.AddEventAt(), genie::GHepRecord.AddParticle(), rawfileparser::RawFileParser.AdvanceToConfigStart_mem(), rawfileparser::RawFileParser.AdvanceToFirstEvent_mem(), rawfileparser::RawFileParser.AdvanceToNextEvent_mem(), rawfileparser::RawFileParser.AdvanceToPreviousEvent_mem(), rawfileparser::RawFileParser.AdvanceToRunHeader_mem(), rawfileparser::RawFileParser.AdvanceToRunTail_mem(), align::SplitTracks.analyze(), zcl::FmmTrackerAna.analyze(), zcl::FmmTrackerValidation.analyze(), novaddt::UpMuAna.analyze(), beamlinegeo::BeamlineGeometry.BeamlineComponentPos(), rawfileparser::RawFileParser.BuildEventIndex_mem(), CalcCluster(), geo::GeometryBase.CellTpos(), stan::math::cholesky_block.chain(), stan::math::cholesky_scalar.chain(), stan::math::cholesky_block.cholesky_block(), stan::math.cholesky_decompose(), stan::math.cholesky_factor_constrain(), stan::math.cholesky_factor_free(), stan::math::cholesky_scalar.cholesky_scalar(), compareEvents(), bpfit::dEdxCalculator.computeDEDX(), genie::geometry::ROOTGeomAnalyzer.ComputePathLengths(), gov::fnal::cd::rms::util::TimeUtils.convertPtimeToString(), count_matches(), geo::GeometryBase.CountCellsOnLine(), trk::KalmanGeoHelper.CountMissedCellsOnLine(), stan::math.cov_exp_quad(), stan::math::cov_exp_quad_vari< T_x, T_sigma, T_l >.cov_exp_quad_vari(), stan::math::cov_exp_quad_vari< T_x, double, T_l >.cov_exp_quad_vari(), stan::math.cov_matrix_constrain_lkj(), stan::math.cov_matrix_free_lkj(), DefaultOutputFile(), cmf::MetaData.DetectorString(), trk::WindowTrackingAlg.DetermineInitialDirection(), fhicl::OptionalSequence< T,-1ull >.do_prepare_elements_for_validation(), fhicl::Sequence< T,-1ull >.do_prepare_elements_for_validation(), art::TrivialFileDelivery.doGetNextFileURI(), evd::GeometryDrawer.DrawCells2D(), evd::GeometryDrawer.DrawHighlightCell(), ErrorBand(), escapeQuotes(), cmf::EventListManipulator.ExtractEventsFromFile(), novaddt::UpMuTrigger.filter(), trk::KalmanTrack.FilterOnly(), genie::utils::str.FilterString(), art::TriggerNamesService.find(), genie::Spline.FindClosestKnot(), findNames(), lem::LEMMixer.FindRelease(), beamlinereco::WCTrackAlg.findTheHitPositions(), lem::LEMMixer.FindVersion(), FindW(), genie::GHepRecord.FirstNonInitStateEntry(), ana::MinuitFitter.FitHelperSeeded(), FormatFullCovMxPlot(), lem::PIDDetails.FromString(), genie::geometry::ROOTGeomAnalyzer.GenBoxRay(), evgen::SupernovaGen.Generate(), genie::geometry::ROOTGeomAnalyzer.GenerateVertex(), evd::RecoBaseDrawer.GetClusterOutlines(), rawfileparser::RawFileParser.getConfigBlock(), DataFile.GetData(), evd::GeometryDrawer.GetDCMBoxes(), jmshower::RecoJMShower.GetDedxInvLongLL(), jmshower::RecoJMShower.GetDedxLongLL(), jmshower::RecoJMShower.GetDedxTransLL(), art.getElementAddresses(), rawfileparser::RawFileParser.getEvent(), rawfileparser::RawFileParser.getFirstEvent(), meta::Metadata.GetInputMetadata(), rawfileparser::RawFileParser.getNextEvent(), GetOptionValue(), GetOutputFileName(), rawfileparser::RawFileParser.getPreviousEvent(), rawfileparser::RawFileParser.getRunHeader(), rawfileparser::RawFileParser.getRunTail(), evgen::CORSIKAGen.GetSample(), ana::SystConcat.GetShifts(), GetSystBaseName(), GetSystConcats(), stan::math.gp_periodic_cov(), stan::math::gp_periodic_cov_vari< T_x, T_sigma, T_l, T_p >.gp_periodic_cov_vari(), stan::math::gp_periodic_cov_vari< T_x, double, T_l, T_p >.gp_periodic_cov_vari(), genie::GHepRecord.HasCompactDaughterList(), tf::TimingFitAlg.HoughFit(), om::PlotClickHandler.HwDetDoubleClick(), hyperon_macro(), hyperon_nom_macro(), fhicl::detail.is_sequence_element(), fhicl::detail::MaybeDisplayParent.is_sequence_element(), g4n::FLSHitListAction.IsRockVetoed(), lem::LEMMixer.LEMPartFor(), nova::dbi::RunHistory.LoadDAQRunHistory(), LoadMaps(), ana.LoadMaps(), dbutils::gui::DAQConfigEditorDisplay.loadThresholdsAndMasks(), fnex::EventListManipulator.LoadVarVals(), art::detail::value_type_helper.look_past_pair(), om::HistogramBrowser.MakeCategory(), supernova::SnovaGen.MakeMCTruth(), cvn.MakeParticleLabel(), MatrixValidation(), stan::math.mdivide_left(), stan::math.mdivide_left_ldlt(), stan::math.mdivide_left_spd(), stan::math.mdivide_left_tri(), stan::math.multiply_lower_tri_self_transpose(), lem::LEMMixer.nSecondaries(), evdb::ScanWindow.OpenOutputFile(), g4n::FLSHitListAction.ParticleProjection(), PlotResolution(), cheat::ProngCheater.produce(), cheat::ShowerCheater.produce(), cheat::MCCheater.produce(), evgen::TextFileGen.produce(), evgen::CosmicsGen.ProjectCosmicsToSurface(), evgen::CosmicsGen.ProjectMuonsToDetectorBigBox(), stan::math.read_corr_L(), stan::io::stan_csv_reader.read_header(), skim::NumuSkimmer.reconfigure(), skim::NueSkimmer.reconfigure(), skim::EvaluatorNumu.reconfigure(), skim::EvaluatorNue.reconfigure(), jmshower::RecoJMShower.RecoShowers(), genie::utils::str.RemoveSuccessiveSpaces(), genie::utils::str.ReplaceStringInPlace(), ResolutionPlot(), lem::LEMMixer.respondToOpenInputFile(), meta::Metadata.respondToOpenInputFile(), evgb::CRYHelper.Sample(), evgen::IsoGen.Sample(), evgen::SingleGen.Sample(), evdb::ScanFrame.ScanFrame(), screen_to_activevertex(), set_eventn_status_hit(), set_eventn_status_timing(), set_eventn_status_track(), set_eventn_status_vertex(), genie::geometry::PathSegmentList.SetPrintVerbose(), art.setPtr(), genie::geometry::PathSegmentList.SetStartInfo(), art::detail::value_type_helper.starts_with_pair(), g4n::FLSHitListAction.SteppingAction(), stan::math.tcrossprod(), geo::GeometryTest.testCellId(), geo::GeometryTest.testFindCell(), geo::GeometryTest.testStepping(), tokenize(), novadaq::XMLDeserializationRegistry.translateClassName(), daq2raw::BeamlineUnpack.UnpackTrigger(), and genie::GHepRecord.UpdateDaughterLists().

elec2geo.rows = cur.fetchall()

Definition at line 26 of file elec2geo.py.

string elec2geo.SQL = "select CAST(btrim(location2, 'BLK:') AS INT), CAST(btrim(position2, 'PLN:') AS INT), CAST(btrim(port2,'POS:') AS INT) from public.feb_comm_cables where location1='DIBLK:{}' and position1='DCM:{}' and port1='PRT:{}';"

Definition at line 20 of file elec2geo.py.