Classes | |
class | O2OJob |
class | O2OJobMgr |
class | O2OMgr |
class | O2ORun |
class | O2ORunMgr |
Functions | |
def | get_db_credentials |
def | get_iovs |
def | get_tags |
def | guess_condition_from_tag |
def | make_popcon_config_file |
def | run_popcon |
Variables | |
string | __author__ = 'Giacomo Govi' |
tuple | _Base = sqlalchemy.ext.declarative.declarative_base() |
string | authPathEnvVar = 'COND_AUTH_PATH' |
string | base_dir = "." |
list | condition_type = guessed_condition['condition_type'] |
string | coral_tpl = 'oracle://%s/%s' |
list | dev_db_service = ['cms_orcoff_prep','cms_orcoff_prep/cms_test_conditions'] |
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) |
string | fmt_str = "[%(asctime)s] %(levelname)s: %(message)s" |
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'] |
list | levStr = os.environ[messageLevelEnvVar] |
string | logFolderEnvVar = 'O2O_LOG_FOLDER' |
tuple | logFormatter = logging.Formatter(fmt_str) |
logLevel = logging.INFO | |
string | messageLevelEnvVar = 'O2O_LOG_LEVEL' |
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 | private_db = 'sqlite:///o2o_jobs.db' |
list | prod_db_service = ['cms_orcon_prod','cms_orcon_prod/cms_cond_general_w'] |
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() |
string | schema_name = 'CMS_CONDITIONS' |
string | sqlalchemy_tpl = 'oracle://%s:%s@%s' |
int | startStatus = -1 |
tuple | tag = tag_name.strip() |
tuple | tags = get_tags(base_dir+"/"+o2o_tag_list_file) |
string | use_dropbox = 'false' |
def o2o.get_db_credentials | ( | db_service, | |
authFile | |||
) |
def o2o.get_iovs | ( | tag, | |
input_pool_connect_string, | |||
mode | |||
) |
Definition at line 171 of file o2o.py.
References bitset_utilities.append(), and communicate().
def o2o.get_tags | ( | tag_list_file_name | ) |
Definition at line 157 of file o2o.py.
References bitset_utilities.append().
def o2o.guess_condition_from_tag | ( | tagname | ) |
def o2o.run_popcon | ( | ) |
Definition at line 217 of file o2o.py.
tuple o2o._Base = sqlalchemy.ext.declarative.declarative_base() |
list o2o.condition_type = guessed_condition['condition_type'] |
list o2o.dev_db_service = ['cms_orcoff_prep','cms_orcoff_prep/cms_test_conditions'] |
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) |
string o2o.fmt_str = "[%(asctime)s] %(levelname)s: %(message)s" |
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 copyObject(), cond::persistency.copyTag(), HcalDQMDbInterface.createIOV(), SiStripDetVOffTrendPlotter.dumpCSV(), LMFCorrCoefDat.fetch(), LMFCorrCoefDat.fetchBetween(), LMFRunIOV.fetchBySequence(), RunPTMTempDat.fetchData(), RunDat.fetchData(), RunCrystalErrorsDat.fetchData(), RunMemChErrorsDat.fetchData(), RunMemTTErrorsDat.fetchData(), RunPNErrorsDat.fetchData(), RunTTErrorsDat.fetchData(), RunConfigDat.fetchData(), RunFEConfigDat.fetchData(), MonH4TablePositionDat.fetchData(), RunLaserRunDat.fetchData(), RunTPGConfigDat.fetchData(), CaliGeneralDat.fetchData(), DCUVFETempDat.fetchData(), DCUCapsuleTempDat.fetchData(), MonShapeQualityDat.fetchData(), RunCommentDat.fetchData(), DCUIDarkPedDat.fetchData(), MODCCSFEDat.fetchData(), MODCCSTRDat.fetchData(), DCUIDarkDat.fetchData(), MODDCCOperationDat.fetchData(), CaliHVScanRatioDat.fetchData(), DCUCapsuleTempRawDat.fetchData(), CaliGainRatioDat.fetchData(), MonDelaysTTDat.fetchData(), RunH4TablePositionDat.fetchData(), CaliTempDat.fetchData(), CaliCrystalIntercalDat.fetchData(), MonLaserStatusDat.fetchData(), MonOccupancyDat.fetchData(), DCULVRBTempsDat.fetchData(), DCULVRTempsDat.fetchData(), MonPedestalsOnlineDat.fetchData(), MonLaserPulseDat.fetchData(), MonRunDat.fetchData(), MonPedestalOffsetsDat.fetchData(), FEConfigBadTTDat.fetchData(), MonCrystalConsistencyDat.fetchData(), MonLaserRedDat.fetchData(), MonLed1Dat.fetchData(), MonLed2Dat.fetchData(), ODWeightsSamplesDat.fetchData(), MonLaserBlueDat.fetchData(), MonLaserIRedDat.fetchData(), MonPNPedDat.fetchData(), ODDelaysDat.fetchData(), MonLaserGreenDat.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(), MonPNIRedDat.fetchData(), MonPNLed1Dat.fetchData(), MonPNLed2Dat.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::persistency::IOVEditor.flush(), HcalO2OManager.getListOfUpdateIovs(), LMFLmrSubIOV.getLMFIOV(), LMFCorrCoefDatComponent.getLMFLmrSubIOV(), LMFDat.getLMFRunIOVID(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::PopCon.initialize(), EcalCondDBInterface.insertDataArraySet(), EcalCondDBInterface.insertDataSet(), EcalCondDBInterface.insertDCUIOV(), EcalCondDBInterface.insertLmfIOV(), EcalCondDBInterface.insertLmfLmrSubIOV(), EcalCondDBInterface.insertLmfRunIOV(), EcalCondDBInterface.insertLmfSeq(), EcalCondDBInterface.insertMonRunIOV(), EcalCondDBInterface.insertRunIOV(), XMLDocument.makeElementIOV(), HcalDQMDbInterface.makeMapIOV(), XMLDocument.makeMapIOV(), l1t::DataWriter.payloadToken(), l1t::DataWriterExt.payloadToken(), printRuns(), TStorageFactoryFile.ReadBufferAsync(), TStorageFactoryFile.ReadBuffers(), TStorageFactoryFile.ReadBuffersSync(), DTConfigDBProducer.readDTCCBConfig(), MODRunIOV.setRunIOV(), LMFSeqDat.setRunIOV(), MonRunIOV.setRunIOV(), cond::service::PoolDBOutputService.tagInfo(), EcalCondDBInterface.updateRunIOV(), EcalCondDBInterface.updateRunIOVEndTime(), EcalCondDBInterface.updateRunIOVStartTime(), MODCCSFEDat.writeArrayDB(), MODCCSTRDat.writeArrayDB(), MODDCCOperationDat.writeArrayDB(), DCUVFETempDat.writeArrayDB(), DCUIDarkDat.writeArrayDB(), DCUCapsuleTempDat.writeArrayDB(), MonShapeQualityDat.writeArrayDB(), DCUIDarkPedDat.writeArrayDB(), DCUCapsuleTempRawDat.writeArrayDB(), MonH4TablePositionDat.writeArrayDB(), MonOccupancyDat.writeArrayDB(), MonPedestalsOnlineDat.writeArrayDB(), DCULVRBTempsDat.writeArrayDB(), MonLaserPulseDat.writeArrayDB(), CaliGainRatioDat.writeArrayDB(), MonPedestalOffsetsDat.writeArrayDB(), MonDelaysTTDat.writeArrayDB(), FEConfigBadTTDat.writeArrayDB(), ODDelaysDat.writeArrayDB(), CaliTempDat.writeArrayDB(), CaliCrystalIntercalDat.writeArrayDB(), MonPNPedDat.writeArrayDB(), ODWeightsSamplesDat.writeArrayDB(), MonLaserRedDat.writeArrayDB(), MonLed1Dat.writeArrayDB(), MonLed2Dat.writeArrayDB(), MonLaserBlueDat.writeArrayDB(), MonLaserGreenDat.writeArrayDB(), MonLaserIRedDat.writeArrayDB(), ODBadTTDat.writeArrayDB(), ODBadXTDat.writeArrayDB(), FEConfigBadStripDat.writeArrayDB(), FEConfigBadXTDat.writeArrayDB(), MonMemChConsistencyDat.writeArrayDB(), ODTowersToByPassDat.writeArrayDB(), ODVfeToRejectDat.writeArrayDB(), MODCCSHFDat.writeArrayDB(), MonTTConsistencyDat.writeArrayDB(), MonMemTTConsistencyDat.writeArrayDB(), MonPedestalsDat.writeArrayDB(), MonTestPulseDat.writeArrayDB(), MonCrystalConsistencyDat.writeArrayDB(), ODGolBiasCurrentDat.writeArrayDB(), ODPedestalOffsetsDat.writeArrayDB(), MonPNMGPADat.writeArrayDB(), MonPNBlueDat.writeArrayDB(), MonPNGreenDat.writeArrayDB(), MonPNLed2Dat.writeArrayDB(), MonPNIRedDat.writeArrayDB(), MonPNLed1Dat.writeArrayDB(), MonPNRedDat.writeArrayDB(), ODWeightsDat.writeArrayDB(), MODDCCDetailsDat.writeArrayDB(), DCULVRVoltagesDat.writeArrayDB(), DCUCCSDat.writeArrayDB(), ITimingDat.writeArrayDB(), RunPTMTempDat.writeDB(), MODCCSTRDat.writeDB(), MODCCSFEDat.writeDB(), RunDat.writeDB(), MODDCCOperationDat.writeDB(), RunCrystalErrorsDat.writeDB(), RunMemTTErrorsDat.writeDB(), MonShapeQualityDat.writeDB(), DCUCapsuleTempDat.writeDB(), DCUVFETempDat.writeDB(), RunTTErrorsDat.writeDB(), RunPNErrorsDat.writeDB(), RunMemChErrorsDat.writeDB(), DCUIDarkDat.writeDB(), DCUIDarkPedDat.writeDB(), RunFEConfigDat.writeDB(), RunLaserRunDat.writeDB(), RunConfigDat.writeDB(), MonH4TablePositionDat.writeDB(), RunTPGConfigDat.writeDB(), RunCommentDat.writeDB(), DCUCapsuleTempRawDat.writeDB(), CaliGeneralDat.writeDB(), CaliHVScanRatioDat.writeDB(), MonOccupancyDat.writeDB(), MonPedestalsOnlineDat.writeDB(), CaliGainRatioDat.writeDB(), DCULVRTempsDat.writeDB(), DCULVRBTempsDat.writeDB(), MonDelaysTTDat.writeDB(), MonLaserStatusDat.writeDB(), MonLaserPulseDat.writeDB(), RunH4TablePositionDat.writeDB(), MonPedestalOffsetsDat.writeDB(), CaliTempDat.writeDB(), CaliCrystalIntercalDat.writeDB(), MonRunDat.writeDB(), MonPNPedDat.writeDB(), MonLaserBlueDat.writeDB(), MonLaserRedDat.writeDB(), MonLaserGreenDat.writeDB(), MonLed2Dat.writeDB(), MonLaserIRedDat.writeDB(), MonLed1Dat.writeDB(), MonCrystalConsistencyDat.writeDB(), MonMemChConsistencyDat.writeDB(), MODCCSHFDat.writeDB(), MonPedestalsDat.writeDB(), MonTTConsistencyDat.writeDB(), MonMemTTConsistencyDat.writeDB(), MonTestPulseDat.writeDB(), MonPNGreenDat.writeDB(), MonPNIRedDat.writeDB(), MonPNMGPADat.writeDB(), MonPNLed1Dat.writeDB(), MonPNBlueDat.writeDB(), MonPNLed2Dat.writeDB(), MonPNRedDat.writeDB(), MonPulseShapeDat.writeDB(), MODDCCDetailsDat.writeDB(), DCULVRVoltagesDat.writeDB(), ITimingDat.writeDB(), and DCUCCSDat.writeDB().
list o2o.isnewtag = gotten_iovs['newtag'] |
list o2o.levStr = os.environ[messageLevelEnvVar] |
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'] |
list o2o.prod_db_service = ['cms_orcon_prod','cms_orcon_prod/cms_cond_general_w'] |
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(), ora::OraNamingServiceTable.getNamesForContainer(), ora::CondMetadataTable.getNamesForContainer(), ora::OraNamingServiceTable.getNamesForObject(), ora::CondMetadataTable.getNamesForObject(), getNextSequenceValue(), 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::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(), SiStripPayloadHandler< SiStripPayload >.queryConfigMap(), RunInfoRead.readData(), DQMSummaryReader.readData(), cond.selectAuthorization(), cond.selectConnection(), cond::CredentialStore.selectForUser(), ora::OraMappingSchema.selectMappingVersion(), ora::PoolMappingSchema.selectMappingVersion(), cond::CredentialStore.selectPermissions(), cond.selectPrincipal(), 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 pat::CandidateSummaryTable.analyze(), MixCollectionValidation.bookHistograms(), edm::CFWriter.CFWriter(), ChainedJetCorrectorProducer.ChainedJetCorrectorProducer(), HLTConfigData.dump(), models.generate(), EDMtoMEConverter.getData(), SiStripSummaryCreator.getSummaryME(), MonitorElement.getTags(), GoodSeedProducer.GoodSeedProducer(), FWPSetTableManager.handleEntry(), edm::HiMixingModule.HiMixingModule(), HLTMuonIsoFilter.HLTMuonIsoFilter(), HLTMuonPFIsoFilter.HLTMuonPFIsoFilter(), cond::persistency::GLOBAL_TAG_MAP::Table.insert(), L1Comparator.L1Comparator(), LightPFTrackProducer.LightPFTrackProducer(), edm::MixingModule.MixingModule(), edm.operator<<(), PFLinker.PFLinker(), PFNuclearProducer.PFNuclearProducer(), PFProducer.PFProducer(), PFTrackProducer.PFTrackProducer(), PFV0Producer.PFV0Producer(), MEtoEDM< TH1F >.putMEtoEdmObject(), pathelpers::RecordCache.RecordCache(), cond::persistency::GLOBAL_TAG_MAP::Table.select(), SimHitTPAssociationProducer.SimHitTPAssociationProducer(), and TrackingTruthAccumulator.TrackingTruthAccumulator().