Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jlab.clas.pdg;

import java.util.HashMap;
Expand Down Expand Up @@ -64,7 +60,7 @@ private static HashMap<Integer, PDGParticle> initDatabase() {
particleMap.put(12, new PDGParticle("nue-", 14, 4, 0.320e-6, 0));
particleMap.put(-12, new PDGParticle("nue+", -14, 4, 0.320e-6, 0));
particleMap.put(22, new PDGParticle("gamma", 22, 1, 0.000, 0));
particleMap.put(45, new PDGParticle("d", 45, 45,1.87705, 1));
particleMap.put(45, new PDGParticle("d", 45, 45,1.87705, 1)); // This is not a PDG code.

//Light mesons
particleMap.put(211, new PDGParticle("pi+", 211, 8, 0.13957018, 1));
Expand Down Expand Up @@ -182,7 +178,19 @@ private static HashMap<Integer, PDGParticle> initDatabase() {
particleMap.put(3334, new PDGParticle("Omega-", 3334, 24, 1.67245, -1));
particleMap.put(-3334, new PDGParticle("AntiOmega+", -3334, 32, 1.67245, 1));


particleMap.put(1000010020, new PDGParticle("deuteron", 1000010020, 45, 1.87612, 1));
particleMap.put(1000010030, new PDGParticle("triton", 1000010030, 46, 2.80943, 1));
particleMap.put(1000020030, new PDGParticle("He3", 1000020030, 49, 2.80941, 2));
particleMap.put(1000020040, new PDGParticle("alpha", 1000020040, 47, 3.7284, 2));

//522 deuteron 1000010020 1 100 Baryon 3 1.87612 0.00000e+00 -100 -1 -100 -1 -1 0
//523 triton 1000010030 1 100 Baryon 3 2.80943 0.00000e+00 -100 -1 -100 -1 -1 0
//524 He3 1000020030 1 100 Baryon 6 2.80941 0.00000e+00 -100 -1 -100 -1 -1 0
//525 alpha 1000020040 1 100 Baryon 6 3.7284 0.00000e+00 -100 -1 -100 -1 -1 0
//526 He6 1000020060 1 100 Baryon 6 5.60656 0.00000e+00 -100 -1 -100 -1 -1 0
//527 Li6 1000030060 1 100 Baryon 9 5.60305 0.00000e+00 -100 -1 -100 -1 -1 0
//528 Li7 1000030070 1 100 Baryon 9 6.53537 0.00000e+00 -100 -1 -100 -1 -1 0

return particleMap;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jlab.clas.pdg;

/**
Expand All @@ -10,12 +6,12 @@
*/
public class PDGParticle {

String particleName = "unknown";
Integer particleId = 0;
Integer particleIdGeant = 0;
Double particleMass = 0.0;
Integer particleCharge = -1;
Double particleWidth = 0.0;
String particleName = "unknown";
Integer particleId = 0; /// PDG code and Geant4
Integer particleIdGeant = 0; /// Geant3
Double particleMass = 0.0; /// Units of Gev/c^2
Integer particleCharge = -1; /// units of e
Double particleWidth = 0.0; /// Units of Gev/c^2

public PDGParticle(String partname, int partid, double partmass)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ public static double massKaonCharged(){
public static double massKaonNeutral(){
return 0.49761424;
}

public static double massDeuteron(){
return 1.87612;
}
public static double massTriton(){
return 2.80943;
}
public static double massHe3(){
return 2.80941;
}
public static double massAlpha(){
return 3.7284;
}


public static double getRandomGauss(double mean, double width){
double u = 0;
Expand Down
Loading