Functions | |
def | get_iovs |
def | get_tags |
def | guess_condition_from_tag |
def | make_popcon_config_file |
def | run_popcon |
Variables | |
string | base_dir = "." |
list | condition_type = guessed_condition['condition_type'] |
string | dropbox_comment = 'generated by CaloOnlineTools/HcalOnlineDb/test/o2o.py script' |
string | dropbox_destination_db = 'oracle://cms_orcon_prod/CMS_COND_31X_HCAL' |
string | dropbox_dir = "./dropbox" |
tuple | dropbox_file_name_prefix = str(output_dir) |
tuple | dropbox_txt_file = open(dropbox_txt_file_name, "w") |
tuple | dropbox_txt_file_name = str(dropbox_file_name_prefix) |
tuple | gotten_iovs = get_iovs(tag, input_pool_connect_string, mode) |
tuple | guessed_condition = guess_condition_from_tag(tag) |
int | i = 0 |
string | input_pool_connect_string = "sqlite_file:/nfshome0/kukartse/hcal/dcs/HcalDcsValues_v1.00_offline.db" |
tuple | iov = int(line) |
list | isnewtag = gotten_iovs['newtag'] |
string | mode = 'online' |
list | o2o_iovs = gotten_iovs['iovs'] |
string | o2o_tag_list_file = "o2o_tag_list.txt" |
string | omds_accessor_string = "occi://CMS_HCL_APPUSER_R@anyhost/cms_omds_lb?PASSWORD=HCAL_Reader_44" |
string | output_dir = "." |
string | output_pool_connect_string = "sqlite_file:/nfshome0/kukartse/hcal/dcs/HcalDcsValues_v1.00_offline.db" |
string | pool_auth_path = "/nfshome0/popcondev/conddb" |
pool_iov = iov | |
string | pool_logconnect = "sqlite_file:/nfshome0/kukartse/hcal/dcs/log.db" |
list | pool_record = guessed_condition['pool_record'] |
string | python_popcon_file = "dbwrite_o2o.py" |
string | python_popcon_template_file = "dbwrite_o2o_template.py" |
tuple | query = query_file.read() |
tuple | query_file = open(query_file_name, "r") |
list | query_file_name = guessed_condition['query_file_name'] |
query_save = query | |
tuple | run_result = run_popcon() |
tuple | tag = tag_name.strip() |
tuple | tags = get_tags(base_dir+"/"+o2o_tag_list_file) |
string | use_dropbox = 'false' |
def o2o.get_iovs | ( | tag, | |
input_pool_connect_string, | |||
mode | |||
) |
Definition at line 171 of file o2o.py.
References python.multivaluedict.append(), and communicate().
def o2o.get_tags | ( | tag_list_file_name | ) |
Definition at line 157 of file o2o.py.
References python.multivaluedict.append().
def o2o.guess_condition_from_tag | ( | tagname | ) |
def o2o.run_popcon | ( | ) |
Definition at line 217 of file o2o.py.
list o2o.condition_type = guessed_condition['condition_type'] |
string o2o.dropbox_comment = 'generated by CaloOnlineTools/HcalOnlineDb/test/o2o.py script' |
string o2o.dropbox_destination_db = 'oracle://cms_orcon_prod/CMS_COND_31X_HCAL' |
tuple o2o.dropbox_file_name_prefix = str(output_dir) |
tuple o2o.dropbox_txt_file = open(dropbox_txt_file_name, "w") |
tuple o2o.dropbox_txt_file_name = str(dropbox_file_name_prefix) |
tuple o2o.gotten_iovs = get_iovs(tag, input_pool_connect_string, mode) |
tuple o2o.guessed_condition = guess_condition_from_tag(tag) |
string o2o.input_pool_connect_string = "sqlite_file:/nfshome0/kukartse/hcal/dcs/HcalDcsValues_v1.00_offline.db" |
tuple o2o.iov = int(line) |
Definition at line 307 of file o2o.py.
Referenced by cond::IOVEditor.append(), cond::IOVEditor.bulkAppend(), cond::IOVProxy.comment(), copyObject(), cond::persistency.copyTag(), HcalDQMDbInterface.createIOV(), cond::IOVEditor.debugInfo(), cond::IOVEditor.deleteEntries(), cond::IOVEditor.editMetadata(), cond::AlignSplitIOV.execute(), LMFCorrCoefDat.fetch(), LMFCorrCoefDat.fetchBetween(), LMFRunIOV.fetchBySequence(), RunPTMTempDat.fetchData(), RunDat.fetchData(), RunMemTTErrorsDat.fetchData(), RunPNErrorsDat.fetchData(), RunMemChErrorsDat.fetchData(), RunTTErrorsDat.fetchData(), RunCrystalErrorsDat.fetchData(), MonH4TablePositionDat.fetchData(), RunTPGConfigDat.fetchData(), RunConfigDat.fetchData(), RunFEConfigDat.fetchData(), RunLaserRunDat.fetchData(), DCUCapsuleTempDat.fetchData(), DCUIDarkPedDat.fetchData(), DCUVFETempDat.fetchData(), MonShapeQualityDat.fetchData(), CaliGeneralDat.fetchData(), RunCommentDat.fetchData(), MODDCCOperationDat.fetchData(), DCUIDarkDat.fetchData(), MODCCSFEDat.fetchData(), MODCCSTRDat.fetchData(), CaliHVScanRatioDat.fetchData(), DCUCapsuleTempRawDat.fetchData(), CaliGainRatioDat.fetchData(), MonDelaysTTDat.fetchData(), RunH4TablePositionDat.fetchData(), CaliTempDat.fetchData(), CaliCrystalIntercalDat.fetchData(), MonLaserStatusDat.fetchData(), DCULVRBTempsDat.fetchData(), DCULVRTempsDat.fetchData(), MonOccupancyDat.fetchData(), MonLaserPulseDat.fetchData(), MonPedestalsOnlineDat.fetchData(), MonRunDat.fetchData(), MonPedestalOffsetsDat.fetchData(), MonCrystalConsistencyDat.fetchData(), FEConfigBadTTDat.fetchData(), MonLaserBlueDat.fetchData(), MonLaserIRedDat.fetchData(), MonLaserRedDat.fetchData(), MonLed1Dat.fetchData(), MonLed2Dat.fetchData(), ODWeightsSamplesDat.fetchData(), MonLaserGreenDat.fetchData(), MonPNPedDat.fetchData(), ODDelaysDat.fetchData(), FEConfigBadStripDat.fetchData(), FEConfigBadXTDat.fetchData(), ODBadTTDat.fetchData(), ODBadXTDat.fetchData(), MonMemChConsistencyDat.fetchData(), ODTowersToByPassDat.fetchData(), ODVfeToRejectDat.fetchData(), MODCCSHFDat.fetchData(), MonTTConsistencyDat.fetchData(), MonMemTTConsistencyDat.fetchData(), MonPedestalsDat.fetchData(), MonTestPulseDat.fetchData(), ODGolBiasCurrentDat.fetchData(), ODPedestalOffsetsDat.fetchData(), MonPNBlueDat.fetchData(), MonPNLed1Dat.fetchData(), MonPNLed2Dat.fetchData(), MonPNIRedDat.fetchData(), MonPNMGPADat.fetchData(), MonPNRedDat.fetchData(), MonPNGreenDat.fetchData(), MonPulseShapeDat.fetchData(), ODWeightsDat.fetchData(), MODDCCDetailsDat.fetchData(), DCULVRVoltagesDat.fetchData(), DCUCCSDat.fetchData(), ITimingDat.fetchData(), EcalCondDBInterface.fetchDataSet(), EcalCondDBInterface.fetchDataSetWithMap(), EcalCondDBInterface.fetchFEDelaysForRun(), LMFCorrCoefDat.fetchLastInsertedRun(), EcalCondDBInterface.fetchRunIOV(), LMFCorrCoefDat.find(), cond::IOVProxy.find(), cond::IOVProxy.firstSince(), cond::IOVEditor.freeInsert(), HcalO2OManager.getListOfPoolIovs(), HcalO2OManager.getListOfUpdateIovs(), LMFLmrSubIOV.getLMFIOV(), LMFCorrCoefDatComponent.getLMFLmrSubIOV(), LMFDat.getLMFRunIOVID(), popcon::EcalLaser_weekly_Handler.getNewObjects(), HIPAlignmentAlgorithm.initialize(), popcon::PopCon.initialize(), cond::IOVEditor.insert(), EcalCondDBInterface.insertDataArraySet(), EcalCondDBInterface.insertDataSet(), EcalCondDBInterface.insertDCUIOV(), EcalCondDBInterface.insertLmfIOV(), EcalCondDBInterface.insertLmfLmrSubIOV(), EcalCondDBInterface.insertLmfRunIOV(), EcalCondDBInterface.insertLmfSeq(), EcalCondDBInterface.insertMonRunIOV(), EcalCondDBInterface.insertRunIOV(), cond::IOVProxy.isValid(), cond::IOVProxy.lastTill(), cond.loadIOV(), XMLDocument.makeElementIOV(), HcalDQMDbInterface.makeMapIOV(), XMLDocument.makeMapIOV(), cond::persistency.migrateTag(), cond::IOVProxy.payloadClasses(), l1t::DataWriter.payloadToken(), printRuns(), TStorageFactoryFile.ReadBufferAsync(), TStorageFactoryFile.ReadBuffers(), TStorageFactoryFile.ReadBuffersSync(), DTConfigDBProducer.readDTCCBConfig(), TestFunct.ReadWithIOV(), cond::IOVProxy.revision(), cond::persistency::OraIOVTable.selectLatest(), cond::persistency::OraIOVTable.selectLatestByGroup(), MODRunIOV.setRunIOV(), LMFSeqDat.setRunIOV(), MonRunIOV.setRunIOV(), cond::IOVEditor.setScope(), cond::IOVProxy.size(), cond::IOVEditor.stamp(), cond::service::PoolDBOutputService.tagInfo(), cond::IOVProxy.timestamp(), cond::IOVProxy.timetype(), cond::IOVEditor.truncate(), cond::IOVEditor.updateClosure(), EcalCondDBInterface.updateRunIOV(), EcalCondDBInterface.updateRunIOVEndTime(), EcalCondDBInterface.updateRunIOVStartTime(), cond::IOVProxy.validity(), MODDCCOperationDat.writeArrayDB(), MODCCSFEDat.writeArrayDB(), MODCCSTRDat.writeArrayDB(), DCUCapsuleTempDat.writeArrayDB(), MonShapeQualityDat.writeArrayDB(), DCUIDarkDat.writeArrayDB(), DCUIDarkPedDat.writeArrayDB(), DCUVFETempDat.writeArrayDB(), DCUCapsuleTempRawDat.writeArrayDB(), MonH4TablePositionDat.writeArrayDB(), MonOccupancyDat.writeArrayDB(), MonPedestalsOnlineDat.writeArrayDB(), DCULVRBTempsDat.writeArrayDB(), MonLaserPulseDat.writeArrayDB(), MonPedestalOffsetsDat.writeArrayDB(), CaliGainRatioDat.writeArrayDB(), MonDelaysTTDat.writeArrayDB(), ODDelaysDat.writeArrayDB(), FEConfigBadTTDat.writeArrayDB(), CaliTempDat.writeArrayDB(), CaliCrystalIntercalDat.writeArrayDB(), MonPNPedDat.writeArrayDB(), ODWeightsSamplesDat.writeArrayDB(), MonLaserBlueDat.writeArrayDB(), MonLaserGreenDat.writeArrayDB(), MonLaserIRedDat.writeArrayDB(), MonLaserRedDat.writeArrayDB(), MonLed1Dat.writeArrayDB(), MonLed2Dat.writeArrayDB(), FEConfigBadXTDat.writeArrayDB(), FEConfigBadStripDat.writeArrayDB(), ODBadTTDat.writeArrayDB(), ODBadXTDat.writeArrayDB(), ODVfeToRejectDat.writeArrayDB(), MonMemChConsistencyDat.writeArrayDB(), ODTowersToByPassDat.writeArrayDB(), MODCCSHFDat.writeArrayDB(), MonCrystalConsistencyDat.writeArrayDB(), ODGolBiasCurrentDat.writeArrayDB(), MonMemTTConsistencyDat.writeArrayDB(), MonPedestalsDat.writeArrayDB(), MonTTConsistencyDat.writeArrayDB(), MonTestPulseDat.writeArrayDB(), ODPedestalOffsetsDat.writeArrayDB(), MonPNBlueDat.writeArrayDB(), MonPNIRedDat.writeArrayDB(), MonPNGreenDat.writeArrayDB(), MonPNRedDat.writeArrayDB(), MonPNLed2Dat.writeArrayDB(), MonPNLed1Dat.writeArrayDB(), MonPNMGPADat.writeArrayDB(), ODWeightsDat.writeArrayDB(), MODDCCDetailsDat.writeArrayDB(), DCULVRVoltagesDat.writeArrayDB(), DCUCCSDat.writeArrayDB(), ITimingDat.writeArrayDB(), RunPTMTempDat.writeDB(), RunDat.writeDB(), MODCCSTRDat.writeDB(), MODCCSFEDat.writeDB(), MODDCCOperationDat.writeDB(), RunTTErrorsDat.writeDB(), RunPNErrorsDat.writeDB(), DCUIDarkDat.writeDB(), RunMemChErrorsDat.writeDB(), RunMemTTErrorsDat.writeDB(), DCUCapsuleTempDat.writeDB(), MonShapeQualityDat.writeDB(), DCUIDarkPedDat.writeDB(), DCUVFETempDat.writeDB(), RunCrystalErrorsDat.writeDB(), RunConfigDat.writeDB(), MonH4TablePositionDat.writeDB(), RunTPGConfigDat.writeDB(), RunLaserRunDat.writeDB(), RunFEConfigDat.writeDB(), RunCommentDat.writeDB(), DCUCapsuleTempRawDat.writeDB(), CaliGeneralDat.writeDB(), CaliHVScanRatioDat.writeDB(), MonPedestalsOnlineDat.writeDB(), CaliGainRatioDat.writeDB(), MonOccupancyDat.writeDB(), MonDelaysTTDat.writeDB(), DCULVRTempsDat.writeDB(), MonLaserStatusDat.writeDB(), DCULVRBTempsDat.writeDB(), RunH4TablePositionDat.writeDB(), MonLaserPulseDat.writeDB(), CaliTempDat.writeDB(), MonPedestalOffsetsDat.writeDB(), CaliCrystalIntercalDat.writeDB(), MonPNPedDat.writeDB(), MonRunDat.writeDB(), MonLed2Dat.writeDB(), MonLaserBlueDat.writeDB(), MonLaserGreenDat.writeDB(), MonLaserRedDat.writeDB(), MonLed1Dat.writeDB(), MonLaserIRedDat.writeDB(), MonCrystalConsistencyDat.writeDB(), MonMemChConsistencyDat.writeDB(), MODCCSHFDat.writeDB(), MonPedestalsDat.writeDB(), MonTestPulseDat.writeDB(), MonTTConsistencyDat.writeDB(), MonMemTTConsistencyDat.writeDB(), MonPNIRedDat.writeDB(), MonPNMGPADat.writeDB(), MonPNLed2Dat.writeDB(), MonPNRedDat.writeDB(), MonPNLed1Dat.writeDB(), MonPNBlueDat.writeDB(), MonPNGreenDat.writeDB(), MonPulseShapeDat.writeDB(), MODDCCDetailsDat.writeDB(), DCULVRVoltagesDat.writeDB(), ITimingDat.writeDB(), DCUCCSDat.writeDB(), and TestFunct.WriteWithIOV().
list o2o.isnewtag = gotten_iovs['newtag'] |
list o2o.o2o_iovs = gotten_iovs['iovs'] |
string o2o.omds_accessor_string = "occi://CMS_HCL_APPUSER_R@anyhost/cms_omds_lb?PASSWORD=HCAL_Reader_44" |
string o2o.output_dir = "." |
Definition at line 33 of file o2o.py.
Referenced by L1TCSCTFClient.dqmEndJob(), and L1TCSCTFClient.initialize().
string o2o.output_pool_connect_string = "sqlite_file:/nfshome0/kukartse/hcal/dcs/HcalDcsValues_v1.00_offline.db" |
string o2o.pool_logconnect = "sqlite_file:/nfshome0/kukartse/hcal/dcs/log.db" |
list o2o.pool_record = guessed_condition['pool_record'] |
string o2o.python_popcon_template_file = "dbwrite_o2o_template.py" |
tuple o2o.query = query_file.read() |
Definition at line 269 of file o2o.py.
Referenced by MonitorElementsDb.analyze(), l1t::OMDSReader.basicQuery(), l1t::OMDSReader.basicQueryGenericKey(), l1t::OMDSReader.basicQueryView(), ora::OraMappingSchema.containerForMappingVersion(), SiStripCoralIface.doNameQuery(), SiStripCoralIface.doQuery(), SiStripCoralIface.doSettingsQuery(), cond::CredentialStore.exportAll(), HcalLutManager.get_brickSet_from_oracle(), ora::OraNamingServiceTable.getAllNames(), ora::CondMetadataTable.getAllNames(), RunDCSLVDat.getBarrelRset(), RunDCSHVDat.getBarrelRset(), HcalChannelQualityXml.getBaseLineFromOmds(), ora::OraMappingSchema.getClassVersionListForContainer(), ora::PoolMappingSchema.getClassVersionListForContainer(), ora::OraMappingSchema.getClassVersionListForMappingVersion(), ora::PoolMappingSchema.getClassVersionListForMappingVersion(), ora::OraContainerHeaderTable.getContainerData(), ora::PoolContainerHeaderTable.getContainerData(), ora::OraMappingSchema.getContainerTableMap(), ora::OraMappingSchema.getDependentClassesInContainerMapping(), RunDCSHVDat.getEndcapAnodeRset(), RunDCSHVDat.getEndcapDynodeRset(), RunDCSLVDat.getEndcapRset(), HcalQIEManager.getHfQieTable(), HcalChannelQualityXml.getIovsFromOmds(), ora::OraSequenceTable.getLastId(), ora::PoolSequenceTable.getLastId(), HcalAssistant.getListOfChannelsFromDb(), HcalO2OManager.getListOfOmdsIovs(), HcalO2OManager.getListOfOmdsTags(), DBlmapReader.GetLMAP(), RunDCSMagnetDat.getMagnetRset(), ora::OraMappingSchema.getMapping(), ora::PoolMappingSchema.getMapping(), ora::OraMappingSchema.getMappingVersionListForContainer(), ora::PoolMappingSchema.getMappingVersionListForContainer(), ora::OraMappingSchema.getMappingVersionListForTable(), TestFunct.GetMetadata(), ora::OraNamingServiceTable.getNamesForContainer(), ora::CondMetadataTable.getNamesForContainer(), ora::OraNamingServiceTable.getNamesForObject(), ora::CondMetadataTable.getNamesForObject(), ora::OraNamingServiceTable.getObjectByName(), ora::CondMetadataTable.getObjectByName(), HCALConfigDB.getOnlineLUT(), HCALConfigDB.getOnlineLUTFromXML(), ora::OraMainTable.getParameters(), HcalQIEManager.getTableFromDb(), HcalChannelQualityXml.getTagsFromOmds(), ora::OraMappingSchema.getVersionList(), ora::PoolMappingSchema.getVersionList(), cond::CredentialStore.listConnections(), cond::CredentialStore.listPrincipals(), ora::Serializer.lock(), ora::OraContainerHeaderTable.lockContainer(), ora::PoolContainerHeaderTable.lockContainer(), cond::SequenceManager.lockEntry(), cond::Logger.LookupLastEntryByProvenance(), cond::Logger.LookupLastEntryByTag(), cond::persistency::DefineQueryOutput< T >.make(), cond::persistency::DefineQueryOutput< cond::Binary >.make(), cond::persistency::DefineQueryOutput< boost::posix_time::ptime >.make(), cond::persistency::DefineQueryOutput< cond::TimeType >.make(), cond::persistency::DefineQueryOutput< cond::SynchronizationType >.make(), cond::persistency::DefineQueryOutput< std::array< char, n > >.make(), L1CaloHcalScaleConfigOnlineProd.newObject(), TestFunct.Read(), DQMSummaryReader.readData(), cond.selectAuthorization(), cond.selectConnection(), cond::CredentialStore.selectForUser(), ora::OraMappingSchema.selectMappingVersion(), ora::PoolMappingSchema.selectMappingVersion(), cond::CredentialStore.selectPermissions(), cond.selectPrincipal(), cond::TagCollectionRetriever.selectTagCollection(), and cond::CredentialStore.startSession().
tuple o2o.query_file = open(query_file_name, "r") |
string o2o.query_file_name = guessed_condition['query_file_name'] |
tuple o2o.run_result = run_popcon() |
tuple o2o.tags = get_tags(base_dir+"/"+o2o_tag_list_file) |
Definition at line 248 of file o2o.py.
Referenced by MixCollectionValidation.bookHistograms(), edm::CFWriter.CFWriter(), ChainedJetCorrectorProducer.ChainedJetCorrectorProducer(), HLTConfigData.dump(), EDMtoMEConverter.getData(), SiStripSummaryCreator.getSummaryME(), MonitorElement.getTags(), GoodSeedProducer.GoodSeedProducer(), FWPSetTableManager.handleEntry(), edm::HiMixingModule.HiMixingModule(), HLTMuonIsoFilter.HLTMuonIsoFilter(), HLTMuonPFIsoFilter.HLTMuonPFIsoFilter(), cond::persistency::GLOBAL_TAG_MAP::Table.insert(), LightPFTrackProducer.LightPFTrackProducer(), edm::MixingModule.MixingModule(), edm.operator<<(), PFLinker.PFLinker(), PFNuclearProducer.PFNuclearProducer(), PFProducer.PFProducer(), PFTrackProducer.PFTrackProducer(), PFV0Producer.PFV0Producer(), MEtoEDM< TH1F >.putMEtoEdmObject(), cond::persistency::GLOBAL_TAG_MAP::Table.select(), cond::persistency::OraGTMapTable.select(), and TrackingTruthAccumulator.TrackingTruthAccumulator().