Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 270 → Rev 271

/belle2/masterclass/js/belle2_def.js
15,14 → 15,14
.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");
.appendField(new Blockly.FieldDropdown([["electron", "ELECTRON"], ["muon", "MUON"], ["pion", "PION"], ["kaon", "KAON"], ["proton", "PROTON"], ["photon", "PHOTON"], ["Psi", "PSI"], ["D", "D"], ["D*", "DSTAR"], ["J/Psi", "JPSI"]]), "simplepid");
this.appendDummyInput()
.setAlign(Blockly.ALIGN_RIGHT)
.appendField("Min mass [GeV] :")
.appendField("Min mass [GeV/c2] :")
.appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass0");
this.appendDummyInput()
.setAlign(Blockly.ALIGN_RIGHT)
.appendField("Max mass [GeV] :")
.appendField("Max mass [GeV/c2] :")
.appendField(new Blockly.FieldNumber(0, 0, Infinity, 0.0001), "mass1");
this.appendValueInput("histogram")
.setCheck("histogram")
47,7 → 47,7
.appendField(new Blockly.FieldDropdown([["-1", "-1"], ["0", "0"], ["1", "1"]]), "chargelist");
this.appendDummyInput()
.appendField("Type")
.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"], ["all particles", "ALL"]]), "simplepid");
.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");
/belle2/masterclass/src/BParticle.cc
32,6 → 32,7
case D: return 1.86;
case DSTAR: return 2.01;
case B: return 5.27;
case PHI: return 1.02;
default: return 0;
}
 
/belle2/masterclass/src/BParticle.h
11,7 → 11,7
#include "TObject.h"
#include "TClonesArray.h"
 
enum SIMPLEPID {PHOTON, ELECTRON, PION, MUON, KAON, PROTON, JPSI, D, DSTAR, B,KS, ALL };
enum SIMPLEPID {PHOTON, ELECTRON, PION, MUON, KAON, PROTON, JPSI, D, DSTAR, B, PHI, ALL };
 
class BParticle : public TObject {