Skip to content

Commit

Permalink
fix(event-display): use coneR, if available, to determine jet width
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardMoyse committed Jul 18, 2021
1 parent 867d28a commit d4b62c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export class PhoenixObjects {
: CoordinateHelper.etaToTheta(eta);
// Jet energy parameter can either be 'energy' or 'et'
const length = (jetParams.energy ? jetParams.energy : jetParams.et) * 0.2;
const width = length * 0.1;

const sphi = Math.sin(phi);
const cphi = Math.cos(phi);
Expand All @@ -153,6 +152,8 @@ export class PhoenixObjects {
0.5 * length * ctheta
);

const width = jetParams.coneR ? length * Math.sin(jetParams.coneR) : length * 0.1;

const x = cphi * stheta;
const y = sphi * stheta;
const z = ctheta;
Expand All @@ -163,7 +164,7 @@ export class PhoenixObjects {

const geometry = new CylinderBufferGeometry(
width,
1,
10,
length,
50,
50,
Expand Down

0 comments on commit d4b62c2

Please sign in to comment.