11,6 → 11,9 |
.setAlign(Blockly.ALIGN_RIGHT) |
.appendField("2. Particle"); |
this.appendDummyInput() |
.appendField("Same particle lists?") |
.appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "sameparticles"); |
this.appendDummyInput() |
.appendField("New Particle") |
.appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON"], ["Ks", "KS"], ["D", "D"], ["D*", "DSTAR"], ["J/Psi", "JPSI"]]), "simplepid"); |
this.appendDummyInput() |
27,7 → 30,7 |
this.setInputsInline(false); |
this.setOutput(true, "particle list"); |
this.setColour(120); |
this.setTooltip(''); |
this.setTooltip('Combine two particles in the new particle by making combinations between particles in two input lists'); |
this.setHelpUrl('http://www.example.com/'); |
} |
}; |
51,7 → 54,7 |
this.setInputsInline(false); |
this.setOutput(true, "particle list"); |
this.setColour(65); |
this.setTooltip(''); |
this.setTooltip('Create a new list of particles based on the original particle list or any input particle list'); |
this.setHelpUrl('http://www.example.com/'); |
} |
}; |
82,7 → 85,7 |
this.setInputsInline(true); |
this.setOutput(true, "histogram"); |
this.setColour(20); |
this.setTooltip(''); |
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'); |
this.setHelpUrl('http://www.example.com/'); |
} |
}; |
95,13 → 98,19 |
.appendField("Number of events: ") |
.appendField(new Blockly.FieldNumber(5000, 0), "neve"); |
this.appendDummyInput() |
.appendField("First event: ") |
.appendField(new Blockly.FieldNumber(0, 0), "first"); |
this.appendDummyInput() |
.appendField("Data Source") |
.appendField(new Blockly.FieldDropdown([["hadron-1", "1"], ["hadron-2", "2"]]), "datasource"); |
this.appendDummyInput() |
.appendField("Print particle list?") |
.appendField(new Blockly.FieldDropdown([["No", "0"], ["Yes", "1"]]), "print"); |
this.appendValueInput("list") |
.setCheck("particle list") |
.appendField("Particle List"); |
this.setColour(230); |
this.setTooltip(''); |
this.setTooltip('Run the analysis, specify data source, number of events, first event and a list of particles to process.'); |
this.setHelpUrl('http://www.example.com/'); |
} |
}; |
130,7 → 139,7 |
this.setInputsInline(true); |
this.setOutput(true, "particle list"); |
this.setColour(180); |
this.setTooltip(''); |
this.setTooltip('Create a list of primary particles, if not used, the primary particles are used in the empty particle list connectors'); |
this.setHelpUrl('http://www.example.com/'); |
} |
}; |