Skip to content

Commit 477cbee

Browse files
committed
add 500 MeV ECAL requirement
1 parent 51abf8e commit 477cbee

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

reconstruction/eb/src/main/java/org/jlab/rec/eb/EBUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ public static boolean isZeroFieldElectron(DetectorParticle p,EBCCDBConstants ccd
118118
final double pcalEnergy = p.getEnergy(DetectorType.ECAL,DetectorLayer.PCAL);
119119
if (pcalEnergy < minPcalEnergy) return false;
120120

121-
return true;
121+
// require PCAL+ECAL minimum energy 500 MeV:
122+
return p.getEnergy(DetectorType.ECAL) > 0.5;
122123
}
123124

124125
/**

reconstruction/eb/src/main/java/org/jlab/service/eb/EventBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,8 @@ public int getSoftwareTriggerScore(DetectorParticle p,EBCCDBConstants ccdb,float
482482
final double nsigma = SamplingFractions.getNSigma(11,p,ccdb);
483483
final double minPcalEnergy = ccdb.getSectorDouble(EBCCDBEnum.ELEC_PCAL_min_energy,sector);
484484
if (Math.abs(torus) <1e-8) {
485-
if (p.getEnergy(DetectorType.ECAL,1) > minPcalEnergy) {
485+
if (p.getEnergy(DetectorType.ECAL,1) > minPcalEnergy &&
486+
p.getEnergy(DetectorType.ECAL) > 0.5) {
486487
score += 100;
487488
}
488489
}

0 commit comments

Comments
 (0)