Skip to content

Commit f0e79f1

Browse files
committed
revert recon particle drivers since getType did not actually get gbl vs kalman track
1 parent e777361 commit f0e79f1

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

recon/src/main/java/org/hps/recon/particle/HpsReconParticleDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ private BilliorVertex fitVertex(Constraint constraint, ReconstructedParticle ele
518518
double bLocal=(electron.getTracks().get(0)).getTrackStates().get(TrackState.AtPerigee).getBLocal();
519519

520520
// if we are using GBL tracks (trackType=0), set bLocal to bField (i.e. at SVT center)
521-
if(TrackType.isGBL(electron.getType()))
521+
if(trackType==0)
522522
bLocal=bField;
523523

524524
//set up vertexer with field

recon/src/main/java/org/hps/recon/particle/ReconParticleDriver.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ public void setApplyClusterCorrections(boolean val) {
153153
* LCIO collection name for tracks.
154154
*/
155155
protected String matcherTrackCollectionName = "GBLTracks";
156+
/**
157+
* track type: Kalman = 1; GBL = 0 obtained from matcherTrackCollectionName
158+
*/
159+
protected int trackType = 0;
156160
/**
157161
* Track Cluster Algorithm set to Kalman or GBL Tracks
158162
*/
@@ -446,6 +450,10 @@ protected void detectorChanged(Detector detector) {
446450
matcher.setTrackCollectionName(matcherTrackCollectionName);
447451
matcher.enablePlots(enableTrackClusterMatchPlots);
448452

453+
//set the track type; default is 0 (GBL)
454+
if(matcherTrackCollectionName.contains("Kalman") || matcherTrackCollectionName.contains("KF"))
455+
trackType=1;
456+
449457
// Set the magnetic field parameters to the appropriate values.
450458
Hep3Vector ip = new BasicHep3Vector(0., 0., 500.0);
451459
bField = detector.getFieldMap().getField(ip).y();

0 commit comments

Comments
 (0)