Subversion Repositories f9daq

Rev

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

Rev 333 Rev 344
Line 131... Line 131...
131
        .setAlign(Blockly.ALIGN_RIGHT)
131
        .setAlign(Blockly.ALIGN_RIGHT)
132
        .appendField("Max:")
132
        .appendField("Max:")
133
        .appendField(new Blockly.FieldNumber(0, -Infinity, Infinity, 0.0001), "max");
133
        .appendField(new Blockly.FieldNumber(0, -Infinity, Infinity, 0.0001), "max");
134
    this.appendDummyInput()
134
    this.appendDummyInput()
135
        .appendField("Variable")
135
        .appendField("Variable")
136
        .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"],["m-m1","GetDeltaMass1"],["m-m2","GetDeltaMass2"],["m-m3","GetDeltaMass3"]]), "varname");
136
        .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");
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');