Skip to content

Commit 538bd45

Browse files
committed
include the charge in the energy loss computation
1 parent 4a1f948 commit 538bd45

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • common-tools/clas-tracking/src/main/java/org/jlab/clas/tracking/kalmanfilter

common-tools/clas-tracking/src/main/java/org/jlab/clas/tracking/kalmanfilter/Material.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Material clone(double newThickness) {
5959
return new Material(this.name, newThickness, this.density, this.ZoverA, this.X0, this.IeV, this.units);
6060
}
6161
// RDV make units a property of the material
62-
public double getEloss(double p, double mass) {
62+
public double getEloss(double p, double mass, int charge) {
6363
if(mass==0) return 0;
6464
double beta = p / Math.sqrt(p * p + mass * mass);
6565
double s = PhysicsConstants.massElectron() / mass;
@@ -69,11 +69,15 @@ public double getEloss(double p, double mass) {
6969
double K = 0.000307075 * units.value() * units.value(); // GeV mol-1 cm2
7070
double I = this.IeV * 1E-9;
7171
double logterm = 2. * PhysicsConstants.massElectron() * beta * beta * gamma * gamma * Wmax / (I * I);
72-
double dE = this.thickness * this.density * K * this.ZoverA
72+
double dE = this.thickness * this.density * K * charge * charge *this.ZoverA
7373
* (0.5 * Math.log(logterm) - beta * beta) / beta / beta; //in GeV
7474
return dE;
7575
}
7676

77+
public double getEloss(double p, double mass) {
78+
return getEloss(p, mass, 1);
79+
}
80+
7781
@Override
7882
public String toString() {
7983
String s = "Material: ";

0 commit comments

Comments
 (0)