Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 318 → Rev 319

/belle2/masterclass/js/belle2_def.js
24,9 → 24,10
.setAlign(Blockly.ALIGN_RIGHT)
.appendField("Max mass [GeV/c2] :")
.appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1");
this.appendValueInput("histogram")
.setCheck("histogram")
.appendField("Histogram");
//this.appendValueInput("histogram").setCheck("histogram").appendField("Histogram");
this.appendDummyInput().appendField("Histograms");
this.appendStatementInput("histogram")
.setCheck("histogram");
this.setInputsInline(false);
this.setOutput(true, "particle list");
this.setColour(120);
48,9 → 49,10
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");
this.appendValueInput("histogram")
.setCheck("histogram")
.appendField("Histogram");
//this.appendValueInput("histogram").setCheck("histogram").appendField("Histogram");
this.appendDummyInput().appendField("Histograms");
this.appendStatementInput("histogram")
.setCheck("histogram");
this.setInputsInline(false);
this.setOutput(true, "particle list");
this.setColour(65);
83,7 → 85,8
.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"]]), "varname");
this.setInputsInline(true);
this.setOutput(true, "histogram");
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(20);
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://belle2.jp/');