| 38,6 → 38,51 |
| } |
| }; |
| |
| Blockly.Blocks['particle_combiner3'] = { |
| init: function() { |
| this.appendDummyInput() |
| .appendField("Combine 3 particles"); |
| this.appendValueInput("list1") |
| .setCheck("particle list") |
| .setAlign(Blockly.ALIGN_RIGHT) |
| .appendField("Particle 1"); |
| this.appendValueInput("list2") |
| .setCheck("particle list") |
| .setAlign(Blockly.ALIGN_RIGHT) |
| .appendField("Particle 2"); |
| this.appendValueInput("list3") |
| .setCheck("particle list") |
| .setAlign(Blockly.ALIGN_RIGHT) |
| .appendField("Particle 3"); |
| this.appendDummyInput() |
| .appendField("Same particle lists?") |
| .appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
| this.appendDummyInput() |
| .appendField("Set identity to") |
| .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], |
| ["proton", "PROTON"], ["photon", "PHOTON"], ["Phi meson", "PHI"], ["D meson", "D"], |
| ["D* meson", "DSTAR"], ["J/Psi meson", "JPSI"],["B meson","B"], ["Lambda 0","LAMBDA0"]]), "simplepid"); |
| this.appendDummyInput() |
| .setAlign(Blockly.ALIGN_RIGHT) |
| .appendField("Min mass [GeV/c2] :") |
| .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass0"); |
| this.appendDummyInput() |
| .setAlign(Blockly.ALIGN_RIGHT) |
| .appendField("Max mass [GeV/c2] :") |
| .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1"); |
| //this.appendValueInput("histogram").setCheck("histogram").appendField("Histogram"); |
| this.appendDummyInput().appendField("Histograms"); |
| this.appendStatementInput("histogram") |
| .setCheck("histogram"); |
| this.setInputsInline(false); |
| this.setOutput(true, "particle list"); |
| this.setColour(0); |
| this.setTooltip('Combine three particles in the new particle by making combinations between particles in three input lists. If the input connector is empty, the full particle list will be used'); |
| this.setHelpUrl('http://belle.jp/'); |
| } |
| }; |
| |
| |
| Blockly.Blocks['particle_selector'] = { |
| init: function() { |
| this.appendDummyInput() |