| 14,7 → 14,7 |
| .appendField("Same particle lists?") |
| .appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
| this.appendDummyInput() |
| .appendField("New Particle") |
| .appendField("Set identity to") |
| .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"); |
| this.appendDummyInput() |
| .setAlign(Blockly.ALIGN_RIGHT) |
| 44,7 → 44,7 |
| .appendField("Particles"); |
| this.appendDummyInput() |
| .appendField("Charge") |
| .appendField(new Blockly.FieldDropdown([["-1", "-1"], ["0", "0"], ["1", "1"]]), "chargelist"); |
| .appendField(new Blockly.FieldDropdown([["-1", "-1"], ["0", "0"], ["1", "1"], ["Any", "2"]]), "chargelist"); |
| this.appendDummyInput() |
| .appendField("Type") |
| .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"); |
| 81,7 → 81,7 |
| .appendField(new Blockly.FieldNumber(0, -Infinity, Infinity, 0.0001), "max"); |
| this.appendDummyInput() |
| .appendField("Variable") |
| .appendField(new Blockly.FieldDropdown([["mass", "GetMass"], ["momentum", "GetMomentum"], ["energy", "GetEnergy"]]), "varname"); |
| .appendField(new Blockly.FieldDropdown([["mass", "GetMass"], ["momentum", "GetMomentum"], ["energy", "GetEnergy"],["charge", "GetCharge"], ["identity", "GetPid"],["px", "GetXMomentum"],["py", "GetYMomentum"],["pz", "GetZMomentum"],["pT", "GetTransverseMomentum"]]), "varname"); |
| this.setInputsInline(true); |
| this.setOutput(true, "histogram"); |
| this.setColour(20); |