Rev 344 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 344 | Rev 346 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | .setCheck("histogram"); |
32 | .setCheck("histogram"); |
| 33 | this.setInputsInline(false); |
33 | this.setInputsInline(false); |
| 34 | this.setOutput(true, "particle list"); |
34 | this.setOutput(true, "particle list"); |
| 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( |
37 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 38 | } |
38 | } |
| 39 | }; |
39 | }; |
| 40 | 40 | ||
| 41 | Blockly.Blocks['particle_combiner3'] = { |
41 | Blockly.Blocks['particle_combiner3'] = { |
| 42 | init: function() { |
42 | init: function() { |
| Line 77... | Line 77... | ||
| 77 | .setCheck("histogram"); |
77 | .setCheck("histogram"); |
| 78 | this.setInputsInline(false); |
78 | this.setInputsInline(false); |
| 79 | this.setOutput(true, "particle list"); |
79 | this.setOutput(true, "particle list"); |
| 80 | this.setColour(0); |
80 | this.setColour(0); |
| 81 | 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.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'); |
| 82 | this.setHelpUrl( |
82 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 83 | } |
83 | } |
| 84 | }; |
84 | }; |
| 85 | 85 | ||
| 86 | 86 | ||
| 87 | Blockly.Blocks['particle_selector'] = { |
87 | Blockly.Blocks['particle_selector'] = { |
| Line 105... | Line 105... | ||
| 105 | .setCheck("histogram"); |
105 | .setCheck("histogram"); |
| 106 | this.setInputsInline(false); |
106 | this.setInputsInline(false); |
| 107 | this.setOutput(true, "particle list"); |
107 | this.setOutput(true, "particle list"); |
| 108 | this.setColour(65); |
108 | this.setColour(65); |
| 109 | this.setTooltip('Create a new list of particles based on the input particle list. If the input is empty, all the particles in the event are used.'); |
109 | this.setTooltip('Create a new list of particles based on the input particle list. If the input is empty, all the particles in the event are used.'); |
| 110 | this.setHelpUrl( |
110 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 111 | } |
111 | } |
| 112 | }; |
112 | }; |
| 113 | 113 | ||
| 114 | Blockly.Blocks['histogram_creator'] = { |
114 | Blockly.Blocks['histogram_creator'] = { |
| 115 | init: function() { |
115 | init: function() { |
| Line 137... | Line 137... | ||
| 137 | this.setInputsInline(true); |
137 | this.setInputsInline(true); |
| 138 | this.setPreviousStatement(true); |
138 | this.setPreviousStatement(true); |
| 139 | this.setNextStatement(true); |
139 | this.setNextStatement(true); |
| 140 | this.setColour(20); |
140 | this.setColour(20); |
| 141 | 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'); |
141 | 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'); |
| 142 | this.setHelpUrl( |
142 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 143 | } |
143 | } |
| 144 | }; |
144 | }; |
| 145 | 145 | ||
| 146 | Blockly.Blocks['simple_analysis'] = { |
146 | Blockly.Blocks['simple_analysis'] = { |
| 147 | init: function() { |
147 | init: function() { |
| Line 162... | Line 162... | ||
| 162 | this.appendValueInput("list") |
162 | this.appendValueInput("list") |
| 163 | .setCheck("particle list") |
163 | .setCheck("particle list") |
| 164 | .appendField("Particle List"); |
164 | .appendField("Particle List"); |
| 165 | this.setColour(230); |
165 | this.setColour(230); |
| 166 | this.setTooltip('Run the analysis, specify data source, number of events, first event and a list of particles to process.'); |
166 | this.setTooltip('Run the analysis, specify data source, number of events, first event and a list of particles to process.'); |
| 167 | this.setHelpUrl( |
167 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 168 | } |
168 | } |
| 169 | }; |
169 | }; |
| 170 | 170 | ||
| 171 | Blockly.Blocks['particle_mass_fix'] = { |
171 | Blockly.Blocks['particle_mass_fix'] = { |
| 172 | init: function() { |
172 | init: function() { |
| Line 176... | Line 176... | ||
| 176 | .setCheck("particle list") |
176 | .setCheck("particle list") |
| 177 | .appendField("Particle List"); |
177 | .appendField("Particle List"); |
| 178 | this.setOutput(true, "particle list"); |
178 | this.setOutput(true, "particle list"); |
| 179 | this.setColour(150); |
179 | this.setColour(150); |
| 180 | this.setTooltip(''); |
180 | this.setTooltip(''); |
| 181 | this.setHelpUrl( |
181 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 182 | } |
182 | } |
| 183 | }; |
183 | }; |
| 184 | 184 | ||
| 185 | Blockly.Blocks['primary_list'] = { |
185 | Blockly.Blocks['primary_list'] = { |
| 186 | init: function() { |
186 | init: function() { |
| Line 191... | Line 191... | ||
| 191 | .appendField("Histogram:"); |
191 | .appendField("Histogram:"); |
| 192 | this.setInputsInline(true); |
192 | this.setInputsInline(true); |
| 193 | this.setOutput(true, "particle list"); |
193 | this.setOutput(true, "particle list"); |
| 194 | this.setColour(180); |
194 | this.setColour(180); |
| 195 | this.setTooltip('Create a list of primary particles, if not used, the primary particles are used in the empty particle list connectors'); |
195 | this.setTooltip('Create a list of primary particles, if not used, the primary particles are used in the empty particle list connectors'); |
| 196 | this.setHelpUrl( |
196 | this.setHelpUrl('https://belle2.ijs.si/public/help/'); |
| 197 | } |
197 | } |
| 198 | }; |
198 | }; |