133,7 → 133,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"],["charge", "GetCharge"], ["identity", "GetPid"],["polar angle", "GetTheta"],["cos(polar ang.)", "GetCosTheta"],["px", "GetXMomentum"],["py", "GetYMomentum"],["pz", "GetZMomentum"],["pT", "GetTransverseMomentum"],["m-m1","GetDeltaMass1"],["m-m2","GetDeltaMass2"],["m-m3","GetDeltaMass3"]]), "varname"); |
.appendField(new Blockly.FieldDropdown([["mass", "GetMass"], ["momentum", "GetMomentum"], ["energy", "GetEnergy"],["charge", "GetCharge"], ["identity", "GetPid"],["polar angle", "GetTheta"],["cos(polar ang.)", "GetCosTheta"],["px", "GetXMomentum"],["py", "GetYMomentum"],["pz", "GetZMomentum"],["pT", "GetTransverseMomentum"]]), "varname"); |
this.setInputsInline(true); |
this.setPreviousStatement(true); |
this.setNextStatement(true); |