예제 #1
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
####bl = BeamlineSuperMouse(_MASTER_CDB)
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 10006

startrun_xml_10006 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='10006' startTime='2017-10-16 17:42:03.206314' startNotes='Manual CDB insert' optics='6-140+M3-Test2' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_10006)

###################################
# now set beamline for Run 10006

beamline_xml_10006 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='10006' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='D1' setCurrent='160.820007' polarity='1'/><magnet name='D2' setCurrent='86.547997' polarity='1'/><magnet name='DS' setCurrent='352.846863' polarity='1'/><magnet name='Q1' setCurrent='54.16' polarity='1'/><magnet name='Q2' setCurrent='67.580002' polarity='1'/><magnet name='Q3' setCurrent='46.970001' polarity='1'/><magnet name='Q4' setCurrent='144.731995' polarity='1'/><magnet name='Q5' setCurrent='194.031998' polarity='1'/><magnet name='Q6' setCurrent='128.615997' polarity='1'/><magnet name='Q7' setCurrent='124.919998' polarity='1'/><magnet name='Q8' setCurrent='188.944' polarity='1'/><magnet name='Q9' setCurrent='161.240005' polarity='1'/> </beamline>"

print bl.set_beamlineXML(beamline_xml_10006)

###################################
# now set end of run for Run 10006

endrun_xml_10006 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='10006' endTime='2017-10-16 17:46:29.341314' endNotes='Manual CDB insert' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='GVa1 Triggers' value='177'/><scalar name='LMC-1234 Count' value='23266'/><scalar name='LMC-12 Count' value='200492'/><scalar name='LMC-34 Count' value='190584'/><scalar name='Particle Triggers' value='10004'/><scalar name='Requested Triggers' value='13723'/><scalar name='ToF0 Triggers' value='58691'/><scalar name='ToF1 Triggers' value='13723'/><scalar name='ToF2 Triggers' value='8575'/> </endRun>"

print bl.set_end_runXML(endrun_xml_10006)


예제 #2
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
#bl = BeamlineSuperMouse(_MASTER_CDB)
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 9622

startrun_xml_9622 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='9622' startTime='2017-09-20 04:21:58.806249' startNotes='Manual CDB insert' optics='ToF-Calib+150-NoDS' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_9622)

###################################
# now set beamline for Run 9622

beamline_xml_9622 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='9622' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='Q9' polarity='1' setCurrent='77.8' /> <magnet name='Q8' polarity='1' setCurrent='91.94' /> <magnet name='Q7' polarity='1' setCurrent='61.04' /> <magnet name='Q6' polarity='1' setCurrent='90.41' /> <magnet name='Q5' polarity='1' setCurrent='137.39' /> <magnet name='Q4' polarity='1' setCurrent='102.53' /> <magnet name='D2' polarity='1' setCurrent='63.29' /> <magnet name='DS' polarity='1' setCurrent='198.61' /> <magnet name='D1' polarity='1' setCurrent='124.46' /> <magnet name='Q3' polarity='1' setCurrent='36.24' /> <magnet name='Q2' polarity='1' setCurrent='52.31' /> <magnet name='Q1' polarity='1' setCurrent='42.03' /> </beamline>"

print bl.set_beamlineXML(beamline_xml_9622)

###################################
# now set end of run for Run 9622

endrun_xml_9622 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='9622' endTime='2017-09-20 04:47:06.295272' endNotes='Manual CDB insert' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='LMC-1234 Count' value='0' /> <scalar name='LMC-12 Count' value='0' /> <scalar name='LMC-34 Count' value='0' /> <scalar name='ToF2 Triggers' value='0' /> <scalar name='ToF1 Triggers' value='41141' /> <scalar name='ToF0 Triggers' value='0' /> <scalar name='GVa1 Triggers' value='0' /> <scalar name='Requested Triggers' value='0' /> <scalar name='Particle Triggers' value='31103' /> </endRun>"

print bl.set_end_runXML(endrun_xml_9622)


예제 #3
0
import cdb
from cdb import BeamlineSuperMouse

bl = BeamlineSuperMouse('http://preprodcdb.mice.rl.ac.uk')

###################################
# set Start of Run for Run 7662

startrun_xml_7662 = "<?xml version='1.0'?> <startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='7662' startTime='2016-02-29 20:47:00.218291' startNotes='3,172 Pion - Zero Absorber' optics='Individual Settings' startPulse='1547300' step='4.000000' runType='Test' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_7662)

###################################
# now set beamline for Run 7661

beamline_xml_7662 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='7662' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='78' > <magnet name='Q9' polarity='1' setCurrent='166.636002' /> <magnet name='Q8' polarity='1' setCurrent='195.300003' /> <magnet name='Q7' polarity='1' setCurrent='129.175995' /> <magnet name='Q6' polarity='1' setCurrent='132.955994' /> <magnet name='Q5' polarity='1' setCurrent='200.656006' /> <magnet name='Q4' polarity='1' setCurrent='149.751999' /> <magnet name='D2' polarity='1' setCurrent='85.713997' /> <magnet name='DS' polarity='1' setCurrent='3.059656' /> <magnet name='D1' polarity='1' setCurrent='171.679993' /> <magnet name='Q3' polarity='1' setCurrent='54.939999' /> <magnet name='Q2' polarity='1' setCurrent='89.940002' /> <magnet name='Q1' polarity='1' setCurrent='49.169998' /> </beamline>"

print bl.set_beamlineXML(beamline_xml_7661)

###################################
# now set end of run for Run 7662

endrun_xml_7662 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='7662' endTime='2016-02-29 22:24:30.786753' endNotes='3,172 Pion - Zero Absorber' status='0' endPulse='1551872' overwrite='0' > <isisBeam name='IBML-TOT' mean='3.934231' sigma='3.934231'/> <isisBeam name='IBML-S8.1' mean='1.637861' sigma='1.637861'/> <isisBeam name='IBML-S7.4' mean='0.964380' sigma='0.964380'/> <isisBeam name='IBML-S7.3' mean='1.331983' sigma='1.331983'/> <scalar name='LMC-1234 Count' value='906541' /> <scalar name='LMC-12 Count' value='7397057' /> <scalar name='LMC-34 Count' value='6818131' /> <scalar name='ToF2 Triggers' value='28750' /> <scalar name='ToF1 Triggers' value='59085' /> <scalar name='ToF0 Triggers' value='300048' /> <scalar name='GVa1 Triggers' value='4144' /> <scalar name='Requested Triggers' value='59085' /> <scalar name='Particle Triggers' value='45039' /> </endRun>"

print bl.set_end_runXML(endrun_xml_7662)

예제 #4
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)

###################################
# set Start of Run for Run 8350

startrun_xml_8350 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='8350' startTime='2016-10-04 21:36:00.180620' startNotes='3-140+M3-NoDS-Test1' optics='3-140+M3-NoDS-Test1' startPulse='1547079' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_8350)

###################################
# now set beamline for Run 8350

beamline_xml_8350 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='8350' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='Q9' polarity='1' setCurrent='142.87' /> <magnet name='Q8' polarity='1' setCurrent='167.46' /> <magnet name='Q7' polarity='1' setCurrent='110.74' /> <magnet name='Q6' polarity='1' setCurrent='116.62' /> <magnet name='Q5' polarity='1' setCurrent='176.01' /> <magnet name='Q4' polarity='1' setCurrent='131.25' /> <magnet name='D2' polarity='1' setCurrent='70.0' /> <magnet name='DS' polarity='1' setCurrent='0.0' /> <magnet name='D1' polarity='1' setCurrent='142.52' /> <magnet name='Q3' polarity='1' setCurrent='45.56' /> <magnet name='Q2' polarity='1' setCurrent='74.51' /> <magnet name='Q1' polarity='1' setCurrent='40.79' /> </beamline>"

print bl.set_beamlineXML(beamline_xml_8350)

###################################
# now set end of run for Run 7662

endrun_xml_8350 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='8350' endTime='2016-10-04 22:00:00.786753' endNotes='3-140-M3-NoDS' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='LMC-1234 Count' value='0' /> <scalar name='LMC-12 Count' value='0' /> <scalar name='LMC-34 Count' value='0' /> <scalar name='ToF2 Triggers' value='7015' /> <scalar name='ToF1 Triggers' value='0' /> <scalar name='ToF0 Triggers' value='0' /> <scalar name='GVa1 Triggers' value='0' /> <scalar name='Requested Triggers' value='0' /> <scalar name='Particle Triggers' value='8517' /> </endRun>"

print bl.set_end_runXML(endrun_xml_8350)


예제 #5
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
####bl = BeamlineSuperMouse(_MASTER_CDB)
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 9970

startrun_xml_9970 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='9970' startTime='2017-10-14 08:03:13.970382' startNotes='Manual CDB insert' optics='10-140+M3-Test4' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_9970)

###################################
# now set beamline for Run 9970

beamline_xml_9970 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='9970' beamStop='true' diffuserThickness='15'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='D1' setCurrent='173.835007' polarity='1'/><magnet name='D2' setCurrent='86.973999' polarity='1'/><magnet name='DS' setCurrent='387.932556' polarity='1'/><magnet name='Q1' setCurrent='58.580002' polarity='1'/><magnet name='Q2' setCurrent='73.110001' polarity='1'/><magnet name='Q3' setCurrent='50.75' polarity='1'/><magnet name='Q4' setCurrent='156.287994' polarity='1'/><magnet name='Q5' setCurrent='209.632004' polarity='1'/><magnet name='Q6' setCurrent='138.992004' polarity='1'/><magnet name='Q7' setCurrent='102.667999' polarity='1'/><magnet name='Q8' setCurrent='155.231995' polarity='1'/><magnet name='Q9' setCurrent='132.496002' polarity='1'/> </beamline>"

print bl.set_beamlineXML(beamline_xml_9970)

###################################
# now set end of run for Run 9970

endrun_xml_9970 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='9970' endTime='2017-10-14 09:19:50.345286' endNotes='Manual CDB insert' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='GVa1 Triggers' value='3571'/><scalar name='LMC-1234 Count' value='745165'/><scalar name='LMC-12 Count' value='6388427'/><scalar name='LMC-34 Count' value='6120946'/><scalar name='Particle Triggers' value='425576'/><scalar name='Requested Triggers' value='685920'/><scalar name='ToF0 Triggers' value='2502995'/><scalar name='ToF1 Triggers' value='685893'/><scalar name='ToF2 Triggers' value='171709'/> </endRun>"

print bl.set_end_runXML(endrun_xml_9970)


예제 #6
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)
#bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 10584

startrun_xml_10584 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='10584' startTime='2017-12-19 05:44:51.541482' startNotes='H64c run - wedge absorber - start run' optics='6-140+M3-Test2' startPulse='8058518' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v1.0.0-1-gf902e9e' gdcHostName='miceraid5' targetDelay='500000.000000' targetDepth='36.349998' targetDriveVoltage='65.000000' overwrite='0'></startRun>"

#print bl.set_start_runXML(startrun_xml_10584)

###################################
# now set beamline for Run 10584

beamline_xml_10584 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='10584' beamStop='true' diffuserThickness='4'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='Q9' polarity='1' setCurrent='146.60' /> <magnet name='Q8' polarity='1' setCurrent='171.87' /> <magnet name='Q7' polarity='1' setCurrent='113.68' /> <magnet name='Q6' polarity='1' setCurrent='119.02' /> <magnet name='Q5' polarity='1' setCurrent='179.63' /> <magnet name='Q4' polarity='1' setCurrent='133.95' /> <magnet name='D2' polarity='1' setCurrent='76.40' /> <magnet name='DS' polarity='1' setCurrent='323.79' /> <magnet name='D1' polarity='1' setCurrent='153.01' /> <magnet name='Q3' polarity='1' setCurrent='43.40' /> <magnet name='Q2' polarity='1' setCurrent='62.51' /> <magnet name='Q1' polarity='1' setCurrent='50.06' /> </beamline>"

#print bl.set_beamlineXML(beamline_xml_10584)

###################################
# now set end of run for Run 10584

endrun_xml_10584 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='10584' endTime='2017-12-19 05:41:04.706908' endNotes='H64b run - wedge absorber - end run' status='0' endPulse='8058343' overwrite='0' > <isisBeam name='IBML-TOT' mean='4.916929' sigma='0.027035'/> <isisBeam name='IBML-S8.1' mean='1.939824' sigma='0.010664'/> <isisBeam name='IBML-S7.4' mean='1.316145' sigma='0.007187'/> <isisBeam name='IBML-S7.3' mean='1.660959' sigma='0.009183'/> <scalar name='LMC-1234 Count' value='1691224' /> <scalar name='LMC-12 Count' value='11576128' /> <scalar name='LMC-34 Count' value='11480058' /> <scalar name='ToF2 Triggers' value='305535' /> <scalar name='ToF1 Triggers' value='566386' /> <scalar name='ToF0 Triggers' value='2514393' /> <scalar name='GVa1 Triggers' value='4802' /> <scalar name='Requested Triggers' value='566395' /> <scalar name='Particle Triggers' value='358206' /> </endRun>"

print bl.set_end_runXML(endrun_xml_10584)


예제 #7
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)
#bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 10382

startrun_xml_10382 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='10382' startTime='2017-12-02 20:49:00.000000' startNotes='Manual CDB insert' optics='DiffMask8-3-200+M3-Test1' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_10382)

###################################
# now set beamline for Run 10382

beamline_xml_10382 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='10382' beamStop='true' diffuserThickness='8'  overwrite='0'  protonAbsorberThickness='49' > <magnet name='Q9' polarity='1' setCurrent='90.45' /> <magnet name='Q8' polarity='1' setCurrent='105.98' /> <magnet name='Q7' polarity='1' setCurrent='70.03' /> <magnet name='Q6' polarity='1' setCurrent='141.77' /> <magnet name='Q5' polarity='1' setCurrent='213.86' /> <magnet name='Q4' polarity='1' setCurrent='159.45' /> <magnet name='D2' polarity='1' setCurrent='94.91' /> <magnet name='DS' polarity='1' setCurrent='395.22' /> <magnet name='D1' polarity='1' setCurrent='205.0' /> <magnet name='Q3' polarity='1' setCurrent='52.73' /> <magnet name='Q2' polarity='1' setCurrent='75.86' /> <magnet name='Q1' polarity='1' setCurrent='60.77' /> </beamline>"

print bl.set_beamlineXML(beamline_xml_10382)

###################################
# now set end of run for Run 10382

endrun_xml_10382 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='10382' endTime='2017-12-02 21:51:00.000000' endNotes='Manual CDB insert' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='LMC-1234 Count' value='0' /> <scalar name='LMC-12 Count' value='0' /> <scalar name='LMC-34 Count' value='0' /> <scalar name='ToF2 Triggers' value='0' /> <scalar name='ToF1 Triggers' value='41141' /> <scalar name='ToF0 Triggers' value='0' /> <scalar name='GVa1 Triggers' value='0' /> <scalar name='Requested Triggers' value='0' /> <scalar name='Particle Triggers' value='200000' /> </endRun>"

print bl.set_end_runXML(endrun_xml_10382)


예제 #8
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)

# now set end of run for Run 9204 (illegal message characters caused this to be aborted)

endrun_xml_9204 = """<?xml version='1.0'?>
<endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='9204' endTime='2017-02-25 23:52:28.334778' endNotes='H13c 10-140 OK good night ' status='0' endPulse='4495650' overwrite='0'>
  <isisBeam name='IBML-TOT' mean='1.481618' sigma='0.008197'/>
  <isisBeam name='IBML-S8.1' mean='0.779805' sigma='0.003662'/>
  <isisBeam name='IBML-S7.4' mean='0.286207' sigma='0.001402'/>
  <isisBeam name='IBML-S7.3' mean='0.415604' sigma='0.003133'/>
  <scalar name='LMC-1234 Count' value='623738' />
  <scalar name='LMC-12 Count' value='4961584' />
  <scalar name='LMC-34 Count' value='4637590' />
  <scalar name='ToF2 Triggers' value='70241' />
  <scalar name='ToF1 Triggers' value='467078' />
  <scalar name='ToF0 Triggers' value='1775730' />
  <scalar name='GVa1 Triggers' value='4639' />
  <scalar name='Requested Triggers' value='467095' />
  <scalar name='Particle Triggers' value='343376' />
</endRun>"""

#print endrun_xml_9204
print bl.set_end_runXML(endrun_xml_9204)


예제 #9
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
####_MASTER_CDB = "http://172.16.246.25:8080"
####bl = BeamlineSuperMouse(_MASTER_CDB)
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 9721

startrun_xml_9721 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='9721' startTime='2017-09-25 23:46:42.209542' startNotes='140MeV/c test run H22.5' optics='Individual Settings' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /></startRun>"

print bl.set_start_runXML(startrun_xml_9721)

###################################
# now set beamline for Run 9721

beamline_xml_9721 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='9721' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='D1' setCurrent='146.494995' polarity='1'/><magnet name='D2' setCurrent='71.916' polarity='1'/><magnet name='DS' setCurrent='326.824249' polarity='1'/><magnet name='Q1' setCurrent='49.360001' polarity='1'/><magnet name='Q2' setCurrent='61.59' polarity='1'/><magnet name='Q3' setCurrent='42.720001' polarity='1'/><magnet name='Q4' setCurrent='178.820007' polarity='1'/><magnet name='Q5' setCurrent='188.539993' polarity='1'/><magnet name='Q6' setCurrent='96.519997' polarity='1'/><magnet name='Q7' setCurrent='87.540001' polarity='1'/><magnet name='Q8' setCurrent='227.688004' polarity='1'/><magnet name='Q9' setCurrent='155.395996' polarity='1'/></beamline>"

print bl.set_beamlineXML(beamline_xml_9721)

###################################
# now set end of run for Run 9721

endrun_xml_9721 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='9721' endTime='2017-09-26 00:16:47.806926' endNotes='Manual CDB insert' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/><scalar name='LMC-12 Count' value='788183'/><scalar name='LMC-34 Count' value='751874'/><scalar name='Particle Triggers' value='19037'/><scalar name='Requested Triggers' value='25332'/><scalar name='ToF0 Triggers' value='189456'/><scalar name='ToF1 Triggers' value='25251'/><scalar name='ToF2 Triggers' value='6050'/> </endRun>"

print bl.set_end_runXML(endrun_xml_9721)

예제 #10
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)

###################################
# set Start of Run for Run 8942

#startrun_xml_8942 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='8942' startTime='2016-10-04 19:36:00.180620' startNotes='3-140+M3-NoDS-Test1' optics='3-140+M3-NoDS-Test1' startPulse='1547079' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

#print bl.set_start_runXML(startrun_xml_8942)

###################################
# now set beamline for Run 8942

#beamline_xml_8942 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='8942' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='Q9' polarity='1' setCurrent='142.87' /> <magnet name='Q8' polarity='1' setCurrent='167.46' /> <magnet name='Q7' polarity='1' setCurrent='110.74' /> <magnet name='Q6' polarity='1' setCurrent='116.62' /> <magnet name='Q5' polarity='1' setCurrent='176.01' /> <magnet name='Q4' polarity='1' setCurrent='131.25' /> <magnet name='D2' polarity='1' setCurrent='70.0' /> <magnet name='DS' polarity='1' setCurrent='0.0' /> <magnet name='D1' polarity='1' setCurrent='142.52' /> <magnet name='Q3' polarity='1' setCurrent='45.56' /> <magnet name='Q2' polarity='1' setCurrent='74.51' /> <magnet name='Q1' polarity='1' setCurrent='40.79' /> </beamline>"

#print bl.set_beamlineXML(beamline_xml_8942)

###################################
# now set end of run for Run 7662

endrun_xml_8942 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='8942' endTime='2016-12-16 05:35:00.0' endNotes='end inserted manually in cdb' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='LMC-1234 Count' value='0' /> <scalar name='LMC-12 Count' value='0' /> <scalar name='LMC-34 Count' value='0' /> <scalar name='ToF2 Triggers' value='0' /> <scalar name='ToF1 Triggers' value='0' /> <scalar name='ToF0 Triggers' value='0' /> <scalar name='GVa1 Triggers' value='0' /> <scalar name='Requested Triggers' value='0' /> <scalar name='Particle Triggers' value='60053' /> </endRun>"

print bl.set_end_runXML(endrun_xml_8942)


예제 #11
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
####bl = BeamlineSuperMouse(_MASTER_CDB)
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 10288

startrun_xml_10288 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='10288' startTime='2017-11-26 16:38:51.491814' startNotes='Task H50a start' optics='3-140+M3-Test3' startPulse='0' step='4.000000' runType='Pulser Data' daqTrigger='PULSER' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_10288)

###################################
# now set beamline for Run 10288

beamline_xml_10288 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='10288' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' ><magnet name='D1' setCurrent='146.494995' polarity='1'/><magnet name='D2' setCurrent='71.914001' polarity='1'/><magnet name='DS' setCurrent='326.364288' polarity='1'/><magnet name='Q1' setCurrent='49.369999' polarity='1'/><magnet name='Q2' setCurrent='61.59' polarity='1'/><magnet name='Q3' setCurrent='42.73' polarity='1'/><magnet name='Q4' setCurrent='134.876007' polarity='1'/><magnet name='Q5' setCurrent='180.839996' polarity='1'/><magnet name='Q6' setCurrent='119.860001' polarity='1'/><magnet name='Q7' setCurrent='114.444' polarity='1'/><magnet name='Q8' setCurrent='173.076004' polarity='1'/><magnet name='Q9' setCurrent='147.591995' polarity='1'/></beamline>"

print bl.set_beamlineXML(beamline_xml_10288)

###################################
# now set end of run for Run 10288

endrun_xml_10288 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='10288' endTime='2017-11-26 18:07:55.413541' endNotes='Task H50a end' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/><scalar name='GVa1 Triggers' value='4342'/><scalar name='LMC-1234 Count' value='1404936'/><scalar name='LMC-12 Count' value='10344030'/><scalar name='LMC-34 Count' value='10154953'/><scalar name='Particle Triggers' value='347347'/><scalar name='Requested Triggers' value='533985'/><scalar name='ToF0 Triggers' value='2484218'/><scalar name='ToF1 Triggers' value='533968'/><scalar name='ToF2 Triggers' value='301324'/></endRun>"

print bl.set_end_runXML(endrun_xml_10288)

예제 #12
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_MASTER_CDB)

###################################
# set Start of Run for Run 8743

startrun_xml_8743 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='8743' startTime='2016-12-06 03:59:00.0' startNotes='Manual CDB insert' optics='3-140+M3-Test2' startPulse='0' step='4.000000' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.000500' daqVersion='DATE_v7.66 EqList_v0.9.2' gdcHostName='miceraid5' overwrite='0'> <ldcHost name='miceacq20' /> <ldcHost name='miceacq17' /> <ldcHost name='miceacq16' /> <ldcHost name='miceacq15' /> <ldcHost name='miceacq14' /> </startRun>"

print bl.set_start_runXML(startrun_xml_8743)

###################################
# now set beamline for Run 8743

beamline_xml_8743 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='8743' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='Q9' polarity='1' setCurrent='142.87' /> <magnet name='Q8' polarity='1' setCurrent='167.46' /> <magnet name='Q7' polarity='1' setCurrent='110.74' /> <magnet name='Q6' polarity='1' setCurrent='116.62' /> <magnet name='Q5' polarity='1' setCurrent='176.01' /> <magnet name='Q4' polarity='1' setCurrent='131.25' /> <magnet name='D2' polarity='1' setCurrent='70.0' /> <magnet name='DS' polarity='1' setCurrent='311.97' /> <magnet name='D1' polarity='1' setCurrent='142.66' /> <magnet name='Q3' polarity='1' setCurrent='41.62' /> <magnet name='Q2' polarity='1' setCurrent='59.88' /> <magnet name='Q1' polarity='1' setCurrent='47.98' /> </beamline>"

print bl.set_beamlineXML(beamline_xml_8743)

###################################
# now set end of run for Run 8743

endrun_xml_8743 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='8743' endTime='2016-12-06 05:51:00.0' endNotes='Manual CDB insert 3-140-M3-Test2' status='0' endPulse='0' overwrite='0' > <isisBeam name='IBML-TOT' mean='0' sigma='0'/> <isisBeam name='IBML-S8.1' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.4' mean='0.0' sigma='0.0'/> <isisBeam name='IBML-S7.3' mean='0.0' sigma='0.0'/> <scalar name='LMC-1234 Count' value='0' /> <scalar name='LMC-12 Count' value='0' /> <scalar name='LMC-34 Count' value='0' /> <scalar name='ToF2 Triggers' value='0' /> <scalar name='ToF1 Triggers' value='0' /> <scalar name='ToF0 Triggers' value='0' /> <scalar name='GVa1 Triggers' value='0' /> <scalar name='Requested Triggers' value='0' /> <scalar name='Particle Triggers' value='193000' /> </endRun>"

print bl.set_end_runXML(endrun_xml_8743)


예제 #13
0
import cdb
from cdb import BeamlineSuperMouse

_TEST_CDB = "http://preprodcdb.mice.rl.ac.uk"
#####_MASTER_CDB = "http://172.16.246.25:8080"
bl = BeamlineSuperMouse(_TEST_CDB)

###################################
# set Start of Run for Run 8448

startrun_xml_8448 = "<?xml version='1.0'?><startRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setStartRun.xsd' runNumber='8448' startTime='2016-10-25 10:29:10.834174' startNotes='Starting task 3 170 MeV ' optics='3-170+M3-Test1' startPulse='2907882' step='4.0' status='false' runType='Special Run' daqTrigger='TOF1' daqGateWidth='3.0005' daqVersion='DATE_v7.66 EqList_v1.0.0-1-gf902e9e' gdcHostName='miceraid5' targetDelay='0.0' targetDepth='0.0' targetDriveVoltage='0.0'><ldcHost name='miceacq20'/><ldcHost name='miceacq17'/><ldcHost name='miceacq16'/><ldcHost name='miceacq15'/><ldcHost name='miceacq14'/> </startRun>"

print bl.set_start_runXML(startrun_xml_8448)

###################################
# now set beamline for Run 8448

beamline_xml_8448 = "<?xml version='1.0'?> <beamline xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setBeamlineTag.xsd' runNumber='8448' beamStop='true' diffuserThickness='0'  overwrite='0'  protonAbsorberThickness='29' > <magnet name='D1' setCurrent='160.800003' polarity='1'/><magnet name='D2' setCurrent='86.545998' polarity='1'/><magnet name='DS' setCurrent='352.738464' polarity='1'/><magnet name='Q1' setCurrent='54.150002' polarity='1'/><magnet name='Q2' setCurrent='67.57' polarity='1'/><magnet name='Q3' setCurrent='46.959999' polarity='1'/><magnet name='Q4' setCurrent='144.731995' polarity='1'/><magnet name='Q5' setCurrent='194.024002' polarity='1'/><magnet name='Q6' setCurrent='128.612' polarity='1'/><magnet name='Q7' setCurrent='124.916' polarity='1'/><magnet name='Q8' setCurrent='188.936005' polarity='1'/><magnet name='Q9' setCurrent='161.244003' polarity='1'/> </beamline>"

print bl.set_beamlineXML(beamline_xml_8448)

###################################
# now set end of run for Run 8448

endrun_xml_8448 = "<?xml version='1.0'?> <endRun xmlns='http://mice.stfc.ac.uk' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://mice.stfc.ac.uk bl_setEndRun.xsd' runNumber='8448' endTime='2016-10-25 11:08:43.353377' endNotes='Task 3 170 MeV stopped. ISIS down' status='0' endPulse='2909644' overwrite='0' > <scalar name='LMC-34 Count' value='1344334'/><scalar name='Particle Triggers' value='62479'/><scalar name='Requested Triggers' value='78895'/><scalar name='ToF0 Triggers' value='350352'/><scalar name='ToF1 Triggers' value='78895'/><scalar name='ToF2 Triggers' value='24211'/><isisBeam name='IBML-S8.1' mean='1.093642' sigma='0.027869'/><isisBeam name='IBML-S7.4' mean='0.358788' sigma='0.009143'/><isisBeam name='IBML-S7.3' mean='0.593269' sigma='0.014807'/><isisBeam name='IBML-TOT' mean='2.0457' sigma='0.051818'/> </endRun>"

print bl.set_end_runXML(endrun_xml_8448)