Subversion Repositories f9daq

Rev

Rev 272 | Rev 302 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 272 Rev 273
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"],["charge", "GetCharge"], ["identity", "GetPid"],["px", "GetXMomentum"],["py", "GetYMomentum"],["pz", "GetZMomentum"],["pT", "GetTransverseMomentum"]]), "varname");
84
        .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");
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/');