Rev 329 | Rev 332 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 329 | Rev 330 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | this.setColour(120); |
35 | this.setColour(120); |
| 36 | this.setTooltip('Combine two particles in the new particle by making combinations between particles in two input lists. If the input connector is empty, the full particle list will be used'); |
36 | this.setTooltip('Combine two particles in the new particle by making combinations between particles in two input lists. If the input connector is empty, the full particle list will be used'); |
| 37 | this.setHelpUrl('http://belle.jp/'); |
37 | this.setHelpUrl('http://belle.jp/'); |
| 38 | } |
38 | } |
| 39 | }; |
39 | }; |
| - | 40 | ||
| - | 41 | Blockly.Blocks['particle_combiner3'] = { |
|
| - | 42 | init: function() { |
|
| - | 43 | this.appendDummyInput() |
|
| - | 44 | .appendField("Combine 3 particles"); |
|
| - | 45 | this.appendValueInput("list1") |
|
| - | 46 | .setCheck("particle list") |
|
| - | 47 | .setAlign(Blockly.ALIGN_RIGHT) |
|
| - | 48 | .appendField("Particle 1"); |
|
| - | 49 | this.appendValueInput("list2") |
|
| - | 50 | .setCheck("particle list") |
|
| - | 51 | .setAlign(Blockly.ALIGN_RIGHT) |
|
| - | 52 | .appendField("Particle 2"); |
|
| - | 53 | this.appendValueInput("list3") |
|
| - | 54 | .setCheck("particle list") |
|
| - | 55 | .setAlign(Blockly.ALIGN_RIGHT) |
|
| - | 56 | .appendField("Particle 3"); |
|
| - | 57 | this.appendDummyInput() |
|
| - | 58 | .appendField("Same particle lists?") |
|
| - | 59 | .appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
|
| - | 60 | this.appendDummyInput() |
|
| - | 61 | .appendField("Set identity to") |
|
| - | 62 | .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], |
|
| - | 63 | ["proton", "PROTON"], ["photon", "PHOTON"], ["Phi meson", "PHI"], ["D meson", "D"], |
|
| - | 64 | ["D* meson", "DSTAR"], ["J/Psi meson", "JPSI"],["B meson","B"], ["Lambda 0","LAMBDA0"]]), "simplepid"); |
|
| - | 65 | this.appendDummyInput() |
|
| - | 66 | .setAlign(Blockly.ALIGN_RIGHT) |
|
| - | 67 | .appendField("Min mass [GeV/c2] :") |
|
| - | 68 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass0"); |
|
| - | 69 | this.appendDummyInput() |
|
| - | 70 | .setAlign(Blockly.ALIGN_RIGHT) |
|
| - | 71 | .appendField("Max mass [GeV/c2] :") |
|
| - | 72 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1"); |
|
| - | 73 | //this.appendValueInput("histogram").setCheck("histogram").appendField("Histogram"); |
|
| - | 74 | this.appendDummyInput().appendField("Histograms"); |
|
| - | 75 | this.appendStatementInput("histogram") |
|
| - | 76 | .setCheck("histogram"); |
|
| - | 77 | this.setInputsInline(false); |
|
| - | 78 | this.setOutput(true, "particle list"); |
|
| - | 79 | this.setColour(0); |
|
| - | 80 | 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'); |
|
| - | 81 | this.setHelpUrl('http://belle.jp/'); |
|
| - | 82 | } |
|
| - | 83 | }; |
|
| - | 84 | ||
| 40 | 85 | ||
| 41 | Blockly.Blocks['particle_selector'] = { |
86 | Blockly.Blocks['particle_selector'] = { |
| 42 | init: function() { |
87 | init: function() { |
| 43 | this.appendDummyInput() |
88 | this.appendDummyInput() |
| 44 | .appendField("Select Particles"); |
89 | .appendField("Select Particles"); |