Skip to content

Commit

Permalink
create initial types of collections defined in gsoc
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed May 29, 2024
1 parent 6cc387c commit 3cfbb4c
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
17 changes: 17 additions & 0 deletions js/types/Cluster.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export class Cluster {
constructor() {
// Physics properties
this.type = 0;
this.energy = 0; // GeV
this.energyError = 0; // GeV
this.position = []; // mm
this.positionError = [];
this.iTheta = 0;
this.phi = 0;
this.directionError; // mm^2
this.shapeParameters = [];
this.subdetectorEnergies = [];
this.clusters = [];
this.hits = [];
}
}
10 changes: 10 additions & 0 deletions js/types/ParticleID.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export class ParticleID {
constructor() {
// Physics properties
this.type = 0;
this.pdg = 0;
this.algorithmType = 0;
this.likelihood = 0;
this.parameters = [];
}
}
17 changes: 17 additions & 0 deletions js/types/RecoParticle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export class ReconstructedParticle {
constructor() {
// Physics properties
this.pdg = 0;
this.energy = 0; // GeV
this.momentum = 0; // GeV
this.referencePoint = 0; // mm
this.charge = 0;
this.mass = 0; // GeV
this.goodnessOfPID = 0;
this.covMatrix = [];
this.startVertex = [];
this.clusters = [];
this.tracks = [];
this.particles = [];
}
}
15 changes: 15 additions & 0 deletions js/types/Track.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export class Track {
constructor() {
// Physics properties
this.type = 0;
this.chi2 = 0;
this.ndf = 0;
this.dEdx = 0;
this.dEdxError = 0;
this.radiusOfInnermostHit = 0;
this.subdetectorHitNumbers = [];
this.dxQuantities = [];
this.trackerHits = [];
this.tracks = [];
}
}
13 changes: 13 additions & 0 deletions js/types/Vertex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export class Vertex {
constructor() {
// Physics properties
this.primary = 0;
this.chi2 = 0;
this.probability = 0;
this.position = 0; // mm
this.covMatrix = [];
this.algorithmType = 0;
this.parameters = 0;
this.associatedParticles = [];
}
}

0 comments on commit 3cfbb4c

Please sign in to comment.