Author: [log in to unmask]
Date: Sat Feb 7 00:28:25 2015
New Revision: 2070
Log:
Updated EcalClusterPlots to use the new TriggerModule instead of SSPTriggerLogic.
Modified:
java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalClusterPlots.java
Modified: java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalClusterPlots.java
=============================================================================
--- java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalClusterPlots.java (original)
+++ java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalClusterPlots.java Sat Feb 7 00:28:25 2015
@@ -9,7 +9,7 @@
import java.util.List;
import org.apache.commons.math.stat.StatUtils;
-import org.hps.readout.ecal.SSPTriggerLogic;
+import org.hps.readout.ecal.TriggerModule;
import org.hps.recon.ecal.ECalUtils;
import org.lcsim.event.CalorimeterHit;
import org.lcsim.event.Cluster;
@@ -259,10 +259,10 @@
// Iterate over each pair and calculate the pair cut values.
for(Cluster[] pair : pairList) {
// Get the energy slope value.
- double energySumValue = SSPTriggerLogic.getValueEnergySum(pair);
- double energyDifferenceValue = SSPTriggerLogic.getValueEnergyDifference(pair);
- double energySlopeValue = SSPTriggerLogic.getValueEnergySlope(pair, 0.005500);
- double coplanarityValue = SSPTriggerLogic.getValueCoplanarity(pair);
+ double energySumValue = TriggerModule.getValueEnergySum(pair);
+ double energyDifferenceValue = TriggerModule.getValueEnergyDifference(pair);
+ double energySlopeValue = TriggerModule.getValueEnergySlope(pair, 0.005500);
+ double coplanarityValue = TriggerModule.getValueCoplanarity(pair);
double xMean = ((pair[0].getEnergy() * pair[0].getPosition()[0]) +
(pair[1].getEnergy() * pair[1].getPosition()[0])) / energySumValue;
double yMean = ((pair[0].getEnergy() * pair[0].getPosition()[1]) +
|