CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
o2o Namespace Reference

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'
 

Function Documentation

def o2o.get_db_credentials (   db_service,
  authFile 
)

Definition at line 52 of file o2o.py.

def o2o.get_iovs (   tag,
  input_pool_connect_string,
  mode 
)

Definition at line 171 of file o2o.py.

def o2o.get_tags (   tag_list_file_name)

Definition at line 157 of file o2o.py.

def o2o.guess_condition_from_tag (   tagname)

Definition at line 76 of file o2o.py.

def o2o.make_popcon_config_file (   filename)

Definition at line 52 of file o2o.py.

def o2o.run_popcon ( )

Definition at line 217 of file o2o.py.

Variable Documentation

string o2o.__author__ = 'Giacomo Govi'

Definition at line 1 of file o2o.py.

tuple o2o._Base = sqlalchemy.ext.declarative.declarative_base()

Definition at line 25 of file o2o.py.

string o2o.authPathEnvVar = 'COND_AUTH_PATH'

Definition at line 21 of file o2o.py.

string o2o.base_dir = "."

Definition at line 32 of file o2o.py.

list o2o.condition_type = guessed_condition['condition_type']

Definition at line 257 of file o2o.py.

string o2o.coral_tpl = 'oracle://%s/%s'

Definition at line 18 of file o2o.py.

list o2o.dev_db_service = ['cms_orcoff_prep','cms_orcoff_prep/cms_test_conditions']

Definition at line 15 of file o2o.py.

string o2o.dropbox_comment = 'generated by CaloOnlineTools/HcalOnlineDb/test/o2o.py script'

Definition at line 43 of file o2o.py.

string o2o.dropbox_destination_db = 'oracle://cms_orcon_prod/CMS_COND_31X_HCAL'

Definition at line 42 of file o2o.py.

string o2o.dropbox_dir = "./dropbox"

Definition at line 41 of file o2o.py.

tuple o2o.dropbox_file_name_prefix = str(output_dir)

Definition at line 277 of file o2o.py.

tuple o2o.dropbox_txt_file = open(dropbox_txt_file_name, "w")

Definition at line 280 of file o2o.py.

tuple o2o.dropbox_txt_file_name = str(dropbox_file_name_prefix)

Definition at line 279 of file o2o.py.

string o2o.fmt_str = "[%(asctime)s] %(levelname)s: %(message)s"

Definition at line 27 of file o2o.py.

tuple o2o.gotten_iovs = get_iovs(tag, input_pool_connect_string, mode)

Definition at line 293 of file o2o.py.

tuple o2o.guessed_condition = guess_condition_from_tag(tag)

Definition at line 256 of file o2o.py.

int o2o.i = 0

Definition at line 304 of file o2o.py.

string o2o.input_pool_connect_string = "sqlite_file:/nfshome0/kukartse/hcal/dcs/HcalDcsValues_v1.00_offline.db"

Definition at line 27 of file o2o.py.

tuple o2o.iov = int(line)

Definition at line 307 of file o2o.py.

Referenced by RunPTMTempDat.fetchData(), RunDat.fetchData(), RunCrystalErrorsDat.fetchData(), RunMemChErrorsDat.fetchData(), RunMemTTErrorsDat.fetchData(), RunPNErrorsDat.fetchData(), RunTTErrorsDat.fetchData(), MonH4TablePositionDat.fetchData(), RunConfigDat.fetchData(), RunLaserRunDat.fetchData(), RunFEConfigDat.fetchData(), RunTPGConfigDat.fetchData(), DCUVFETempDat.fetchData(), MonShapeQualityDat.fetchData(), DCUCapsuleTempDat.fetchData(), RunCommentDat.fetchData(), CaliGeneralDat.fetchData(), DCUIDarkPedDat.fetchData(), MODCCSFEDat.fetchData(), MODCCSTRDat.fetchData(), DCUIDarkDat.fetchData(), MODDCCOperationDat.fetchData(), CaliGainRatioDat.fetchData(), DCUCapsuleTempRawDat.fetchData(), CaliHVScanRatioDat.fetchData(), MonDelaysTTDat.fetchData(), RunH4TablePositionDat.fetchData(), CaliTempDat.fetchData(), DCULVRTempsDat.fetchData(), DCULVRBTempsDat.fetchData(), MonLaserStatusDat.fetchData(), MonOccupancyDat.fetchData(), MonPedestalsOnlineDat.fetchData(), MonRunDat.fetchData(), FEConfigBadTTDat.fetchData(), ODWeightsSamplesDat.fetchData(), ODDelaysDat.fetchData(), ODBadTTDat.fetchData(), ODBadXTDat.fetchData(), FEConfigBadStripDat.fetchData(), FEConfigBadXTDat.fetchData(), ODTowersToByPassDat.fetchData(), ODVfeToRejectDat.fetchData(), ODGolBiasCurrentDat.fetchData(), ODPedestalOffsetsDat.fetchData(), MonPulseShapeDat.fetchData(), LMFLmrSubIOV.getLMFIOV(), LMFCorrCoefDatComponent.getLMFLmrSubIOV(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::PopCon.initialize(), l1t::DataWriterExt.payloadToken(), l1t::DataWriter.payloadToken(), MODCCSFEDat.writeArrayDB(), MODCCSTRDat.writeArrayDB(), MODDCCOperationDat.writeArrayDB(), DCUVFETempDat.writeArrayDB(), DCUCapsuleTempDat.writeArrayDB(), MonShapeQualityDat.writeArrayDB(), DCUIDarkDat.writeArrayDB(), DCUIDarkPedDat.writeArrayDB(), DCUCapsuleTempRawDat.writeArrayDB(), MonH4TablePositionDat.writeArrayDB(), MonPedestalsOnlineDat.writeArrayDB(), MonOccupancyDat.writeArrayDB(), DCULVRBTempsDat.writeArrayDB(), CaliGainRatioDat.writeArrayDB(), MonDelaysTTDat.writeArrayDB(), ODDelaysDat.writeArrayDB(), FEConfigBadTTDat.writeArrayDB(), ODWeightsSamplesDat.writeArrayDB(), CaliTempDat.writeArrayDB(), ODBadXTDat.writeArrayDB(), ODBadTTDat.writeArrayDB(), FEConfigBadXTDat.writeArrayDB(), FEConfigBadStripDat.writeArrayDB(), ODVfeToRejectDat.writeArrayDB(), ODTowersToByPassDat.writeArrayDB(), ODGolBiasCurrentDat.writeArrayDB(), ODPedestalOffsetsDat.writeArrayDB(), RunPTMTempDat.writeDB(), MODCCSTRDat.writeDB(), RunDat.writeDB(), MODDCCOperationDat.writeDB(), MODCCSFEDat.writeDB(), RunCrystalErrorsDat.writeDB(), DCUCapsuleTempDat.writeDB(), DCUIDarkPedDat.writeDB(), RunMemChErrorsDat.writeDB(), RunTTErrorsDat.writeDB(), RunPNErrorsDat.writeDB(), DCUIDarkDat.writeDB(), MonShapeQualityDat.writeDB(), DCUVFETempDat.writeDB(), RunMemTTErrorsDat.writeDB(), RunFEConfigDat.writeDB(), RunConfigDat.writeDB(), RunTPGConfigDat.writeDB(), MonH4TablePositionDat.writeDB(), RunLaserRunDat.writeDB(), CaliGeneralDat.writeDB(), DCUCapsuleTempRawDat.writeDB(), RunCommentDat.writeDB(), CaliGainRatioDat.writeDB(), MonPedestalsOnlineDat.writeDB(), MonOccupancyDat.writeDB(), CaliHVScanRatioDat.writeDB(), DCULVRBTempsDat.writeDB(), MonDelaysTTDat.writeDB(), MonLaserStatusDat.writeDB(), DCULVRTempsDat.writeDB(), RunH4TablePositionDat.writeDB(), CaliTempDat.writeDB(), MonRunDat.writeDB(), and MonPulseShapeDat.writeDB().

list o2o.isnewtag = gotten_iovs['newtag']

Definition at line 303 of file o2o.py.

list o2o.levStr = os.environ[messageLevelEnvVar]

Definition at line 30 of file o2o.py.

string o2o.logFolderEnvVar = 'O2O_LOG_FOLDER'

Definition at line 23 of file o2o.py.

tuple o2o.logFormatter = logging.Formatter(fmt_str)

Definition at line 33 of file o2o.py.

o2o.logLevel = logging.INFO

Definition at line 28 of file o2o.py.

string o2o.messageLevelEnvVar = 'O2O_LOG_LEVEL'

Definition at line 22 of file o2o.py.

string o2o.mode = 'online'

Definition at line 24 of file o2o.py.

list o2o.o2o_iovs = gotten_iovs['iovs']

Definition at line 302 of file o2o.py.

string o2o.o2o_tag_list_file = "o2o_tag_list.txt"

Definition at line 34 of file o2o.py.

string o2o.omds_accessor_string = "occi://CMS_HCL_APPUSER_R@anyhost/cms_omds_lb?PASSWORD=HCAL_Reader_44"

Definition at line 31 of file o2o.py.

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"

Definition at line 28 of file o2o.py.

string o2o.pool_auth_path = "/nfshome0/popcondev/conddb"

Definition at line 29 of file o2o.py.

int o2o.pool_iov = iov

Definition at line 308 of file o2o.py.

string o2o.pool_logconnect = "sqlite_file:/nfshome0/kukartse/hcal/dcs/log.db"

Definition at line 30 of file o2o.py.

list o2o.pool_record = guessed_condition['pool_record']

Definition at line 259 of file o2o.py.

string o2o.private_db = 'sqlite:///o2o_jobs.db'

Definition at line 19 of file o2o.py.

list o2o.prod_db_service = ['cms_orcon_prod','cms_orcon_prod/cms_cond_general_w']

Definition at line 14 of file o2o.py.

string o2o.python_popcon_file = "dbwrite_o2o.py"

Definition at line 36 of file o2o.py.

string o2o.python_popcon_template_file = "dbwrite_o2o_template.py"

Definition at line 35 of file o2o.py.

tuple o2o.query = query_file.read()
tuple o2o.query_file = open(query_file_name, "r")

Definition at line 268 of file o2o.py.

string o2o.query_file_name = guessed_condition['query_file_name']

Definition at line 258 of file o2o.py.

o2o.query_save = query

Definition at line 318 of file o2o.py.

tuple o2o.run_result = run_popcon()

Definition at line 325 of file o2o.py.

string o2o.schema_name = 'CMS_CONDITIONS'

Definition at line 16 of file o2o.py.

string o2o.sqlalchemy_tpl = 'oracle://%s:%s@%s'

Definition at line 17 of file o2o.py.

int o2o.startStatus = -1

Definition at line 20 of file o2o.py.

tuple o2o.tag = tag_name.strip()

Definition at line 251 of file o2o.py.

tuple o2o.tags = get_tags(base_dir+"/"+o2o_tag_list_file)
string o2o.use_dropbox = 'false'

Definition at line 40 of file o2o.py.