Rev 271 | Rev 273 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 271 | Rev 272 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | .appendField("2. Particle"); |
12 | .appendField("2. Particle"); |
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(" |
17 | .appendField("Set identity to") |
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"); |
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/c2] :") |
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"); |
Line 42... | Line 42... | ||
42 | this.appendValueInput("list1") |
42 | this.appendValueInput("list1") |
43 | .setCheck("particle list") |
43 | .setCheck("particle list") |
44 | .appendField("Particles"); |
44 | .appendField("Particles"); |
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"], ["Any", "2"]]), "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"], ["D", "D"], ["D*", "DSTAR"], ["Phi", "PHI"],["J/Psi", "JPSI"], ["B", "B"], ["all particles", "ALL"]]), "simplepid"); |
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") |
Line 79... | Line 79... | ||
79 | .setAlign(Blockly.ALIGN_RIGHT) |
79 | .setAlign(Blockly.ALIGN_RIGHT) |
80 | .appendField("Max:") |
80 | .appendField("Max:") |
81 | .appendField(new Blockly.FieldNumber(0, -Infinity, Infinity, 0.0001), "max"); |
81 | .appendField(new Blockly.FieldNumber(0, -Infinity, Infinity, 0.0001), "max"); |
82 | this.appendDummyInput() |
82 | this.appendDummyInput() |
83 | .appendField("Variable") |
83 | .appendField("Variable") |
84 | .appendField(new Blockly.FieldDropdown([["mass", "GetMass"], ["momentum", "GetMomentum"], ["energy", "GetEnergy"]]), "varname"); |
84 | .appendField(new Blockly.FieldDropdown([["mass", "GetMass"], ["momentum", "GetMomentum"], ["energy", "GetEnergy"],["charge", "GetCharge"], ["identity", "GetPid"],["px", "GetXMomentum"],["py", "GetYMomentum"],["pz", "GetZMomentum"],["pT", "GetTransverseMomentum"]]), "varname"); |
85 | this.setInputsInline(true); |
85 | this.setInputsInline(true); |
86 | this.setOutput(true, "histogram"); |
86 | this.setOutput(true, "histogram"); |
87 | this.setColour(20); |
87 | this.setColour(20); |
88 | this.setTooltip('This block handles the histogram creation and filling. Define a number of bins, minimum and maximum of the range and assign a variable to plot'); |
88 | this.setTooltip('This block handles the histogram creation and filling. Define a number of bins, minimum and maximum of the range and assign a variable to plot'); |
89 | this.setHelpUrl('http://www.example.com/'); |
89 | this.setHelpUrl('http://www.example.com/'); |