Functions | |
def | Func_Exit |
Function Func_Exit() More... | |
def | Func_ExitBool |
Function Func_ExitBool() More... | |
def | Func_ExitUsage |
Function Func_ExitUsage() More... | |
def | Func_MagConfig |
Function Func_MagConfig(float_magFieldMeasured) More... | |
def | Func_MkDir |
Function Func_MkDir() More... | |
def | Func_Usage |
Function Func_Usage() More... | |
Variables | |
BOOL_CRAB = True | |
Bool_CRAB = BOOL_CRAB | |
BOOL_filter = False | |
Bool_filter = BOOL_filter | |
bool_foundField = False | |
BOOL_magFieldAuto = False | |
Bool_magFieldAuto = BOOL_magFieldAuto | |
bool_standBy = False | |
BOOL_useCastor = True | |
Bool_useCastor = BOOL_useCastor | |
dictionary | Dict_arguments = {} |
dict_arguments = Dict_arguments | |
dictionary | DICT_functionLetters |
dictionary | DICT_optionLetters |
dt_stampNew = dt_stampOld-TD_shiftUTC | |
tuple | dt_stampOld = datetime.datetime(int(lstr_timeDate[0]),int(lstr_timeDate[1]),int(lstr_timeDate[2]),int(lstr_timeTime[0]),int(lstr_timeTime[1]),int(lstr_timeTime[2])) |
tuple | file_cmsmonOutput = urllib.urlopen("http://cmsmon.cern.ch/cmsdb/servlet/RunSummary", str_cmsmonParams) |
tuple | file_dbsOutput = urllib.urlopen("https://cmsweb.cern.ch/dbs_discovery/getLFN_txt", str_dbsParams) |
tuple | file_inputFilesCAFCff = file(Str_pathInputFilesCAFCff, 'w') |
tuple | file_inputFilesCff = file(str_nameInputFilesFile, 'w') |
tuple | file_inputFilesJobCff = file(str_pathInputFilesJobCff, 'w') |
tuple | Float_magField = float(Str_magField[:-1]) |
tuple | float_magField = Func_MagConfig(Float_magField) |
int | INT_jobs = 10 |
Int_jobs = INT_jobs | |
Int_jobsNew = Int_jobs | |
int | int_nFunctionLetters = 0 |
int | int_nInputFiles = 0 |
int | int_nLinesRead = 0 |
list | LFLOAT_valueMagField = [0.0,2.0,3.0,3.5,3.8,4.0] |
list | LSTR_auto = ['AUTO','Auto','auto'] |
list | LSTR_datatiers = ['RECO','RAW'] |
list | LSTR_false = ['0','FALSE','False','false'] |
list | LSTR_functionLetters = ['-s','-c','-h'] |
tuple | lstr_linesInput = file_inputFilesCff.readlines() |
list | LSTR_optionLetters = ['-r','-C','-S','-e','-j','-M','-g','-f','-d','-o','-m'] |
list | LSTR_server = [STR_none,'caf','bari'] |
tuple | lstr_timeDate = str_timeQuery.split('=') |
tuple | lstr_timeQuery = str_cmsmonOutput.split('HREF=Component?RUN=' + Str_run + '&NAME=TRACKER&') |
tuple | lstr_timeTime = str_timeQuery.split('=') |
list | LSTR_true = ['1','TRUE' ,'True' ,'true' ] |
list | LSTR_wordArgument = sys.argv[1:] |
tuple | lstr_wordsLine = str_iLine.split("/") |
int | nLines = 0 |
int | OCT_rwx_r_r = 0 |
string | str_argumentFormer = '' |
tuple | str_buffer = subprocess.getoutput('which crab') |
string | str_castorCp = 'cp' |
tuple | str_cmsmonParams = urllib.urlencode({'RUN':Str_run}) |
tuple | str_correctedLine1 = str_linesInput.replace(') |
list | Str_dataset = Dict_arguments[LSTR_optionLetters[8]] |
tuple | str_datatier = Str_dataset.split('/') |
list | Str_datatier = LSTR_datatiers[1] |
tuple | str_dbsParams = urllib.urlencode({'dbsInst':'cms_dbs_prod_global', 'blockName':'*', 'dataset':Str_dataset, 'userMode':'user', 'run':Str_run, 'what':'py'}) |
string | STR_default = 'DEFAULT' |
string | STR_email = 'volker.adler@cern.ch' |
Str_email = STR_email | |
string | STR_globalTag = 'CRAFT_V4P::All' |
Str_globalTag = STR_globalTag | |
string | str_lineInput = Str_outpath+'/SiStripDQMOfflineGlobalRunCAF-' |
string | STR_magField = '38T' |
Str_magField = STR_magField | |
string | STR_mailServer = '@mail.cern.ch' |
string | STR_mailSmtp = 'localhost' |
string | STR_mailText |
string | STR_mailTextOpener = """Dear """ |
string | STR_mergepath = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_TRACKER/DQM/SiStrip/jobs/merged' |
Str_mergepath = STR_mergepath | |
string | STR_nameCmsswPackage = 'DQM/SiStripMonitorClient' |
tuple | Str_nameCmsswRel = os.getenv('CMSSW_VERSION') |
string | str_nameInputFilesFile = Str_nameRun+'/' |
string | Str_nameRun = 'R' |
tuple | str_nameRunIncludeDir = STR_nameCmsswPackage.replace('/','.') |
tuple | str_nameStamp = str_timeQuery.split('=') |
string | STR_none = 'None' |
string | STR_outpath = '/castor/cern.ch/user/c/cctrack/DQM' |
Str_outpath = STR_outpath | |
string | str_outputDir = '.' |
tuple | Str_pathCmsswBase = os.getenv('CMSSW_BASE') |
string | Str_pathCmsswBasePackage = Str_pathCmsswBase+'/src/' |
tuple | Str_pathCurrentDir = os.getcwd() |
Main program. More... | |
string | Str_pathInputFilesCAFCff = Str_pathRunIncludeDir+'/inputFilesCAF_cff.py' |
string | str_pathInputFilesJobCff = Str_pathRunIncludeDir+'/inputFiles_cff.py' |
string | Str_pathRunIncludeDir = Str_pathCmsswBasePackage+'/python/' |
list | Str_run = Dict_arguments[LSTR_optionLetters[0]] |
string | str_sedCommand = 'sed ' |
string | str_sedCommandCommon = 'sed ' |
list | STR_server = LSTR_server[0] |
Str_server = STR_server | |
string | str_suffixShell = 'csh' |
string | STR_textUsage |
string | str_timeBegin = '' |
string | str_timeEnd = '' |
tuple | str_timeStamp = str(dt_stampNew) |
tuple | TD_shiftUTC = datetime.timedelta(hours = 2) |
def submitDQMOfflineCAF.Func_Exit | ( | ) |
Function Func_Exit()
Exit after error
Function Func_Exit(): Exit after error
Definition at line 247 of file submitDQMOfflineCAF.py.
References print().
Referenced by Func_ExitBool().
def submitDQMOfflineCAF.Func_ExitBool | ( | int_index | ) |
Function Func_ExitBool()
Exit after wrong assignment of bool option
Function Func_ExitBool(): Exit after wrong assignment of bool option
Definition at line 270 of file submitDQMOfflineCAF.py.
References Func_Exit(), and print().
def submitDQMOfflineCAF.Func_ExitUsage | ( | ) |
Function Func_ExitUsage()
Exit after wrong invocation of script
Function Func_ExitUsage(): Exit after wrong invocation of script
Definition at line 258 of file submitDQMOfflineCAF.py.
References Func_Usage(), and print().
def submitDQMOfflineCAF.Func_MagConfig | ( | float_magFieldMeasured | ) |
Function Func_MagConfig(float_magFieldMeasured)
Determine configuration to be used for a given magnetic field
Func_MagConfig(float_magFieldMeasured): Determine configuration to be used for a given magnetic field
Definition at line 290 of file submitDQMOfflineCAF.py.
References print().
def submitDQMOfflineCAF.Func_MkDir | ( | str_path | ) |
Function Func_MkDir()
Create new directory
Function Func_MkDir(): Create new directory
Definition at line 280 of file submitDQMOfflineCAF.py.
def submitDQMOfflineCAF.Func_Usage | ( | ) |
Function Func_Usage()
Displays usage of the script
Function Func_Usage(): Displays usage of the script
Definition at line 238 of file submitDQMOfflineCAF.py.
References print().
Referenced by Func_ExitUsage().
submitDQMOfflineCAF.BOOL_CRAB = True |
Definition at line 138 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.Bool_CRAB = BOOL_CRAB |
Definition at line 222 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.BOOL_filter = False |
Definition at line 146 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.Bool_filter = BOOL_filter |
Definition at line 227 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.bool_foundField = False |
Definition at line 488 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.BOOL_magFieldAuto = False |
Definition at line 145 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.Bool_magFieldAuto = BOOL_magFieldAuto |
Definition at line 230 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.bool_standBy = False |
Definition at line 341 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.BOOL_useCastor = True |
Definition at line 148 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.Bool_useCastor = BOOL_useCastor |
Definition at line 232 of file submitDQMOfflineCAF.py.
dictionary submitDQMOfflineCAF.Dict_arguments = {} |
Definition at line 221 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.dict_arguments = Dict_arguments |
Definition at line 376 of file submitDQMOfflineCAF.py.
dictionary submitDQMOfflineCAF.DICT_functionLetters |
Definition at line 152 of file submitDQMOfflineCAF.py.
dictionary submitDQMOfflineCAF.DICT_optionLetters |
Definition at line 156 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.dt_stampNew = dt_stampOld-TD_shiftUTC |
Definition at line 580 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.dt_stampOld = datetime.datetime(int(lstr_timeDate[0]),int(lstr_timeDate[1]),int(lstr_timeDate[2]),int(lstr_timeTime[0]),int(lstr_timeTime[1]),int(lstr_timeTime[2])) |
Definition at line 579 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.file_cmsmonOutput = urllib.urlopen("http://cmsmon.cern.ch/cmsdb/servlet/RunSummary", str_cmsmonParams) |
Definition at line 569 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.file_dbsOutput = urllib.urlopen("https://cmsweb.cern.ch/dbs_discovery/getLFN_txt", str_dbsParams) |
Definition at line 543 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.file_inputFilesCAFCff = file(Str_pathInputFilesCAFCff, 'w') |
Definition at line 632 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.file_inputFilesCff = file(str_nameInputFilesFile, 'w') |
Definition at line 540 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.file_inputFilesJobCff = file(str_pathInputFilesJobCff, 'w') |
Definition at line 674 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Float_magField = float(Str_magField[:-1]) |
Definition at line 229 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.float_magField = Func_MagConfig(Float_magField) |
Definition at line 600 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.INT_jobs = 10 |
Definition at line 142 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.Int_jobs = INT_jobs |
Definition at line 225 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.Int_jobsNew = Int_jobs |
Definition at line 562 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.int_nFunctionLetters = 0 |
Definition at line 326 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.int_nInputFiles = 0 |
Definition at line 539 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.int_nLinesRead = 0 |
Definition at line 608 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LFLOAT_valueMagField = [0.0,2.0,3.0,3.5,3.8,4.0] |
Definition at line 30 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LSTR_auto = ['AUTO','Auto','auto'] |
Definition at line 37 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LSTR_datatiers = ['RECO','RAW'] |
Definition at line 134 of file submitDQMOfflineCAF.py.
Definition at line 34 of file submitDQMOfflineCAF.py.
Definition at line 151 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.lstr_linesInput = file_inputFilesCff.readlines() |
Definition at line 610 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LSTR_optionLetters = ['-r','-C','-S','-e','-j','-M','-g','-f','-d','-o','-m'] |
Definition at line 155 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LSTR_server = [STR_none,'caf','bari'] |
Definition at line 139 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.lstr_timeDate = str_timeQuery.split('=') |
Definition at line 577 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.lstr_timeQuery = str_cmsmonOutput.split('HREF=Component?RUN=' + Str_run + '&NAME=TRACKER&') |
Definition at line 574 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.lstr_timeTime = str_timeQuery.split('=') |
Definition at line 578 of file submitDQMOfflineCAF.py.
Definition at line 33 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.LSTR_wordArgument = sys.argv[1:] |
Definition at line 136 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.lstr_wordsLine = str_iLine.split("/") |
Definition at line 545 of file submitDQMOfflineCAF.py.
int submitDQMOfflineCAF.nLines = 0 |
Definition at line 676 of file submitDQMOfflineCAF.py.
Referenced by DTTPGParamsWriter.analyze(), ESDataFormatterV4.ESDataFormatterV4(), ESDigiToRaw.ESDigiToRaw(), ESElectronicsMapper.ESElectronicsMapper(), ESIntegrityClient.ESIntegrityClient(), ESPedestalClient.ESPedestalClient(), ESUnpacker.ESUnpacker(), GenWeightsTableProducer.globalBeginRun(), MagneticFieldGrid.load(), RectangularCartesianMFGrid.RectangularCartesianMFGrid(), RectangularCylindricalMFGrid.RectangularCylindricalMFGrid(), SelectedElectronFEDListProducer< TEle, TCand >.SelectedElectronFEDListProducer(), SpecialCylindricalMFGrid.SpecialCylindricalMFGrid(), TrapezoidalCartesianMFGrid.TrapezoidalCartesianMFGrid(), and TrapezoidalCylindricalMFGrid.TrapezoidalCylindricalMFGrid().
int submitDQMOfflineCAF.OCT_rwx_r_r = 0 |
Definition at line 29 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.str_argumentFormer = '' |
Definition at line 340 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_buffer = subprocess.getoutput('which crab') |
Definition at line 462 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_castorCp = 'cp' |
Definition at line 517 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_cmsmonParams = urllib.urlencode({'RUN':Str_run}) |
Definition at line 568 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_correctedLine1 = str_linesInput.replace(') |
Definition at line 679 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_dataset = Dict_arguments[LSTR_optionLetters[8]] |
Definition at line 445 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_datatier = Str_dataset.split('/') |
Definition at line 501 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Str_datatier = LSTR_datatiers[1] |
Definition at line 503 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_dbsParams = urllib.urlencode({'dbsInst':'cms_dbs_prod_global', 'blockName':'*', 'dataset':Str_dataset, 'userMode':'user', 'run':Str_run, 'what':'py'}) |
Definition at line 542 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_default = 'DEFAULT' |
Definition at line 35 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_email = 'volker.adler@cern.ch' |
Definition at line 141 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_email = STR_email |
Definition at line 224 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_globalTag = 'CRAFT_V4P::All' |
Definition at line 143 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_globalTag = STR_globalTag |
Definition at line 226 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_lineInput = Str_outpath+'/SiStripDQMOfflineGlobalRunCAF-' |
Definition at line 635 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_magField = '38T' |
Definition at line 144 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Str_magField = STR_magField |
Definition at line 228 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_mailServer = '@mail.cern.ch' |
Definition at line 168 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_mailSmtp = 'localhost' |
Definition at line 167 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_mailText |
Definition at line 172 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_mailTextOpener = """Dear """ |
Definition at line 169 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_mergepath = '/afs/cern.ch/cms/CAF/CMSCOMM/COMM_TRACKER/DQM/SiStrip/jobs/merged' |
Definition at line 149 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_mergepath = STR_mergepath |
Definition at line 233 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_nameCmsswPackage = 'DQM/SiStripMonitorClient' |
Definition at line 38 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Str_nameCmsswRel = os.getenv('CMSSW_VERSION') |
Definition at line 316 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_nameInputFilesFile = Str_nameRun+'/' |
Definition at line 533 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.Str_nameRun = 'R' |
Definition at line 528 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_nameRunIncludeDir = STR_nameCmsswPackage.replace('/','.') |
Definition at line 534 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_nameStamp = str_timeQuery.split('=') |
Definition at line 576 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_none = 'None' |
Definition at line 36 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_outpath = '/castor/cern.ch/user/c/cctrack/DQM' |
Definition at line 147 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_outpath = STR_outpath |
Definition at line 231 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_outputDir = '.' |
Definition at line 665 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Str_pathCmsswBase = os.getenv('CMSSW_BASE') |
Definition at line 307 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.Str_pathCmsswBasePackage = Str_pathCmsswBase+'/src/' |
Definition at line 317 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.Str_pathCurrentDir = os.getcwd() |
Main program.
Definition at line 306 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.Str_pathInputFilesCAFCff = Str_pathRunIncludeDir+'/inputFilesCAF_cff.py' |
Definition at line 631 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_pathInputFilesJobCff = Str_pathRunIncludeDir+'/inputFiles_cff.py' |
Definition at line 673 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.Str_pathRunIncludeDir = Str_pathCmsswBasePackage+'/python/' |
Definition at line 531 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_run = Dict_arguments[LSTR_optionLetters[0]] |
Definition at line 396 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_sedCommand = 'sed ' |
Definition at line 614 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_sedCommandCommon = 'sed ' |
Definition at line 648 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.STR_server = LSTR_server[0] |
Definition at line 140 of file submitDQMOfflineCAF.py.
list submitDQMOfflineCAF.Str_server = STR_server |
Definition at line 223 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.str_suffixShell = 'csh' |
Definition at line 318 of file submitDQMOfflineCAF.py.
string submitDQMOfflineCAF.STR_textUsage |
Definition at line 39 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.str_timeBegin = '' |
Definition at line 570 of file submitDQMOfflineCAF.py.
submitDQMOfflineCAF.str_timeEnd = '' |
Definition at line 571 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.str_timeStamp = str(dt_stampNew) |
Definition at line 581 of file submitDQMOfflineCAF.py.
tuple submitDQMOfflineCAF.TD_shiftUTC = datetime.timedelta(hours = 2) |
Definition at line 31 of file submitDQMOfflineCAF.py.