Пример #1
0
    searchIgProfFiles(run_info)
    print "Parsing Memcheck report"
    # Search for Memcheck files
    searchMemcheckFiles(run_info)
    #print run_info

    print "Exporting sequences and event-content rules"
    if not _TEST_RUN:
	    """ for testing on laptom we have no CMSSW """
	    # export sequences (for currently loaded CMSSW)
	    if Sequences_OK:
	    	exportSequences()

            if EventContents_OK:
		    # export event's content rules
		    eventContentRules = parseEventContent.getTxtEventContentRules()
		    cmssw_exportdb_xml.exportECRules(xmldoc, eventContentRules)
		    

    cmssw_exportdb_xml.exportRunInfo(xmldoc, run_info, release = release)
    #save the XML file, TODO: change fileName after introducting the JobID
    import datetime
    now = datetime.datetime.now()
    #Changing slightly the XML filename format
    #FIXME: review this convention and archive the xml in a separate CASTOR xml directory for quick recovery of DB...
    file_name = "%s___%s___%s___%s___%s___%s___%s.xml" % (release, "_".join(steps.keys()), "_".join(candles.keys()), "_".join(pileups.keys()),event_content,conditions,now.isoformat())
    print "Writing the output to: %s " % file_name

    write_xml(xmldoc, output_dir, file_name) #change this function to be able to handle directories in remote machines (via tar pipes for now could always revert to rsync later).
    #NB write_xml is in Validation/Performance/python/cmssw_exportdb_xml.py 
Пример #2
0
    searchIgProfFiles(run_info)
    print("Parsing Memcheck report")
    # Search for Memcheck files
    searchMemcheckFiles(run_info)
    #print run_info

    print("Exporting sequences and event-content rules")
    if not _TEST_RUN:
        """ for testing on laptom we have no CMSSW """
        # export sequences (for currently loaded CMSSW)
        if Sequences_OK:
            exportSequences()

        if EventContents_OK:
                    # export event's content rules
            eventContentRules = parseEventContent.getTxtEventContentRules()
            cmssw_exportdb_xml.exportECRules(xmldoc, eventContentRules)


    cmssw_exportdb_xml.exportRunInfo(xmldoc, run_info, release = release)
    #save the XML file, TODO: change fileName after introducting the JobID
    import datetime
    now = datetime.datetime.now()
    #Changing slightly the XML filename format
    #FIXME: review this convention and archive the xml in a separate CASTOR xml directory for quick recovery of DB...
    file_name = "%s___%s___%s___%s___%s___%s___%s.xml" % (release, "_".join(steps.keys()), "_".join(candles.keys()), "_".join(pileups.keys()),event_content,conditions,now.isoformat())
    print("Writing the output to: %s " % file_name)

    write_xml(xmldoc, output_dir, file_name) #change this function to be able to handle directories in remote machines (via tar pipes for now could always revert to rsync later).
    #NB write_xml is in Validation/Performance/python/cmssw_exportdb_xml.py