Rev 267 | Rev 272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 267 | Rev 271 | ||
|---|---|---|---|
| Line 13... | Line 13... | ||
| 13 | this.appendDummyInput() |
13 | this.appendDummyInput() |
| 14 | .appendField("Same particle lists?") |
14 | .appendField("Same particle lists?") |
| 15 | .appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
15 | .appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
| 16 | this.appendDummyInput() |
16 | this.appendDummyInput() |
| 17 | .appendField("New Particle") |
17 | .appendField("New Particle") |
| 18 | .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON"], [" |
18 | .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON"], ["Psi", "PSI"], ["D", "D"], ["D*", "DSTAR"], ["J/Psi", "JPSI"]]), "simplepid"); |
| 19 | this.appendDummyInput() |
19 | this.appendDummyInput() |
| 20 | .setAlign(Blockly.ALIGN_RIGHT) |
20 | .setAlign(Blockly.ALIGN_RIGHT) |
| 21 | .appendField("Min mass [GeV] :") |
21 | .appendField("Min mass [GeV/c2] :") |
| 22 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass0"); |
22 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass0"); |
| 23 | this.appendDummyInput() |
23 | this.appendDummyInput() |
| 24 | .setAlign(Blockly.ALIGN_RIGHT) |
24 | .setAlign(Blockly.ALIGN_RIGHT) |
| 25 | .appendField("Max mass [GeV] :") |
25 | .appendField("Max mass [GeV/c2] :") |
| 26 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1"); |
26 | .appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1"); |
| 27 | this.appendValueInput("histogram") |
27 | this.appendValueInput("histogram") |
| 28 | .setCheck("histogram") |
28 | .setCheck("histogram") |
| 29 | .appendField("Histogram"); |
29 | .appendField("Histogram"); |
| 30 | this.setInputsInline(false); |
30 | this.setInputsInline(false); |
| Line 45... | Line 45... | ||
| 45 | this.appendDummyInput() |
45 | this.appendDummyInput() |
| 46 | .appendField("Charge") |
46 | .appendField("Charge") |
| 47 | .appendField(new Blockly.FieldDropdown([["-1", "-1"], ["0", "0"], ["1", "1"]]), "chargelist"); |
47 | .appendField(new Blockly.FieldDropdown([["-1", "-1"], ["0", "0"], ["1", "1"]]), "chargelist"); |
| 48 | this.appendDummyInput() |
48 | this.appendDummyInput() |
| 49 | .appendField("Type") |
49 | .appendField("Type") |
| 50 | .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON |
50 | .appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON"], ["D", "D"], ["D*", "DSTAR"], ["Phi", "PHI"],["J/Psi", "JPSI"], ["B", "B"], ["all particles", "ALL"]]), "simplepid"); |
| 51 | this.appendValueInput("histogram") |
51 | this.appendValueInput("histogram") |
| 52 | .setCheck("histogram") |
52 | .setCheck("histogram") |
| 53 | .appendField("Histogram"); |
53 | .appendField("Histogram"); |
| 54 | this.setInputsInline(false); |
54 | this.setInputsInline(false); |
| 55 | this.setOutput(true, "particle list"); |
55 | this.setOutput(true, "particle list"); |